Training

When: Every first Sunday of every month -get a ticket- from $15 (Click Here).

Thursday, February 25, 2016

How To Install The LAMP Server Using Tasksel In Ubuntu 12.10/12.04/Linux Mint 13

How To Install The LAMP Server Using Tasksel In Ubuntu 12.10/12.04/Linux Mint 13



Open the terminal and install firstly Tasksel with this command:



sudo apt-get -y install tasksel



Start now Tasksel with this command:



sudo tasksel



Select now "LAMP server" from the given list using your spacebar and press Enter:







After you finish the installation of the LAMP server, check if it is
working by opening one of these links (use IP server if needed):



http://localhost/


or



http://127.0.0.1/


You must see this page:







If nothing appears, try to restart Apache with this command:



sudo /etc/init.d/apache2 restart



You can also install LAMP server with this command:



sudo tasksel install lamp-server



To test if PHP is well installed, run these commands:



echo "<?php phpinfo(); ?>" | sudo tee /var/www/test.php



sudo /etc/init.d/apache2 restart



Then open this link:



http://localhost/test.php



Finally, your PHP files and projects must be placed in this folder:



 /var/www/



You can access it with root privileges using this command:



sudo nautilus /var/www/

No comments: