Re: apche loadmodule php help.
| From: | Seung Hwan Kang | Date: | Thu, 03 Oct 2002 05:15:04 +0000 |
| Subject: | Re: apche loadmodule php help. | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16140@lists.php.net to get a copy of this message | ||
If your PHP is located to c:\php, you can do this way to configue httpd.conf
using apache 1.3.x
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
# To use PHP scripts
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Using apache 2.0.x
LoadModule php4_module c:/php/sapi/php4apache2.dll
# To use PHP scripts
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
If it doesn't work you need to (fresh) install your apache (please do not
reinstall it over your old apache configures). Make sure you make a backup
for htdocs directory, and delete all other directories by yourself
(manually). Then replace back your htdocs to your new apache.
That's it.
"Steve Bradwell" <SteveB@compxnet.com> wrote in message
news:57A1618E7109D311A97D0008C7EBB3A10132B144@KITCHENER...
> Hello all,
>
> I am in the process of changing my win 98 box to a 2000 box and am also
> upgrading from apache 1.3.23 to 1.3.26. Unfortunatly I took the easy route
> and simply copied my old httpd.conf file over the existing httpd.conf. All
> is fine except Apache has a problem with the line:
>
> "LoadModule php4_module c:/Program
> Files/Apache/Apache/php/sapi/php4apache.dll"
>
> Apache says "Load module takes 2 arguments..."
>
> Can anyone help me with what I have done wrong? This works with 1.3.23 but
> not with 1.3.26, do I need some kind of seperator in this line to specify
> that it is 2 arguments?
>
> Thanks alot,
> Steve.
>