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.