Monday, October 8, 2012

How To Install The LAMP Server Using Tasksel In Ubuntu

Today, we will also see another method for installing the LAMP web server using Taksel under Ubuntu 12.10/12.04 or older.

Getting Started

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:


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

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:



Install The LAMP Server Using Tasksel In Ubuntu

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/

Share on :

0 comments:

Post a Comment

 
© Copyright Ubuntu Tutorial-Ubuntu Desktop-Ubuntu Server 2012 - Some rights reserved | Powered by Blogger.com.