Re: [cgiwrap-users] cgiwrap php continued
Brought to you by:
nneul
From: Piotr K. <ma...@ma...> - 2001-09-05 09:02:11
|
On Tue, Sep 04, 2001 at 04:41:37PM -0400, Brian Allen wrote: > get php to work with cgiwrap on a netscape enterprise server or an > apache server. My next plan was to truss the output of cgiwrap as I I assume you are talking about running the php scripts through cgiwrap-php (cgiwrap v. 3.7 with cgiwrap-php patch). If you are using that version of cgiwrap (ie. 3.7 with the patch) and you can not run php scripts from the apache server, then there is something wrong with your configuration. Did you add to the server config the lines: AddHandler php-cgiwrap .php Action php-cgiwrap /cgi-bin/php-cgiwrap and reload the apache server. > 22981: open("/users/systems/ballen/www/cgi-bin", O_RDONLY) = 3 > > Notice that the script name, hello.php, was not passed to cgiwrap so it I also would like to see the whole truss output (*DO NOT SEND THIS to the list*). > could be opened. I have seen one mention of this possible problem at > this website by Piotr Klaban where it says: > > "There is new variable SCRIPT_FILENAME necessary with new php > version" Right, but I said that you have to use cvs version or cgiwrap v3.7. Then with the newest version the SCRIPT_FILENAME variable is set. IMHO this is not the problem we should look for. I will change the text on the website (because everyone should already upgrade cgiwrap to the version 3.7). > Then I ran ./cgiwrap from the commandline, but I received no output so > that idea did not work. If you wish to run php scripts with cgiwrap, that is compiled with the cgiwrap-php you need to run it with php-cgiwrap, not cgiwrap. Regards, -- Piotr Klaban |