Building a LAMP environment PHP cannot resolve the problem
PHP failure to resolve and determine faults
1./usr/local/apache/bin/apachectl-M // check whether the php5_module (shared) module has been loaded;
2. In the/usr/local/apache2/modules/directory, check whether the libphp5.so module has been loaded;
3. Check whether the compiled configuration file is correct:/usr/local/apache2/conf/httpd. conf
Modify the configuration file httpd. conf of apache
Vim/usr/local/apache2/conf/httpd. conf
Find "AddType application/x-gzip. gz. tgz" in httpd. conf and add
"AddType application/x-httpd-php. php"
Find "DirectoryIndex index.html" and change this row
"DirectoryIndex index.html index.htm index. php"
Find "# ServerName www.example.com: 80" and change this line
"ServerName localhost: 80": Save and withdraw
4. Run the command to check whether the master configuration file is correct:/usr/local/apache2/bin/apachectl-t
5. When compiling and installing apache, we recommend that you add two parameters (you do not need to compile later ):
-- Enable-modes-shared = most // The module with the most compilation Loads
-- Enalbe-modes-shared = all // compile and load all modules
After a fault occurs, you must first determine the cause of the problem so that you can cope with it.
------------------------------------ Split line ------------------------------------
CentOS 6.5 system installation and configuration LAMP (Apache + PHP5 + MySQL) server environment
Configure the LAMP + phpMyAdmin PHP (5.5.9) development environment in Ubuntu 14.04
Ubuntu 14.10 text tutorial on hard drive installation in Windows 7
Install Ubuntu 14.10 on a USB flash drive
Official release and download of Ubuntu 14.10
How to upgrade Ubuntu 14.04 LTS to Ubuntu 14.10
Install LAMP in Ubuntu 14.10
------------------------------------ Split line ------------------------------------
This article permanently updates the link address: