How to Install Apache, MySQL, PHP on VPS Ubuntu VULTR

LAMP includes Apache, MySQL, PHP, and Ubuntu.

How to Install Apache, MySQL, PHP on VPS Ubuntu VULTR

How to Install Apache, MySQL, PHP on VPS Ubuntu VULTR

Step One: Install Apache

Apache is a free open source software for web servers.

To install Apache type these commands:

Or just copy and paste this:

Tahhda. Let’s check if Apache was installed correctly. Run the command: hostname -I and note down that IP. Open up your Internet Browser and direct your browser to that IP (Example: http://108.61.212.235 ). The page should load and say “It Works!”.

Step Two: Install MySQL

MySQL is a database management system. Let’s install MySQL. Type these commands:

During the install, MySQL will request for you to setup a password.

Once that has been installed, run these commands:

Then write:

Step Three: Install PHP

Now write these commands:

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

Done.