Building a LAMP environment PHP cannot resolve the problem

Source: Internet
Author: User

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:

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.