Don't have the permission

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

Comments

  • acrylian Administrator, Developer
    You apparently have a permission problem. Try setting the permission to 777 on the zp-core folder via ftp.
  • meoled Member
    That didn't worked. But thank you for your efforts!

    meoled
  • acrylian Administrator, Developer
    So is the installation in a folder? Then please try setting the permissions of the folder. Otherwise try a clean install.
  • meoled Member
    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!)

    <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?
  • acrylian Administrator, Developer
    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
  • meoled Member
    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?
  • acrylian Administrator, Developer
    Yes, you did understand right. But you have to disable modrewrite in the admin option too.
  • meoled Member
    Ah ok. Thank you very much for the very quick Support!

    Meoled
Sign In or Register to comment.