Re: Hi

From: Date: Thu, 31 Aug 2000 14:15:12 +0000
Subject: Re: Hi
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2341@lists.php.net to get a copy of this message
Fco-Arturo Herrera wrote: > i have a problem, installs the server apache in my windowsNT and i want > to form PHP but at > the time of adding a line in configuration file of apache, the server > marks an error and > it I cannot return to raise, and me envia an error message that can help > me? line that I > add to him is the following Action php-script/cgi-bin/php.exe and the > error is > Syntax error on line 630 of c:/apache/conf/httpd.conf: > Action takes two arguments, a media type followed by a script name > [Wed Aug 30 13:04:22 2000] [error] [client 130.6.95.101] File does not > exist: > c:/apache/htdocs/ima_fondo_obscuro.gif > can i help me please? Arturo, The Action statement in your Apache httpd.conf file takes 2 arguments, as the error message states. You are missing the application-type specifier in this statement... For adding php to Apache in CGI mode (safest running for first time users), try these 3 lines: ScriptAlias /php/ "c:/phpdev/" Action application/x-httpd-php "/php/php.exe" AddType application/x-httpd-php .php .php3 .php4 NOTE: "c:/phpdev/" should be the directory where php.exe is located on your server's local drive. Also note that all paths in these sections use front-slashes - "/" - not backslashes - "\". -- Andy Hoffman Web Developer Bristol-Myers Squibb email: andy.hoffman@bms.com

« previous php.windows (#2341) next »