WordPress installation | Kinsami

Home   >   Documentation   >   Tutorials   >   Wordpress installation

Wordpress installation (Ubuntu 18.04)

With WordPress, it is very easy to create your own website in a short time.

Access your VPS

Access your VPS through SSH via port 810. You can run SSH on PowerShell or PuTTY (Microsoft Windows), a standard terminal emulator (Linux/BSD/macOS), or Termux (Android). The text in blue must be modified.

ssh -P 810 ubuntu@server-ip

Install dependencies

Install Apache, MySQL, and PHP with the following command.

sudo apt -y update && sudo apt -y full-upgrade && sudo apt -y install apache2 libapache2-mod-php mysql-server php php-xml php-curl php-gd php-mysql php-mbstring unzip && sudo apt -y autoremove && sudo apt -y autoclean

Open firewall ports

Open the HTTP (80) and HTTPS (443) ports on your server.

sudo ufw allow in 80/tcp && sudo ufw allow in 443/tcp && sudo ufw status numbered

Create the database

Create a new database and user for your WordPress installation. Remember to replace the blue text with whatever you choose.

sudo mysql_secure_installation && sudo mysql -e "create database new-database; create user 'new-user'@'localhost' identified by 'password-here'; grant select, insert, update, delete, create, drop, alter, create temporary tables, lock tables on new-database.* to 'new-user'@'localhost'; flush privileges; exit;"

Download WordPress in the public folder

With the following command you will download and unzip WordPress in the public folder of your server.

wget -O /tmp/latest.zip https://wordpress.org/latest.zip && unzip /tmp/latest.zip -d /tmp/ && sudo rm -R /var/www/html && sudo mv /tmp/wordpress /var/www/html

Set the correct permissions

Set the correct permissions for the files within the public folder of the server.

sudo chown -R ubuntu:www-data /var/www/html && sudo find /var/www/html/ -type d -exec chmod 775 {} \; && sudo find /var/www/html/ -type f -exec chmod 664 {} \; && sudo reboot

Access with your browser

Now all that remains is to enter from a web browser to http://server-ip and follow the steps of the WordPress installer.

© 2019 Kinsami. All rights reserved.
Proudly misionero.


© 2019 Kinsami. All rights reserved.
Proudly misionero.