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:
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:
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/
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:
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/
0 comments:
Post a Comment