Ubuntu a command to install LAMP
Here's how it works:
1. The lamp installation package was not found in Ubuntu Software Center Ubuntu 10.10. The previous Ubuntu is the installation package of the lamp that has the good package, does not need oneself one to install the apache/mysql/php ...
2. Google a bit, you can:
sudo apt-get update; sudo apt-get install Tasksel
sudo tasksel
3. Select Lamp server in the interface that appears, and then start the installation. You will need to set the password for MySQL root during installation.
4. Sudo vi/var/www/index.php:
Phpinfo ();
?>
5. Sudo/etc/init.d/apache2 Restart
6. Done.
7. If you want to add the Tipbbs directory, you can follow the/doc, edit the file:/etc/apache2/sites-available/default, add the following, and then restart the Apache-sudo service apache2 Restart can:
- alias/tipbbs/ "/home/super/tipbbs/"
- Options Indexes multiviews FollowSymLinks
- AllowOverride None
- Order Deny,allow
- Deny from all
- Allow from 127.0.0.0/255.0.0.0:: 1/128
Through the article description, do not think this method to install lamp is very simple ah! Share it with your friends!
Ubuntu a command to install lamp