I have installed zenphoto 1.0.3 and can get into the admin area where I was able to create a new album and upload a few test photos.
When I view the main page I see the album with it's thumbnail but when I click on that album I get a 404 error. I know WHY, I just don't know how to fix it.
http://www.pyrofenix.com/gallery/clicking on the album sends me to "/gallery/albumname" instead of "/gallery/album/albumname". How do I correct zenphoto to include the album folder?
Thanks!
Comments
The good way is :
toto.com/zenphoto/albums/album-1/
and the link is
toto.com/zenphoto/album-1/
How is possible to change this ?
Thank you
Don't put in a trailing slash.
# !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
RewriteBase /gallery
So the line in the file should be:
RewriteBase /gallery
This is for people using a folder named "gallery" if you are using a different folder name, change the rewrite path to reflect that.
So carasmo is exactly right, you just have to be sure your .htaccess is configured correctly.
All is OK,
The problem was this one, with my FTP I could't see .htacces,
I change it and I can edit exactly like you explain Carasmo.
Thank You
Jeff
You can see things with your terminal set up or by the way I did it (there's another way, but I can't remember how to turn on invisibles, I can search for them, but can't make them appear yet. There's too much stuff to learn and not enough time.
An alternative is automatic creation in the install, which I will definitely move toward in the future. Eventually I want to have zp-config.php contain only database info, the rest in a real options interface.
I created this gallery: http://www.lamparasdegres.com/wp-content/zenphoto/
I uploaded the files and they're on the ftp. But when I want to see the pics, I dont even see the thumbnails or the pictures neither.
This error appears: The page cannot be found.
What Am I missing?
Thanks in advance!
Cy
Have you gone through the checklist here to see if you've configured everything okay?
What should I modify exactly and for what?
In your .htaccess file (should be included with the zenphoto distributon you downloaded - although it may be considered a "hidden" file), look for these lines:
`# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
RewriteEngine On
# !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
RewriteBase /zenphoto`
The last two lines in this file is what you are looking for. You need to change this to your root path for zenphoto. Now generally, by default, most people install into /zenphoto from their webserver. This can be anything you want, as long as it's consistent, so other examples could be: /zp, /gallery
I would suggest for starters using the /zenphoto default, and later on you can get fancier if you want after you get the hang of it....
One big note is that if you aren't using mod_rewrite for pretty URLs (see zp_config file for this code:)
`// If you have Apache mod_rewrite, put true here, and you'll get nice cruft-free URLs.
// MAKE SURE TO EDIT THE .htaccess FILE with your path information.
$conf['mod_rewrite'] = false;`
make sure as a good rule of thumb that you configure it anyway and upload it.
Let us know if you have additional questions, and we'll be glad to help.
I changed it to false and now it works
Thanks a lot for your help
My .htaccess file is :
<IfModule mod_rewrite.c>
RewriteEngine On
#### !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
RewriteBase /zenphoto
####
I have mod_rewrite enabled in Apache2.
I have chmod 777 albums and cache:
drwxrwxrwx 2 root root 4096 2007-03-01 21:47 admin
drwxrwxrwx 3 root root 4096 2007-04-01 13:32 albums
drwxrwxrwx 2 root root 4096 2007-04-01 13:25 cache
-rwxrwxrwx 1 root root 1111 2007-04-02 20:34 .htaccess
-rwxrwxrwx 1 root root 617 2006-11-09 04:28 index.php
-rwxrwxrwx 1 root root 964 2006-05-29 21:55 INSTALL
-rwxrwxrwx 1 root root 15127 2006-01-11 02:37 LICENSE
drwxrwxrwx 9 root root 4096 2007-03-01 21:47 themes
-rwxrwxrwx 1 root root 1740 2007-02-06 04:13 TODO
drwxrwxrwx 4 root root 4096 2007-04-01 20:02 zen
I have left owner/group as root/root, is that perhaps causing the issue?
I can create an album, but when I click the link for the album I get a "The requested URL /zenphoto/march2007/ was not found on this server" error.
I know this ground has been covered but I just don't see what I am missing and was hoping for a second set of eyes.
Thanks,
Check to see that you allow .htaccess overrides (AllowOverride directive) in your Apache config. If you don't, it won't pick up the mod_rewrite settings for zenphoto.
Do you have any other apps installed that use mod_rewrite?
That is the good news. The bad news is that I get an error "GD Library is not installed". I have not researched that issue yet, but I am making progress.
Thanks for your help!
Thanks!