Install an Unmanaged VPS with the LEMP Template

To install an unmanaged VPS using the LEMP template, follow these steps:

Access https://login.virtualservers.pt/ and enter your login credentials. Click Login.

After logging in, go to the VPS overview area. Identify the VPS where you want to install the template (if you have more than one) and click Manage.

Click Reinstall to start the reinstallation process.

Select the LEMP option and click Reinstall again.

A confirmation message will appear. Click Yes to confirm the reinstallation. Note that all existing data on the VPS will be erased, so make sure to back up any important information beforehand.

On the first boot, a temporary random password for MySQL will be generated. To view it, use the command:

grep -i pass /var/log/mysqld.log

Run the mysql_secure_installation command to secure your database.

LEMP Configuration on the VPS:

The Nginx configuration files are located in the standard directories:

  • /etc/nginx/

  • /etc/nginx/conf.d/

PHP 7.2 is installed as php-fpm from the Webtatic repository, with several modules already included. Main configuration files are located in:

  • /etc/php-fpm.d/

By default, Nginx and PHP-FPM are not set to start automatically on boot. To enable them, run:

chkconfig nginx on
chkconfig php-fpm on

After completing these steps, your VPS will be ready to run LEMP applications, with a secured MySQL database, PHP-FPM configured, and Nginx ready to serve your websites.

Was this answer helpful? 0 Users Found This Useful (0 Votes)