Setting up WordPress: Difference between revisions

From ULYSSIS documentation
No edit summary
 
(83 intermediate revisions by 10 users not shown)
Line 1: Line 1:
==Wordpress installeren gaat zeker gemakkelijk op onze servers==
This page will go through a basic setup of WordPress, and it gives a few specifics for setting it up on a hosted account over at ULYSSIS.


Je downloadt het installatiebestand van de [http://wordpress.org wordpress-site].
==Putting setup-files in place==


Hierbij krijg je een gecomprimeerd bestand (.tar.gz of .zip) dit pak je uit.
First you need to download WordPress from their website, https://wordpress.org/download/. After you've
received a zip file, you have to extract it using your file manager (Windows: ''use right-click and select "extract all"''; OSX: ''double-click the zip, it automatically extracts''; Linux: ''right-click the file, and select "extract here"''), this gives you a directory named <code>wordpress</code>.


Je krijgt dan een map met bestanden, deze bestanden (en dus niet de map) kopieer je via filezilla of een ander ftp programma naar je www-map op je shellaccount.
Next, you have to move the '''contents''' of the <code>wordpress</code> directory to your webroot directory on our servers. Mostly this will be the <code>www</code> directory. Your webroot can be accessed via SFTP.
If you need further instructions, you can find detailed instructions on: [[Accessing your files]].


Hierna surf je naar je account, dus naar username.ulyssis.be, je krijgt hier een melding dat je je wp-config.php nog moet aanmaken, het gemakkelijkste is gewoon de wizard blijven volgen, klik dus op: ''Create a Configuration File''.
== Setting up a database ==
Besides files, we also need a database to install WordPress on. If you haven't created a new database for the purpose of this installation, you can do this through UCC. Instruction on how to do this are available on [[Using MySQL]]. If you haven't created a database user yet, or don't know the password, you can also find more information there.<br>
'''Warning:''' Postgresql databases are not supported by WordPress, only use MySQL databases.


Daarna op ''Let's go!'' waarna je gegevens van je database gaat moeten invullen:
== Installing WordPress ==
Now we are ready to install WordPress, so we need to visit the web installer. If you're using a custom domain based on this guide: [[Adding domain names]], you can access the installer by visiting your domain. If you do not use such a domain, the installer can be found on <code>username.studentenweb.org</code> or <code>username.ulyssis.be</code> (replace <code>username</code> with your actual username).
This is where you have to set up your website. The easiest way to do this, is by following the wizard.


* '''Database Name: '''als je nog geen mysql database of user hebt aangemaakt op UCC dan moet je dat daar doen. De standaard database is dan: username_username.
The setup will ask you for your database configuration:
* '''User Name: '''dit is de naam die je hebt opgegven tijdens het maken van je mysql account, vaak is deze hetzelfde als je gebruikersnaam bij ULYSSIS.
*'''Database Name/Databasenaam:''' the name of the MySQL database
* '''Password: '''het wachtwoord dat je hebt opgegven bij de aanmaak van je mysql account
*'''Username/Gebruikersnaam:''' your username
* '''Database Host: '''dit is <code>mysql.ulyssis.org</code>
*'''Password/Wachtwoord:''' your MySQL database password
* Het laatste veld verander je niet.
*'''Database Host/Hostnaam:''' <code>mysql.ulyssis.org</code>
*'''Table Prefix:''' only change this if you have multiple installations of WordPress in your database<br>
So it will look something like this:<br>
[[File:wordpress_screenshot.png|thumb|left|600px]]
In the next step you need to fill in your own preferences.


Vervolgens krijg je de volgende error: ''Sorry, but I can’t write the <code>wp-config.php</code> file.'' Maar geen paniek, de tekst die WordPress gemaakt heeft is hetgene wat we nodig hebben. Kopieer deze tekst, sla dit op in een bestand <code>wp-config.php</code>. Dit bestand zet je dan weer via Filezilla over naar je www-directory.
== Finishing up installation ==
Finally you will be prompted to log into your WordPress website. Now the installation is finished.


Klik hierna op ''Run The install.'' Hier kan je dan de laatste gegevens invullen.
{{info|We advise all WordPress users to enable automatic updates for their plugins, themes and WordPress itself. You can find detailed instructions on [[Updating WordPress]].}}


Daarna zal de installatie zichzelf uitvoeren en voilà, je hebt wordpress geïnstalleerd.
To help you design your website, there are a few guides from WordPress that can help you:
*https://wordpress.org/support/article/first-steps-with-wordpress-b/
*https://wordpress.org/support/article/using-themes/#get-new-themes
*https://wordpress.org/support/article/managing-plugins/


==Setting up multiple instance of Wordpress==
==Setting up multiple instances of WordPress==


If you want to have multiple instances of a Wordpress site then you the create a new folder in your homedir from you shell account. Then you make a new virtual host for this directory in UCC.
If you want to have multiple instances of a WordPress site, you need to create a new folder in  
your <code>www</code> directory on your shell account. Then you need a virtual host for this folder, for this you have to send us an email asking for this.


Name: alias.username.ulyssis.be
After your new virtual host has been configured, you need to do the same steps that you would do for a regular WordPress installation, i.e. the steps in the section above.
Document root: /home/user/username/new_folder


From now on you do al the same steps as for a regular wordpress installation.
You can also use WordPress' [https://wordpress.org/support/article/create-a-network/ multisite] option.
If you need more help with this, you can find it [https://wordpress.org/support/forum/multisite here].
 
[[Category:CMSs]]

Latest revision as of 07:59, 28 September 2023

This page will go through a basic setup of WordPress, and it gives a few specifics for setting it up on a hosted account over at ULYSSIS.

Putting setup-files in place

First you need to download WordPress from their website, https://wordpress.org/download/. After you've received a zip file, you have to extract it using your file manager (Windows: use right-click and select "extract all"; OSX: double-click the zip, it automatically extracts; Linux: right-click the file, and select "extract here"), this gives you a directory named wordpress.

Next, you have to move the contents of the wordpress directory to your webroot directory on our servers. Mostly this will be the www directory. Your webroot can be accessed via SFTP. If you need further instructions, you can find detailed instructions on: Accessing your files.

Setting up a database

Besides files, we also need a database to install WordPress on. If you haven't created a new database for the purpose of this installation, you can do this through UCC. Instruction on how to do this are available on Using MySQL. If you haven't created a database user yet, or don't know the password, you can also find more information there.
Warning: Postgresql databases are not supported by WordPress, only use MySQL databases.

Installing WordPress

Now we are ready to install WordPress, so we need to visit the web installer. If you're using a custom domain based on this guide: Adding domain names, you can access the installer by visiting your domain. If you do not use such a domain, the installer can be found on username.studentenweb.org or username.ulyssis.be (replace username with your actual username). This is where you have to set up your website. The easiest way to do this, is by following the wizard.

The setup will ask you for your database configuration:

  • Database Name/Databasenaam: the name of the MySQL database
  • Username/Gebruikersnaam: your username
  • Password/Wachtwoord: your MySQL database password
  • Database Host/Hostnaam: mysql.ulyssis.org
  • Table Prefix: only change this if you have multiple installations of WordPress in your database

So it will look something like this:

Wordpress screenshot.png

In the next step you need to fill in your own preferences.

Finishing up installation

Finally you will be prompted to log into your WordPress website. Now the installation is finished.

We advise all WordPress users to enable automatic updates for their plugins, themes and WordPress itself. You can find detailed instructions on Updating WordPress.


To help you design your website, there are a few guides from WordPress that can help you:

Setting up multiple instances of WordPress

If you want to have multiple instances of a WordPress site, you need to create a new folder in your www directory on your shell account. Then you need a virtual host for this folder, for this you have to send us an email asking for this.

After your new virtual host has been configured, you need to do the same steps that you would do for a regular WordPress installation, i.e. the steps in the section above.

You can also use WordPress' multisite option. If you need more help with this, you can find it here.