ZenphotoCMS Forum
Path setting and "404 Not Found" - 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: Path setting and "404 Not Found" (/thread-3197.html)



Path setting and "404 Not Found" - linuxsurd - 2008-06-29

I just installed ZenPhoto 1.1.6 on a Xubuntu (Linux 2.6.24-19) box and seem to have it installed as expected. The http://localhost/zenphoto/zp-core/setup.php script shows all is fine (green).

I successfully uploaded some pics and created a newalbum. I can view my Gallery with a newalbum populated. When I click on my album I get a 404 Not Found error (The requested URL /zenphoto/newalbum/ was not found on this server.)

I have also tried modifying zp-core/zp-config.php and uncommenting
define('WEBPATH', '/zenphoto');
define('SERVERPATH', '/var/www/zenphoto');
I noticed the hyperlink seems to be missing "albums" in it i.e it appears to point to heep://localhost/zenphoto/mynewalbum and not http://localhost/zenphoto/albums/newalbum

Can someone suggest what to change to get this path fixed ?

Thanks in advance.


Path setting and "404 Not Found" - acrylian - 2008-06-29

`http://localhost/zenphoto/mynewalbum' is actually the correct mod_rewrite url to an album named mynewalbum, there is no "albums" supposed to be there (the none mod_rewrite link would be `http://localhost/zenphoto/index.php?album=mynewalbum`. Sure that your server supports mod_rewrite or that you have the .htaccess file? Try turning modrewrite off in the admin options.


Path setting and "404 Not Found" - linuxsurd - 2008-06-29

Thanks alot! I first updated .htaccess and it didn't behave differently. Then I unchecked mod_rewrite in the admin options and it worked.

Just one more question: I currently have my zenphoto albums on my /var/www/zenphoto/albums directory. I want my albums to reside on another disk partition. Should I set symbolic links or will I upset Zenphoto ? Or is there some configuration file updated I need to make ?


Path setting and "404 Not Found" - linuxsurd - 2008-06-29

I tried symbolic links and it all works fine.

Thanks again.