|
|

07-29-2007, 04:50 PM
|
|
Senior Member
|
|
Join Date: Jun 2007
Posts: 249
|
|
zen photo problem
I just had a customer who couldnt see his site in public_html
when you visited it, said moved 302
and said moved to domain.com/% or something to that effect.
I ended up moving htaccess to old.htaccess so he could run the install but he says he needs the rewrite rules for teh siet to function properly.
Htaccess is as follows
Code:
# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
<IfModule mod_rewrite.c>
RewriteEngine On
#### !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
RewriteBase /zenphoto
####
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]
</IfModule>
|

07-29-2007, 05:39 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,585
|
|
|
Please let me know which URL does not work, I will setup a test environment and make sure the rewrite rules work properly. you can PM me if you want.
|

07-29-2007, 09:55 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,585
|
|
|
Please try our 3.2.1 build, just replace the release number of the download link.
|

07-30-2007, 08:26 AM
|
|
Senior Member
|
|
Join Date: Jun 2007
Posts: 249
|
|
|
works! thanks a lot mistwang
|

07-12-2010, 07:45 PM
|
|
Member
|
|
Join Date: Jun 2008
Posts: 32
|
|
[resolved] zen photo
Having a problem with this same application zenphoto. We're using LSWS 4.0.15
Following is the .htaccess & all is working well with Apache.
However when we switch to LSWS, the images have a problem displaying & keeps on trying to load contnuosly.
Please advise?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wenphoto
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]
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]
</IfModule>
Last edited by NiteWave; 07-15-2010 at 07:02 PM..
|

07-12-2010, 09:47 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,218
|
|
Quote:
|
the images have a problem displaying & keeps on trying to load contnuosly.
|
can you post a problem URL here(can remove host part).
|

07-13-2010, 11:15 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,218
|
|
|
please try: in php.ini, set
safe_mode = on
see if can resolve the issue
|

07-15-2010, 10:06 AM
|
|
Member
|
|
Join Date: Jun 2008
Posts: 32
|
|
When I switch or set safe_mode = on
The images load ok, but the thumbnails do not work. Although from zenphoto quick install steps at;
http://www.zenphoto.org/2008/08/inst...and-upgrading/
they recommend this flag switched or to stay off;
Quite strange, why it works with Apache perfectly, but not with LSWS, I must be missing something somewhere.
Please advise?
Last edited by muiruri; 07-15-2010 at 10:08 AM..
|

07-15-2010, 10:32 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,218
|
|
|
the issue is permission of /wenphoto/cache.
lsphp5 need write thumbnails etc to this folder. at present apache can write to this folder but lsphp5 can't. this explains the issue.
set its permission and all sub folders' to 777, may resolve the issue.
so the suggestion:
1.turn safe mode off
2.chmod -R 777 wenphoto/cache
the rewrite rule should be ok, no need change.
|

07-15-2010, 12:54 PM
|
|
Member
|
|
Join Date: Jun 2008
Posts: 32
|
|
|
Thanks, that worked, earlier was doing it without the -R flag, therefore sub-folders were not getting changed to 777 as well. Also did the same 777 permissions to /albums/ folder with -R flag to include sub-folders as well.
It's good now we've restored safe mode to off & no need for any other change.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:07 AM.
|
|