Home > Backend Development > PHP Tutorial > How to configure Apache_PHP tutorial after installing PHP via RPM

How to configure Apache_PHP tutorial after installing PHP via RPM

WBOY
Release: 2016-07-13 17:21:26
Original
857 people have browsed it

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

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

#Extra Modules
AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_perlc.
#Extra Modules
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

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


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532438.htmlTechArticleQ: I installed PHP using RPM, but APACHE cannot process PHP files. Why? A: Assuming you have installed PHP correctly using RPM, then you must back-note or add the following lines to the httpd.conf file...
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