Home >Backend Development >PHP Tutorial >Configuration of php running as cgi and module respectively_PHP tutorial

Configuration of php running as cgi and module respectively_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-21 16:11:47914browse

php: PHP Version 5.0.0b4
apache: Apache/2.0.49 (Win32)
1, run as cgi
2, run as module
1, run as apache2's cgi run

ScriptAlias ​​/php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php -cgi.exe"
Add the above code to httpd.conf

2 and run it as an apache module

LoadModule php5_module "c:/php/sapi/php5apache2.dll"
AddType application/x-httpd-php .php
Add the above code to httpd.conf

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313857.htmlTechArticlephp: PHP Version 5.0.0b4 apache: Apache/2.0.49 (Win32) 1. Run as cgi 2. Run 1 as a module, run ScriptAlias ​​as apache2 cgi /php/ "c:/php/" AddType application/...
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