Re: Running PHP as a CGI, chasing my own tail....

From: Date: Tue, 20 Jan 2004 17:15:05 +0000
Subject: Re: Running PHP as a CGI, chasing my own tail....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175159@lists.php.net to get a copy of this message
pw wrote:
In my httpd.conf file I have placed the lines: AddHandler phtml-script .phtml Action phtml-script /cgi-bin/php I have a symlink in my cgi-bin directory to the php executable. Am I missing anything else to make this work?
A clue-by-four about security. If that was to work you would be opening your server up to any kind of attack an attacker could thinking of. We're talking *wide* open. 1) Why can't you use the PHP module? 2) What version of Apache are you using? If Apache 1.3, the manual[1] gives clear instructions on how to set this up... ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php .phtml Action application/x-httpd-php "/php/php.exe" See here: http://uk.php.net/manual/en/install.apache.php If Apache 2, I'm not sure what they steps are, but I ask again, why can't you use the module? [1] http://uk.php.net/manual/en/install.apache.php -- Stuart

« previous php.general (#175159) next »