![]() |
|
How to install to root directory? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: How to install to root directory? (/thread-1628.html) |
How to install to root directory? - Luto - 2007-09-06 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 How to install to root directory? - acrylian - 2007-09-06 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). How to install to root directory? - Luto - 2007-09-06 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: 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] ` How to install to root directory? - acrylian - 2007-09-06 Try turning off mod_rewrite in the zp-config-file and test then. Since you are apparently german is your website hosted by Strato? |