database installs, login redirects to 404

I've tried installing Zen Photo from scratch twice and have not been successful. My host is Dreamhost and in searching the forums I see a lot of old problems with them but it sounds like there should be no extra steps aside from substituting "localhost" these days. If I'm wrong please correct me.

Although ZenPhoto is a one step install on Dreamhost it didn't work for me for some reason so I decided to do it by hand.

Here are the steps I've taken:

> Downloaded ZenPhoto & uploaded it to my server (at http://www.me-go.net/gallery/)
> Created a database specifically for ZenPhoto
> Went to www.me-go.net/gallery/zp-core/setup.php
> Three issues showed up:
1. PHP version 4.4.9
2. Consider disabling magic quotes
3. Setting mbstring.internal_encoding to UTF-8 in your php.ini file is recommended.
> I went ahead to see what would happen and put in my details and pressed "go."
> I got all green checkmarks and it said that the folders were installed in the database.
> I created a login and password but when I entered it I was redirected to a page on my website that was showing a 404.
> When I look at my site there's some ZenPhoto stuff there but it obviously hasn't installed properly.

I decided to try it again so I emptied my database and followed the same steps above. I checked out my PHP version and it says I'm on PHP 5 (in my web panel and when I go into PHP My Admin) so I don't understand the warnings. I'm not quite sure where to access the php.ini file and wasn't sure if that was a dealbreaker to work out before installing. I also checked that I was using UTF-8 in my database (which might not be the same thing but I'm not too advanced on this stuff).

This time I tried going to www.me-go.net/gallery/ instead of www.me-go.net/gallery/zp-core/setup.php but had the exact same problem as before.

Do you see what I'm doing wrong?

Comments

  • I would guess that something is wrong with the automatically comupted defines for `WEBPATH` and/or `SERVERPATH` since setup has not correctly set your `RewriteBase`. You can change these manually in the `zp-config.php` file.

    Unfortunately I am not at all familiar with DreamHost, so I guess someone who is will have to step in to suggest what these should be.
  • Thanks, I opened up the file "zp-config.php.source" (should the .source be on there? its how it came) and manually put in my details. Do I need to empty my database again and try reinstalling with that file modified and in place bfore the install?
  • The changes actually need to go in the `zp-config.php` file. That will be in the `zp-data` folder. The source file is just for when setup initially installs so it has a template to cerate `zp-config.php`.
  • I see. I took the `//` out before `define('WEBPATH', '/gallery');` but that resulted in my page showing:

    "Fatal error: main() [function.require]: Failed opening required '' (include_path='.:/usr/local/lib/php') in /me-go.net/gallery/zp-core/functions.php on line 28"
  • I'm just trying everything I can to figure out what's going on here.
  • I think its solved! For future users' reference after looking at this question I changed the `zp-config.php` file to:

    `define('WEBPATH', '/gallery');

    // define('SERVERPATH', '/gallery');`

    Thanks for the help.
  • Seems like every time I upgrade I have to reinvent the wheel so for my reference for next time only uncomment the first line and it's '/rtw/gallery'
Sign In or Register to comment.