404 Not Found

Sorry if this has been answered in another thread, but I am having trouble with my zenphoto installation. After I finished running the setup.php file, i started getting this error when trying to go to my admin page:

Not Found

The requested URL /zp-core/admin.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

My install is here:

www.drewsheneman.com/gallery

if you notice, when you click on a picture, the link does not go to the picture, I believe that the path configuration is wrong, but i am not sure how to fix this. any help would be greatly appreciated.

Comments

  • There are several strange things about your site.

    First, your .htaccess file seems to be wrong given the folder zenphoto is installed in. But, stranger, setup is not complaining about it.

    Then your pictures all seem to be in a folder named cgi-system where one would expect an album name.

    I was able to load the admin.php login page without the 404 error. If you can get into admin you should try turning off mod_rewrite and delete your .htaccess file.
  • hello :)

    i have the same exact problem, but can you please tell me how you got to enter the admin page without the 404 problem ?

    thank you...

    p.s. http://www.youuussef.com/photos/
  • acrylian Administrator, Developer
    @Youuussef: It looks that you install is not done correctly, there ino index.php that zenphoto needs (at least I don't see it). But there are some folders that apparently belong to Pixelpost. You probably mangeled both installs. Please try a clean install of zenphoto.

    @needhelp:Could you please take a look here: http://www.zenphoto.org/support/topic.php?id=2764&replies=10#post-16542
  • thanks alot! i deleted the .htaccess file that was in my gallery directory, and unchecked the enable mob_rewrite box in the admin toolbox. however, i seem to still be encountering problems. i noticed that when you click a picture, it says "The requested URL /cgi-system/index.php was not found on this server."

    This is why i believe that the path configuration is screwed up, because i have tons of photos in my gallery/albums directory! the links just do not point there for some reason.
  • acrylian Administrator, Developer
    @needhelp: Ok, one thing to try. Please open the zp-config.php file in the zp-core folder and uncomment the lines
    `// define('WEBPATH', '/zenphoto');

    // define('SERVERPATH', '/full/server/path/to/zenphoto');`

    and enter your paths there manually.
  • This is what i entered:

    define('WEBPATH', '/gallery');
    define('SERVERPATH', 'http://www.drewsheneman.com/gallery');

    www.drewsheneman.com/gallery

    now i get

    "Error: The 'albums' directory (http://www.drewsheneman.com/gallery/albums/) cannot be found."

    lol this is very strange. that is the directory and path where my photos are! why isnt it finding it haha
  • acrylian Administrator, Developer
    You did not set the correct server path, take a look here please: http://www.zenphoto.org/support/topic.php?id=586&replies=13
  • that was what i needed, thanks for all your help!

    i set it to

    define('WEBPATH', '/gallery');
    define('SERVERPATH', $_SERVER['DOCUMENT_ROOT'].'/gallery');

    works!
  • acrylian Administrator, Developer
    Great!
Sign In or Register to comment.