Ubuntu a command to install lamp

Source: Internet
Author: User

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:

    1. alias/tipbbs/ "/home/super/tipbbs/"
    2. Options Indexes multiviews FollowSymLinks
    3. AllowOverride None
    4. Order Deny,allow
    5. Deny from all
    6. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.