Installation LAMP Server:
Step 1 : LAMP Server Install Tasksel via terminal:
#sudo apt-get install tasksel
The above Command will install tasksel on yours system now with tasksel you can easily install Lamp Server.
Step 2: Run the Taskel to install LAMP server :
A wizard open from wizard select LAMP Server to install give root password mysql server.
Step 3: In internet browser, go to the ip address to check A Apache is working:
Step 4: Then To test PHP file, create a test.php file on the server command given below:
#sudo gedit /var/www/html/test.php
Now Write the test code in test.php file and save it ( <?php phpinfo(); ?>)
Step 5: Edit the apache2.conf file give the following command:
#sudo gedit /etc/apache2/apache2.conf
Step 6:Now Add the following line in apache2.conf file given below :
# include /etc/php5/apache.conf
Note in above line php version verify by and then writhe it to check version give command below
#php –versions (check version of php and add that php version in Step 6 added line of code)
Step 7: So Now restart the Apache Server again by command below :
#sudo service apache2 restart
Step 8: Now Go to URL : http://localhost/test.php
The above URL give php info as we added code for php version check in test.php file
Step 9: Now localhost is ready to add phpmyadmin give the following command.
#sudo apt-get install phpmyadmin -y
Wizard open Select apache2 server from wizard for configurations
Step 10: Now Go to URL : http://localhost/phpmyadmin
Yours phpmyadmin is ready Enjoy.