ZenphotoCMS Forum
cgi-system redirect (aka Dreamhost issue) - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: cgi-system redirect (aka Dreamhost issue) (/thread-205.html)



cgi-system redirect (aka Dreamhost issue) - ballsmag - 2006-01-10

Not sure if this has been resolved by someone else, but the Dreamhost problem is a result of Dreamhost defaulting new domains to run PHP as a CGI (mostly for permissions). This means the $_SERVER['SCRIPT_FILENAME'] returns /dh/cgi-system/php.cgi instead of the zen script.

For users, the very easy workaround for this is to use an 0.8 config.php which does not auto-detect the paths.

As for fixing the auto-detection, you might be able to use the constant FILE to auto-detect the SERVERPATH, and I guess $_SERVER['REQUEST_URI'] for WEBPATH?

For reference, $_SERVER['SCRIPT_NAME'] returns 'cgi-system/php.cgi' and $_SERVER['SCRIPT_FILENAME'] returns '/dh/cgi-system/php.cgi' on Dreamhost with PHP running as a CGI, neither of which are useful.




cgi-system redirect (aka Dreamhost issue) - kwanbis - 2007-05-13

ok, i just have that same issue, but i just installed zenphoto, so i have no idea of how to do what you are saying. Can you be more specific?




cgi-system redirect (aka Dreamhost issue) - Chilifrei64 - 2007-05-13

look here for dreamhost zenphoto installation

http://www.zenphoto.org/support/topic.php?id=316&replies=31