Apahce and php adjustment

Source: Internet
Author: User
Integrated apache and php1. apache configuration file httpd is modified. conf1) in httpd. find many loadmodules in the conf file, and add the following statement at the end: & nbsp; LoadModulephp5_moduleE:/soft apahce and php integration
Integrate apache and php

1. modify the configuration file httpd. conf of apache.

1) find many loadmodules in the httpd. conf file and add the following statement at the end:
LoadModule php5_module E:/soft_work/PHP/php5apache2_2.dll
AddType application/x-httpd-php. php

PHPIniDir "E:/soft_work/PHP"

2) modify the DirectoryIndex and add index. php.

3) create a directory myphp in htdocs under the apache Directory, and create an index. php file under the Directory. the content is as follows:


3) restart apache and enter http: // localhost/myphp in the browser. if the result is displayed, apache and php are successfully integrated.

Supplement: If you want to change the site directory, modify httpd. conf.
Set the site root directory
DocumentRoot "E:/soft_work/Apache Http Server/htdocs" changed:
DocumentRoot "D:/site"

Set Changed:


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.