Home >Backend Development >PHP Tutorial >RPM安装PHP后应如何配置 Apache_PHP

RPM安装PHP后应如何配置 Apache_PHP

WBOY
WBOYOriginal
2016-06-01 12:35:281036browse

Apache

Q:我使用RPM安装了PHP,但APACHE却不能处理PHP文件。为什么?

 

A:假设你使用RPM正确安装了PHP,那你必须反注或加入下面的几行到httpd.conf文件中:

#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

另外,再加入:

AddType application/x-httpd-php3 .php3

到httpd.conf的全局部分,或到你需要提供PHP支持的部分。

Statement:
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