Help! Unable to setup PHP on Apache (Win2K) ?!

From: Date: Fri, 13 Sep 2002 18:34:21 +0000
Subject: Help! Unable to setup PHP on Apache (Win2K) ?!
Groups: php.install 
Request: Send a blank email to php-install+get-8438@lists.php.net to get a copy of this message
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 | -----------------------------------

« previous php.install (#8438) next »