Home > php教程 > php手册 > Apache模块的方式安装PHP

Apache模块的方式安装PHP

WBOY
Release: 2016-06-06 20:02:03
Original
1349 people have browsed it

以Apache模块的方式安装PHP,在文件http.conf中首先要用语句 LoadModule php5_module D:/xampp/apache/bin/php5apache2.dll 动态装载PHP模块,然后再用语句 AddType application/x-httpd-php-source.phpsAddType application/x-httpd-php .php .php5 .php4 .

以Apache模块的方式安装PHP,在文件http.conf中首先要用语句LoadModule   php5_module "D:/xampp/apache/bin/php5apache2.dll"
动态装载PHP模块,然后再用语句

AddType application/x-httpd-php-source.phps AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml

使得Apache把所有扩展名为php的文件都作为PHP脚本处理。

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template