Member
Member
meoled   2008-06-06, 10:36
#1

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/zenphoto

I also tried it in the root. Didn't helped

Administrator
Administrator
acrylian   2008-06-06, 10:55
#2

You apparently have a permission problem. Try setting the permission to 777 on the zp-core folder via ftp.

Member
Member
meoled   2008-06-06, 11:34
#3

That didn't worked. But thank you for your efforts!

meoled

Administrator
Administrator
acrylian   2008-06-06, 11:52
#4

So is the installation in a folder? Then please try setting the permissions of the folder. Otherwise try a clean install.

Member
Member
meoled   2008-06-06, 13:48
#5

A clean installation? Do you mean that I have to put all the files in the root? I tried it but it didn't worked.

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!)


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]

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?

Administrator
Administrator
acrylian   2008-06-06, 14:58
#6

Actually setup should run automatically after you installed. With a clean install I meant, delete all files and do it all again.

For info about what htaccess is please see here: http://www.zenphoto.org/2007/12/troubleshooting-zenphoto/#5

Member
Member
meoled   2008-06-06, 15:19
#7

Oh. So I did a clean install 10 times I think =)

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?

Administrator
Administrator
acrylian   2008-06-06, 15:35
#8

Yes, you did understand right. But you have to disable modrewrite in the admin option too.

Member
Member
meoled   2008-06-06, 16:32
#9

Ah ok. Thank you very much for the very quick Support!

Meoled

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.