Install an Unmanaged VPS with the LAMP Template

To install an unmanaged VPS using the LAMP 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 LAMP option and click Reinstall again.

A confirmation message will appear. Click Yes to confirm the reinstallation. 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.

LAMP Configuration on the VPS:

The Apache configuration files are located in the standard directories:

  • /etc/httpd/

  • /etc/httpd/conf.d/

PHP 7.2 is installed as an Apache module from the Webtatic repository, with several modules already included.

By default, Apache is not set to start automatically on boot. To enable it, run:

chkconfig apache on

After completing these steps, your VPS will be ready to serve LAMP applications, with Apache configured, PHP available, and MySQL secured.

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