How to Install and Configure Linux, Apache, MySQL, PHP(LAMP) in Ubuntu - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Thursday, October 24, 2019

How to Install and Configure Linux, Apache, MySQL, PHP(LAMP) in Ubuntu

LAMP Server Installation Steps



Apache:
sudo apt-get install apache2

MySQL / PHPMyAdmin:
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

PHP:
sudo apt-get install php5 libapache2.mod.php5

mkdir /var/www


sudo gedit /var/www/testphp.php

<?php phpinfo(); ?>

http://localhost/testphp.php

PHPMyAdmin:
sudo gedit /etc/apache2/apache2.conf

Include /etc/phpmyadmin/apache.conf

sudo /etc/init.d/apache2 restart

http://localhost/phpmyadmin

Restart Apache:
sudo /etc/init.d/apache2 restart