A simple LAMP environment is successfully configured in Ubuntu.

Source: Internet
Author: User
Configure a LAMP environment: Open the new software package manager of Ubuntu, and select to use the task group to mark the software package on the edit tab. Here are some software packages pre-grouped to complete each (corresponding) task. If you select a task, the corresponding software package is marked for installation. (Supports AMD64) Check the LAMPserver and check it. After confirmation, the Manager will mark the required software package according to the dependency. You just need to update it. But DocumentRoot

Configure a LAMP environment: Open the new software package manager of Ubuntu, and select to use the task group to mark the software package on the edit tab. Here are some software packages pre-grouped to complete each (corresponding) task. If you select a task, the corresponding software package is marked for installation. (Supports AMD64)

You can check the LAMP server. After confirming, the Manager will mark the required software package according to the dependency. You just need to update it.

But DocumentRoot points to/var/www. The initial permission of this directory will make it inaccessible.

Sudo apt-get install libapache2-mod-php5

Sudo chmod 775/var/www
Sudo chmod 775/var/www /*
/Etc/init. d/apache2 restart

Restart the Service (but why 775 ?). Now, write a simple php script:

Gedit/var/www/index. php

Save. Enter 127.0.0.1 in the address bar of the browser. You can see that php can be properly interpreted.

Finally, configure MySql. First

Sudo apt-get install php4-mysql

Download the php extension of MySql, and then

Gedit/etc/php4/apach2/php. ini

Remove the comments before extension = mysql. so and restart the service. After phpMyAdmin is installed, everything is normal.

A simple LAMP environment is configured.

Related Article

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.