![]() |
|
Problem on PHP5 Server - 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: Problem on PHP5 Server (/thread-1213.html) |
Problem on PHP5 Server - maxjac - 2007-02-28 I moved to a PHP5 server with LunarHost (great company BTW) but although it used to work on a PHP 4.4.4 server with the same company, I am having the following problems: if accessing http://www.quebecgt.com/zenphoto I get a message saying 'Zenphoto error: Album does not exist.' if accessing http://www.quebecgt.com/zenphoto/index.php? I get the test album I have created but no images appear This is a clean install with 777 on cache and albums folders. I have tried with mod_rewrite On or Off and it does the same thing. Admin page works fine if you try to access http://www.quebecgt.com/zenphoto/admin it will redirect to the proper path. Could it be a problem with GD ? How can I fix it if this is the case ? BTW, I have left the default user/pass for the admin part so knock yourselves out before I change it ! Thanks all for your time, Problem on PHP5 Server - stef - 2007-02-28 Did you changed the mod_rewrite inside .htaccess and zp-config.php? I got this behavior (no picture) with mod_rewrite = true ==> so I changed it to false ==> it works. GD: Is a GD section there? Problem on PHP5 Server - AlexWilson - 2007-02-28 Same error I was seeing yesterday, maybe try this? Problem on PHP5 Server - trisweb - 2007-02-28 Yeah, that's a very weird error, probably having to do with Apache and mod_rewrite -- I use the -f test in the .htaccess to see if a file exists, and if so, halt the rewrite process and just serve it. It seems like the Apache default file for the / path doesn't hit that condition though, so it thinks there's an album there instead. I've added the rule shown in http://www.zenphoto.org/support/topic.php?id=1077&replies=2 for 1.0.8, which should fix the problem. Problem on PHP5 Server - maxjac - 2007-02-28 Thanks for your replies Adding the line: RewriteRule index.php$ index.php [L,QSA] did not solve the problem. Changing mod_rewrite to false works but I do not know how to configure .htaccess for it to point to the right place... Also, I would preffer using the mod_rewrite method. Seems to work for admin, why not for the rest ? My PHP info: http://www.quebecgt.com/index.php Any ideas ? Problem on PHP5 Server - trisweb - 2007-02-28 Definitely looks like you have some paths wrong somewhere.
Something wasn't detected right, seems that mod_rewrite messed with the php_self variable... I'll have to investigate more later. Problem on PHP5 Server - maxjac - 2007-03-01 Thanks for your help Problem on PHP5 Server - trisweb - 2007-03-01 Excellent, that's why those overrides are there :-) Thanks for dealing with that. |