Junior Member
Junior Member
zoidbrg   2012-01-03, 16:20
#1

Hello,

Well, I have a problem with my Zenphoto installation.

When I go to http://www.nikoview.com, everything is ok. But if I write http://nikoview.com, the message "setup scripts missing" appears. I have reinstalled everything several times, with setup.php and regenerated htaccess file whithout succes.

My .htaccess is like this :

htaccess file version 1.4.1;


When Zenphoto requires changes to the rewrite rules:


First make a copy of this file as 'oldhtaccess' in the zp-core folder so setup can test for unmodified files


Update the above and the define in setup.php


RewriteEngine On

RewriteBase /

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 ^.*$ - [L]

put no rules before this line

SetEnv REGISTER_GLOBALS 0
SetEnv MAGIC_QUOTES 0
SetEnv PHP_VER 5_3

#######################

Rewrite rules for removed sitemap.php


RewriteRule ^sitemap.php index.php?sitemap [L,R=301]

Rewrite rules for removed RSS files


RewriteCond %{QUERY_STRING} albumtitle=(.*)&albumname=(.*)&lang=".$lang
RewriteRule ^rss\.php/?$                    index.php?rss&albumtitle=%1&albumname=%2&lang=%3 [L,R=301]

RewriteCond %{QUERY_STRING} albumtitle=(.*)&folder=(.*)&lang=(.*)
RewriteRule ^rss\.php/?$                    index.php?rss&albumtitle=%1&folder=%2&lang=%3 [L,R=301]

RewriteCond %{QUERY_STRING} albumtitle=(.*)&albumname=(.*)&lang=(.*)
RewriteRule ^rss\.php/?$                    index.php?rss&albumtitle=%1&albumname=%2&lang=%3 [L,R=301]

RewriteCond %{QUERY_STRING} folder=(.*)&lang=(.*)&albumsmode
RewriteRule ^rss\.php/?$                    index.php?rss&folder%1&lang=%2&albumsmode [L,R=301]

RewriteCond %{QUERY_STRING} withimages&lang=(.*)
RewriteRule ^rss-news.php/?$ index.php?rss-news&withimages&lang=%1 [L,R=301]

RewriteCond %{QUERY_STRING} id=(.*)&title=(.*)&type=(.*)&lang=(.*)
RewriteRule ^rss-comments\.php/?$                   index.php?rss-comments&id=%1&title=%2&type=%3&lang=%4 [L,R=301]

RewriteCond %{QUERY_STRING} type=(.)&lang=(.)
RewriteRule ^rss-comments.php/?$ index.php?rss-comments&type=%1&lang=%2 [L,R=301]

RewriteCond %{QUERY_STRING} lang=(.*)&albumsmode
RewriteRule ^rss.php/?$ index.php?rss&lang=%1&albumsmode [L,R=301]

RewriteCond %{QUERY_STRING} lang=(.)&category=(.)
RewriteRule ^rss-news.php/?$ index.php?rss-news&lang=%1&category=%2 [L,R=301]

RewriteCond %{QUERY_STRING} lang=(.*)
RewriteRule ^rss.php/?$ index.php?rss&lang=%1 [L,R=301]
RewriteRule ^rss-news.php/?$ index.php?rss-news&lang=%1 [L,R=301]
#######################

rewrite rule for tinyURLs


RewriteRule ^tiny/([0-9]+)/?$ index.php?p=$1&t [L,QSA]

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/([A-Za-z0-9
-]+)/([0-9]+)/?$ index.php?p=$1&page=$2 [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 addition for search


RewriteRule ^page/search/fields([0-9]+)/(.)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$3 [L,QSA]
RewriteRule ^page/search/fields([0-9]+)/(.
)/?$ index.php?p=search&searchfields=$1&words=$2 [L,QSA]
RewriteRule ^page/search/archive/(.)/([0-9]+)/?$ index.php?p=search&date=$1&page=$2 [L,QSA]
RewriteRule ^page/search/archive/(.
)/?$ index.php?p=search&date=$1 [L,QSA]
RewriteRule ^page/search/tags/(.)/([0-9]+)/?$ index.php?p=search&searchfields=tags&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/tags/(.
)/?$ index.php?p=search&searchfields=tags&words=$1 [L,QSA]
RewriteRule ^page/search/(.)/([0-9]+)/?$ index.php?p=search&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/(.
)/?$ index.php?p=search&words=$1 [L,QSA]

Rewrite additions for zenpage


RewriteRule ^pages/?$      index.php?p=pages [L,QSA]

RewriteRule ^pages/(.)/?$ index.php?p=pages&title=$1 [L,QSA]
RewriteRule ^news/?$ index.php?p=news [L,QSA]
RewriteRule ^news/([0-9]+)/?$ index.php?p=news&page=$1 [L,QSA]
RewriteRule ^news/category/(.
)/([0-9]+)/?$ index.php?p=news&category=$1&page=$2 [L,QSA]
RewriteRule ^news/category/(.)/?$ index.php?p=news&category=$1 [L,QSA]
RewriteRule ^news/archive/(.
)/([0-9]+)/?$ index.php?p=news&date=$1&page=$2 [L,QSA]
RewriteRule ^news/archive/(.)/?$ index.php?p=news&date=$1 [L,QSA]
RewriteRule ^news/(.
)/?$ index.php?p=news&title=$1 [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]
RewriteRule ^(.*)/album/(thumb|[0-9]{1,4})/([^/\]+)$ zp-core/i.php?a=$1&i=$3&s=$2&album=true [L,QSA]


Catch-all - everything else gets handled in PHP for compatibility.


RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]

Do you have any idea ?

Thanks a lot !

Administrator
Administrator
acrylian   2012-01-03, 16:35
#2

Please read here immediatly (and on our news section): http://www.zenphoto.org/support/topic.php?id=9951
There is also a topic of nearly the same title.

Junior Member
Junior Member
ferran   2012-01-17, 11:27
#3

Hi zoidbrg!

I think I had the same problem with the domain names: after install Zenphoto 1.4.1.6 from www.mydomain.net all access to mydomain.net finished in a "setup scripts missing" error. If I try to install Zenphoto from mydomain.net then the same error appears when accessing to www.mydomain.net.

I am not a web expert but I found a solution or workaround that worked well for me: I think that the problem is related to the fact that mydomain.net and www.mydomain.net are two different domains and Zenphoto thinks that it is only installed in one of them. The easy solution is to use only one of the domains, the same where we have run the Zenphoto setup. So we have to rewrite domain.net to www.domain.net or vice versa.

This is very easy if you have modrewrite enabled. You have to add this lines to your .htaccess file:

Rewritecond %{HTTP_HOST} !^www.mydomain.net
RewriteRule (.*) http://www.mydomain.net/$1 [R=301,L]

Here you have an explanation more complete than the four lines I can write with my poor english:
http://www.moedesigns.com/component/content/article/2-left-content-scroller/7-support

As I said, it worked for me. I hope it works for you too!

Kind regards!!

Ferran

Administrator
Administrator
acrylian   2012-01-17, 11:33
#4

Yes, mysite.com or www.mysite.com are generally complete different web addresses (www is actually a subdomain). Most servers are nowadays configured to support both the same but Ferran's suggestion is the way to do it and recommended practice for SEO ("Duplicate content" phenomenon) anyway. You need to make one domain (www or non www) the "main domain" the url is redirected to to use several domains with one install.

Just to add, this is nothing Zenphoto specific.

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