RE: [PHP] PHP as CGI

From: Date: Mon, 19 Feb 2001 20:11:24 +0000
Subject: RE: [PHP] PHP as CGI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40591@lists.php.net to get a copy of this message
i had a very similar problem when i first setup PHP/Apache on my linux box... i forgot to add a line to my httpd.conf and got all sorts of "Cant find this" "Cant find that" type of errors.... my mistake was that i did not set ScriptAlias and Action correctly, and thus apache was having all sorts of problems executing my scripts becuase i put the physical path to php after my Action directive, rather than alias it via a ScriptAlias directive.. (silly me thought i could do away with the ScriptAlias and just point to it directly) make sure you have both of these (or something similar) in your httpd.conf file: ScriptAlias /php/ "/physical/path/to/php" Action application/x-httpd-php "/php/php" (and make sure to "killall -HUP httpd" after any changes to the conf files, although you probably knew that already... :) hope it helps. > -----Original Message----- > From: Hrishi [mailto:hrishi@mediaibc.com] > Sent: Monday, February 19, 2001 03:31 > To: php-general@lists.php.net > Subject: Re: [PHP] PHP as CGI > > > > > > AddType application/x-httpd-php .php > > Action application/x-httpd-php /usr/local/php > > > > A) I'm not sure you need the "." on ".php" > > > > i've tried both with and without the '.' , but the server always responds : > > --- > Not Found > > The requested URL /usr/bin/php4/test.php was not found on this server. > > Apache/1.3.3 Server at www.website.com Port 80 > > --- > > the installed CGI is php 4.0.3pl1, > it runs fine from the command line. > > any ideas? > > thanks, > Hrishi > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#40591) next »