How to install to root directory?

Hi there,

I just started using Zenphoto and tried to install it to the root of my website. Unfortunately when I call http://www.lamour-toujours.de/ it results in an error:

"Zenphoto Error: the requested object was not found. Please go back and try again."

Using http://www.lamour-toujours.de/zen/ works and I have no idea how to enable root access. Thanks for your help

Comments

  • acrylian Administrator, Developer
    Generally it is no problem to install zenphoto in the root. Just copy the content of the zenphoto folder (not the folder itself what you apparently did!) to the root. This should work right out of the box (We can talk in german if you wish).
  • Mmh, I did exactly what you suggest. After untaring zenphoto-1.8.0.2.tar.gz I copied the contents of the "zenphoto" folder to my web root. A "ls" results in this:
    `admin cache index.php LICENSE themes TODO zen`
    `albums index.html INSTALL session tmp webalizer`
    Seems OK to me. All files are readable by www-data and albums and cache are world read-/writeable. I changed the DocumentRoot in .htaccess to /:
    `# 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 /

    ####

    RewriteRule ^admin/?$ zen/admin.php [R,L]

    RewriteCond %{REQUEST_FILENAME} -f [NC,OR]

    RewriteCond %{REQUEST_FILENAME} -d [NC]

    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 ^(.*)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]

    RewriteRule ^(.*)/image/([^/\]+)$ zen/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]

    `
    Maybe there is something wrong?
  • acrylian Administrator, Developer
    Try turning off mod_rewrite in the zp-config-file and test then. Since you are apparently german is your website hosted by Strato?
Sign In or Register to comment.