Hi.
I've got a great problem with zenphoto. I can't install it. When I want to access to the directory of zen photo i get this error: You don't have permission to access /zenphoto/ on this server.
Same thing when I navigate to the setup.php.
Does anybody have an idea?
Thank you ver much!!!!!!!!!!!!!!!!!!!
meoled
Edit: the URL to my Zenphoto Gallery is
http://test.indafettn.com/zenphotoI also tried it in the root. Didn't helped
Comments
meoled
Now I have delated the .htaccess and now I can access the folder and I see the Setup. But whats wrong with the .htaccess?
meoled
Edit:
I didn't change the .htaccess. So it's like I downloaded it.
# htaccess file version 1.1.6.0
# Update the above and the define in setup.php when you make changes to the rewrite rules!
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory. (Or let setup.php do it for you!)
<IfModule mod_rewrite.c>
RewriteEngine On
#### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!
RewriteBase /zenphoto
####
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^albums/?(.+/?)?$ $1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [R,L]
RewriteRule index\.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^(.*)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^(.*)page/([A-Za-z0-9\-_]+)/?$ index.php?album=$1&p=$2 [L,QSA]
#### Rewrite rule addtion for search
RewriteRule ^page/([A-Za-z0-9\-_]+)/fields([0-9]+)/(.*)/([0-9]+)/?$ index.php?p=$1&searchfields=$2&words=$3&page=$4 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/fields([0-9]+)/(.*)/?$ index.php?p=$1&searchfields=$2&words=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/archive/(.*)/([0-9]+)/?$ index.php?p=$1&date=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/archive/(.*)/?$ index.php?p=$1&date=$2 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/tags/(.*)/([0-9]+)/?$ index.php?p=$1&searchfields=4&words=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/tags/(.*)/?$ index.php?p=$1&searchfields=4&words=$2 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/(.*)/([0-9]+)/?$ index.php?p=$1&words=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/(.*)/?$ index.php?p=$1&words=$2 [L,QSA]
RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\\]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA]
####
# Catch-all - everything else gets handled in PHP for compatibility.
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
</IfModule>
And at the installation I get this error:
Edit the .htaccess file in the root zenphoto folder if you have the mod_rewrite module, and want cruft-free URLs.Just change the one line indicated to make it work.
You can ignore this warning if you do not intend to set the option mod_rewrite.
It's because I deleted the .htaccess File. But why do I need it?
For info about what htaccess is please see here: http://www.zenphoto.org/2007/12/troubleshooting-zenphoto/#5
Thank you for the link. I will read through it!
meoled
Edit:
So did I understand it right? I don't need the htaccess if I don't want to use mod_rewrite?
Meoled