windows apache php cig,Microsoft Windows 下的 Apache 1.3.x

用户评论:

[#1]

frank at circuitdata dot dk [2008-09-19 08:43:55]

Entries to httpd.conf for PHP 5:

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

must appear BEFORE

LoadModule php5_module "C:/php/php5apache.dll"

This should NOT be added:

AddModule mod_php5.c

It makes no sense since AddModule means activation of a module compiled staticly into the Apache. We ofcourse do not have that!

[#2]

david [2007-06-05 12:10:09]

Note that if you place php in the c:\php5 director your ScriptAlias line should read

ScriptAlias /php/ "c:/php5/"

This may be obvious to regular Apache users, but I changed all sorts of things around before realizing this was the issue. I thought

Action application/x-httpd-php "/php/php-cgi.exe"

was a path and was changing it to "/php5/php-cgi.exe" which didn't work.

[#3]

BCarr [2006-01-20 13:35:16]

To Besta and 'j dot b..dot sk':

'Add Module mod_php4.c' or 'AddModule mod_php5.c'  may or may not be necessary depending on your environment and version of Apache.

In my situation, this add module DID NOT work or it wasn't necessary.  The LoadModule was enough to do the trick.  I tried it with PHP4 on Apache 1.3.34 and Apache 2.0.

All in all, your notes have been helpful.  Thanks.

[#4]

j dot b at inmail dot sk [2005-09-27 12:42:47]

DO NOT FORGET to add "index.php" into

DirectoryIndex index.html

so you get index.php processed;multiple values separate by space:

DirectoryIndex index.html index.php

[#5]

[2005-08-27 13:51:31]

On contrary to user "Besta"'s post

AddModule mod_php5.c

should be added to the addmodule section. I installed php5 and apache 1.3.3 and without the above line it is not recognizing the .php files

[#6]

Besta [2005-08-07 02:16:33]

Do not add this line to apache http.conf. It does not work.

AddModule mod_php5.c

Also, remember to edit the system variables, edit the PATH and add the path to the php directory and restart windows.

[#7]

psychosos at gmx dot at [2005-02-27 05:59:02]

Please note that the SetEnv PHPRC "directory/to/phpini/" only works when using PHP as CGI, but _not_ when you use the PHP Apache Module!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值