

In order to improve the security of your MySQL server, we recommend that you run the mysql_secure_installation script by typing the following command: mysql_secure_installation To install MySQL on your system, execute the following command and press Y to continue: apt-get install mysql-serverĭuring the installation, you will be asked to enter a password for the MySQL root user. MySQL is one of the most popular database management systems.

The next step is to install the MySQL database server which will be used for the data storage of your WordPress site. Step 3: Install the MySQL Database server

If Apache is successfully installed you should see the Apache default welcome page. To verify that Apache is running, you can also open your web browser and enter your server IP address, (e.g. To check the status of your Apache server and make sure it is up and running, you can run the following command: systemctl status apache2 To install the Apache web server, run the following command: apt-get install apache2Īfter the installation is complete, you should start and enable Apache to start automatically upon server reboot with: systemctl start apache2 Apache is a fast and secure web server and one of the most popular and widely used web server in the world. In this section, we will show you how to install the Apache Web Server on your VPS. If this is your first time logging into your brand new Ubuntu VPS, you can also check our First Steps After Getting An Ubuntu VPS tutorial for some additional basic initial server setup and security tips. Once logged in, make sure that your server is up-to-date by running the following commands: apt-get update To connect to your server via SSH as user root, use the following command: ssh -p PORT_NUMBERĪnd replace “IP_ADDRESS” and “PORT_NUMBER” with your actual server IP address and SSH port number. Step 1: Connect to your server and update your systemīefore we begin, let’s connect to your VPS via SSH as user root and update your system software to the latest available version. A valid domain name for accessing your WordPress site (optional).Full SSH root access or a user with sudo privileges is also required.However, we will still go through all the necessary steps and show you how to install and configure the LAMP stack yourself, in case you are doing this on a clean server. Our Ubuntu 16.04 VPS already comes preinstalled with a fully working LAMP stack. For the purposes of this tutorial, we will use an Ubuntu VPS.Step 6: Create a database for WordPress.

