On 13.9.2007, at 10:14, Joachim Durchholz wrote:
> Could you provide us a URL that gives us phpinfo output? We could then
> take a closer look; it's a bit difficult to discern what's going wrong
> with the information that we have.
> Preferrably two URLs, one for a mod_php and one for a mod_fcgid setup;
> then we can see how the environments differ.

Sure, see below (I absolutely do not care of mod_php any more, not on  
shared hosting, so we do not have it implemented at all). It's the  
same PHP build in all three cases, straight out of PKGSRC (on  
Solaris), compiled with the FastCGI flag (which is exclusive of CGI  
there). You can see that the environment differs in all three cases  
though.


1. http://phptest.joyeurs.com/cgi/

* Good old CGI
* System environment is preserved
* PATH_INFO is preserved in the ORIG_* variables  
(cgi.fix_pathinfo=1), both in env and $_SERVER

<Directory /users/home/phptest/web/public/cgi>
Action php5-cgi /cgi-bin/php5.cgi
AddHandler php5-cgi .php
</Directory>


2. http://phptest.joyeurs.com/fcgi-action/

* mod_fcgid via Action/AddHandler
* System environment is empty
* PATH_INFO is preserved in the ORIG_* variable set  
(cgi.fix_pathinfo=1), in $_SERVER only

<Directory /users/home/phptest/web/public/fcgi-action>
Action php5-fcgi /fcgi-bin/php5.fcgi
AddHandler php5-fcgi .php
</Directory>
<Location /fcgi-bin/>
Options ExecCGI
SetHandler fcgid-script
</Location>


3. http://phptest.joyeurs.com/fcgi-wrapper/

* mod_fcgid via FCGIWrapper/AddHandler
* System environment is empty
* PATH_INFO is not available in any form

<Directory /users/home/phptest/web/public/fcgi-wrapper>
AddHandler fcgid-script .php
FCGIWrapper /users/home/phptest/fcgi-bin/php5.fcgi .php
</Directory>


The wrapper script is the same in all cases:

#!/bin/sh
PHPRC=/users/home/phptest/etc/php5
export PHPRC
exec /usr/local/bin/php5-cgi


I could switch the FCGIWrapper method to using the Action/AddHandler/ 
SetHandler combo, but I still think this should work somehow regardless.

Filip

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to