The simplest method for installing lamp + phpmyadmin in ubuntu7.04
Source: Internet
Author: User
In ubuntu7.04, the simplest method for installing lamp + phpmyadmin-Linux Enterprise Application-Linux server application information is as follows. 1. In the new version: Edit?> Mark a software package using a task group?> Select LAMP Server
2. Install phpmyadmin: Search for phpmyadmin in the new version, and then install
4. Configure apache2.conf: sudo gedit/etc/apache2/apache2.conf
Remove the comment "#" (two # s) before AddHandler cgi-script. cgi #).
Then add such a segment in any place:
DocumentRoot/var/www/
Options FollowSymLinks
AllowOverride all
Options ExecCGI
Supplement to Nicky: Add ServerName. Otherwise, the system will prompt you when you restart the server:
* Forcing reload of apache 2.0 web server...
Apache2: cocould not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Apache2: cocould not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
5. restart the server: sudo/etc/init. d/apache2 restart
OK!
Nicky:
Note: PHP programs can be stored in/var/www/, and CGI programs can be stored in/var/www/cgi-bin.
Isn't it too simple? It takes less than one minute to complete the configuration except for the download time. Do I still need an APM package on Ubuntu? Remember the following commands and positions.
The above server configuration can be tested to run WordPress, Habari, and Movable Type normally.
After the installation, you can use http: // localhost/phpmyadmin to access phpmyadmin, but you cannot access http: // localhost. You can only access phpmyadmin through an IP address (intranet IP address), or 127.0.0.1. For example, http: // 192.168.1.5 access
I just moved a folder xiaonei under the window to var/www, but the following message is displayed when http: // localhost/xiaonei/index.html or http: // 192.168.1.5/xiaonei/index.html is used.
Forbidden
You don't have permission to access/on this server.
Change all permissions for folders and files to root and "read and write" (Use http: // localhost/xiaonei/index.html or http: // 192.168.1.5/xiaonei/index.html is normal, but the http: // localhost and http: // localhost/xiaonei still prompt forbidden)
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