The next part of our setup process is to install LAMP Stack. LAMP stands for Linux, Apache, MySQL and PHP.
Since the purpose of creating our web server is to host our web applications, we will require these services.
apt-get install lamp-server^
Now press enter.
Once that's complete, type in:
apt-get install apache2-utils
This installs required apache utilities.
Now we need to install PhpMyAdmin:
apt-get install phpmyadmin
Next, we need to link PhpMyAdmin to Apache2 Server:
ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf
We need to restart the Apache2 service::
LAMP Stack is now installed, and we can test to make sure our install was successful. To do so, type your server's IP address into your web address bar.
You should see the default Apache page displayed.
Also test to make sure PhpMyAdmin works.
After your IP address type in /phpmyadmin.