WordPress¶
WordPress is a content management system (CMS) written in PHP and mainly intended for creating blogs.
Initial setup¶
Before installing WordPress, you must first ensure the correct configuration of the domain itself and the database:
- Create a Website without editing the options in
Advanced Settings. - Indicate our DNS servers at the domain registrar.
- Create a MySQL database with a database user.
Installation¶
Warning
The MySQL server address depends on the server number. For server s0.serv00.com will be the address mysql0.serv00.com, for server s1.serv00.com - mysql1.serv00.com, for server s2.serv00.com - mysql2.serv00.com etc. The examples use mysqlX.serv00.com
In order to perform the installation, you must first log in to your account via SSH, then:
- Go to
~/domains/DOMAIN/whereDOMAINis the name of the domain where WordPress will be installed, command:cd ~/domains/DOMAIN/. - Download the installation archive of the latest CMS version:
fetch https://wordpress.org/latest.zip - Delete the
public_htmldirectory, unpack the archive, rename the unpacked directory and remove the unnecessary archive after unpacking:rm -r public_html && unzip latest.zip && mv wordpress public_html && rm latest.zip - Go to the website and continue the installation in your browser.
- When configuring the system, enter:
- database server address -
mysqlX.serv00.com - database name - name of the created
MySQL database - database user -
username(who has access to the previously createdMySQL database), - database password -
password of the previously entered user. - After the installation is complete, remove the
installdirectory with therm -r public_html/installcommand
We recommend using the wp admin slug plugin to hide the standard address of the login panel for the administrator.