PHP installation tutorial: FAQ (2)

WBOY
Release: 2016-08-08 09:33:29
Original
1162 people have browsed it

4.

Question: There seems to be a problem when I compile php and APACHE together. It always says that the httpd.h file cannot be found, but in fact the file does exist. Why?

Answer: You need to let the PHP configuration/installation script know the top-level directory of your APACHE source code, not the directory containing the httpd.h file. That is, "--with-apache=/path/to/apache/" should be specified instead of "--with-apache=/path/to/apache/src".


5.

Question: I installed PHP using RPM, but APACHE cannot process PHP files. Why?

Answer: Assuming you have installed PHP correctly using RPM, then you must back-note or add the following lines to the httpd.conf file:

#ExtraModules
AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_perlc.
#ExtraModules
LoadModule php_module modules/mod_php.so
LoadModule php3_module modules/libphp3.so
LoadModule perl_module modules/libperl.so

Also, add:

AddType application/x-httpd-php3 .php3

to the global section of httpd.conf, or to the section where you need to provide PHP support.​

The above introduces the PHP installation tutorial: Frequently Asked Questions (2), including relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!