Member
Member
ballsmag   2006-01-10, 15:50
#1

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.

Member
Member
kwanbis   2007-05-13, 02:17
#2

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?

Member
Member
Chilifrei64   2007-05-13, 15:05
#3

look here for dreamhost zenphoto installation

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.