Re: Help! Unable to setup PHP on Apache (Win2K) ?!
| From: | gilang4 | Date: | Sat, 14 Sep 2002 23:18:43 +0000 |
| Subject: | Re: Help! Unable to setup PHP on Apache (Win2K) ?! | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-8449@lists.php.net to get a copy of this message | ||
I load my module as such ( and I have Apache + PHP on NT )
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
and reboot the Apache server ( not machine )
gilang
James Hurst <jhurst@designforge.com> wrote in message
news:20020913184055.35963.qmail@pb1.pair.com...
> I've installed Apache 2.0.40 onto a Win2K box and verified that it
> serves up webpages, and now need to configure it to process PHP markup.
> I just downloaded PHP 4.2.3 installer, installed it into C:\PHP, and as
> per the instructions added this to httpd.conf to use it as a CGI binary:
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> Upon restarting Apache it says:
> "Syntax error on line 24 of C:/Apache/conf/httpd.conf:
> Invalid command: 'ScriptAlias', perhaps mis-spelled or defined by a
> module not included in the server configuration."
> I tried commenting out that line, but then it gives a similar complaint
> about the next one. And the next. Am I putting these commands in the
> wrong file or something?
> (btw, I'm a PHP newbie)
>
> So... just for giggles I tried loading it as a module by using this
instead:
>
> LoadModule php4_module c:/php/sapi/php4apche2.dll
>
> Upon restarting Apache (with apache -k start) it says "Syntax error on
line
> 27 of C:/Apache/conf/httpd.conf:
> Cannot load C:/PHP/sapi/php4apche2.dll into server: The specified
procedure
> could not be found."
> Ughh!! What am I doing wrong?
>
>
> Your help is certainly appreciated, thanks!
>
>
>
> --
> James Hurst, jhurst@DesignForge.com
> Engr, www.DesignForge.com - creators of RobotMind and InteMirror
> -----------------------------------
> | InteMirror: Solves the problem |
> | of keep your files sync'd up! |
> | www.DesignForge.com |
> -----------------------------------
>
>