Open terminal and type the command given below. Please note that we have to give "^" at the end and its not a typo. Many prompts will pop up during installation to set password or asking for the server password. Please give them when asked for.
sudo apt-get install lamp-server^
After Installation open a web browser and enter the address http://localhost/.
You should see a page that says "It Works!" Hence you can confirm that apache is working perfectly.
Create a file in the /var/www directory called info.php. Enter the following command in the terminal to create the file.
echo "" | sudo tee /var/www/info.php
Now open a web browser again and enter the address http://localhost/info.php . You will get a php info page. If you are not getting this page try restarting apache2 by giving the command below.
/etc/init.d/apache2 restart
INSTALLING PHPMYADMIN.
LAMP installation will not install phpmyadmin. Also phpmyadmin is not required for the proper functioning of LAMP. It just gives an easy platform for editing.
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
Open your web browser and enter the address http://localhost/phpmyadmin/ to access it.
sudo apt-get install lamp-server^
After Installation open a web browser and enter the address http://localhost/.
You should see a page that says "It Works!" Hence you can confirm that apache is working perfectly.
Create a file in the /var/www directory called info.php. Enter the following command in the terminal to create the file.
echo "" | sudo tee /var/www/info.php
Now open a web browser again and enter the address http://localhost/info.php . You will get a php info page. If you are not getting this page try restarting apache2 by giving the command below.
/etc/init.d/apache2 restart
INSTALLING PHPMYADMIN.
LAMP installation will not install phpmyadmin. Also phpmyadmin is not required for the proper functioning of LAMP. It just gives an easy platform for editing.
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
Open your web browser and enter the address http://localhost/phpmyadmin/ to access it.
0 comments:
Post a Comment