php分別做為cgi與module來(lái)運(yùn)行的設(shè)置
發(fā)表時(shí)間:2024-01-30 來(lái)源:明輝站整理相關(guān)軟件相關(guān)文章人氣:
[摘要]php: PHP Version 5.0.0b4apache: Apache/2.0.49 (Win32)1,做為cgi來(lái)運(yùn)行2,做為module來(lái)運(yùn)行1,做為apache2的cgi運(yùn)行ScriptAlias /php/ "c:/php/"AddType application...
php: PHP Version 5.0.0b4
apache: Apache/2.0.49 (Win32)
1,做為cgi來(lái)運(yùn)行
2,做為module來(lái)運(yùn)行
1,做為apache2的cgi運(yùn)行
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
上面的代碼添加到httpd.conf
2,做為apache的模塊運(yùn)行
LoadModule php5_module "c:/php/sapi/php5apache2.dll"
AddType application/x-httpd-php .php
上面的代碼添加到httpd.conf