Home > Backend Development > PHP Tutorial > PHP两种安装模式的区别_PHP

PHP两种安装模式的区别_PHP

WBOY
Release: 2016-06-01 12:39:06
Original
870 people have browsed it

模块化安装:
首先把php4ts.dll移动到或者拷贝到windows/system (Windows 9x/Me)或者winnt/system32 (Windows NT/2000/XP)目录下面,覆盖原来存在的文件; 然后修改Apache配置文件httpd.conf:(假设c:/php/是你的PHP安装路径)

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

做为CGI安装:
如果使用CGI模式,请修改php.ini的设置: cgi.force_redirect = 1,以增强apache的安全性,然后,在httpd.conf插入以下内容:

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

以上是两者的差异,其他都相同。

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