Zenphoto on Abyss..need help...:(

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
cassady
-


Joined: 22 Apr 2006
Posts: 6

PostPosted: Sat Apr 22, 2006 1:18 pm    Post subject: Zenphoto on Abyss..need help...:( Reply with quote

I would very much like to run zenphoto on my own server. I have been using Abyss for quite some time now and it suits me fine. I just installed PHP, mySQL and PHPadmin (BIG THANKS to http://www.trustabyss.com/). All went well. Then I created a database called zp and ran zenphoto setup. Again all went well. The database was created just fine. I was about to pat myself on the shoulder when things went wrong. The zenphoto webpage (e.g. http://mydomain.com/zp) is accessible and works, but that is about it. From there I cannot go to the admin section and I cannot view galleries. I cannot get beyond that single page. I just get blank or '404 not found' pages.

I thought it might have something to do with the .htaccess file but this is all very new to me.


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 /zp

RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]

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

RewriteRule ^page/([0-9]+)/?$              index.php?page=$1 [L,QSA]
RewriteRule ^([^/\.]+)/?$                  index.php?album=$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/([^/\\]+)$    albums/$1/$2 [L]
RewriteRule ^([^/\.]+)/([^/\\]+)$          index.php?album=$1&image=$2 [L,QSA]

</IfModule>


I I must have overlooked something but it is driving me nuts. Please help
Back to top View user's profile Send private message
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Sat Apr 22, 2006 1:24 pm    Post subject: Reply with quote

For a start, Abyss does not support HTACCESS.
Back to top View user's profile Send private message Visit poster's website MSN Messenger
cassady
-


Joined: 22 Apr 2006
Posts: 6

PostPosted: Sat Apr 22, 2006 1:30 pm    Post subject: Reply with quote

:roll: :)

Well i feel somewhat foolish but hey I am a n00b and I am actually impressed that I got this far.

No way to work around this then?

edit:
I deleted the .htaccess file and changed the config.php:

$conf['mod_rewrite'] = false;

I can actually enter the webgalleries now! However I cannot see anthything but the titles of the images, so something else is not right.
zp/zen/admin.php is still not accessible either :(

As for the images, maybe this will help to locate the problem?

Code:
////////////////////////////////////////////////////////////////////////////////
// Image Processing Configuration
////////////////////////////////////////////////////////////////////////////////

// JPEG Compression quality for all images and thumbnails (respectively):
$conf['image_quality'] = 85;
$conf['thumb_quality'] = 75;

// Default image display width (themes will be able to control this
// to an extent in the future, but for now you may have to adjust it to fit your theme).
$conf['image_size'] = 595;
// If this is set to true, then the longest side of the image will be $image_size.
// Otherwise, the *width* of the image will be $image_size.
$conf['image_use_longest_side'] = true;

// Default thumbnail size and scale:
// If $thumb_crop is set to true, then the thumbnail will be a centered portion of the image
// with the given width and height after being resized to $thumb_size (by shortest side).
// Otherwise, it will be the full image resized to $thumb_size (by shortest side).
// NOTE: thumb_crop_width and height should always be less than or equal to thumb_size
$conf['thumb_crop']        = true;
$conf['thumb_crop_width']  = 85;
$conf['thumb_crop_height'] = 85;
$conf['thumb_size']        = 100;

// Paging options.
// Control of their display is done in the theme, so you might need to change these
// after switching themes to make it look better.
$conf['albums_per_page'] = 5;
$conf['images_per_page'] = 15;



EDIT AGAin: GD wasn't installed.
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Apr 22, 2006 2:11 pm    Post subject: Reply with quote

cassady, do you have GD enabled in your php.ini?
I test installed the photo album and it works perfectly.

EDIT - Nevermind, I just saw your edit. :S
Back to top View user's profile Send private message Visit poster's website
cassady
-


Joined: 22 Apr 2006
Posts: 6

PostPosted: Sat Apr 22, 2006 2:31 pm    Post subject: Reply with quote

Moxxnixx did you switch off mod_rewrite and have problems accessing admin.php as well?
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Apr 22, 2006 2:37 pm    Post subject: Reply with quote

I deleted htaccess and changed mod_rewrite to false and had no problems.
Back to top View user's profile Send private message Visit poster's website
cassady
-


Joined: 22 Apr 2006
Posts: 6

PostPosted: Sat Apr 22, 2006 2:46 pm    Post subject: Reply with quote

thanks for your help!

I simply don't understand I cannot open admin.php :?

after deleting htaccess, did you change:

// define('WEBPATH', '/zenphoto');
// define('SERVERPATH', '/full/server/path/to/zenphoto');

Must be something else wrong then if I did exactly what you did. Could I have overlooked something when installing abyss/php/mysql?
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Apr 22, 2006 5:29 pm    Post subject: Reply with quote

cassady wrote:
after deleting htaccess, did you change:

// define('WEBPATH', '/zenphoto');
// define('SERVERPATH', '/full/server/path/to/zenphoto');
No. The only changes I made were...
1. deleted htaccess
2. changed mod_rewrite to false
3. entered database info

cassady wrote:
Must be something else wrong then if I did exactly what you did. Could I have overlooked something when installing abyss/php/mysql?
Look for the obvious first. (maybe a misspelling somewhere)
Check to make sure you're using the correct url to access the admin section.
It should be http://yourdomain.com/zp/zen/admin.php.
Back to top View user's profile Send private message Visit poster's website
cassady
-


Joined: 22 Apr 2006
Posts: 6

PostPosted: Sat Apr 22, 2006 6:21 pm    Post subject: Reply with quote

Thanks for your patience :)
I checked and double checked and I am pretty sure I didn't misspell anything. There wasn't that much I had to change anyway. The db and the gallery work fine, so what else can go wrong. The url is correct as well http://mydomain.com/zp/zen/admin.php

I am puzzled :roll:
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Apr 22, 2006 6:24 pm    Post subject: Reply with quote

What do you get when you go to the admin url?
A 404? An error? A time out?
Back to top View user's profile Send private message Visit poster's website
cassady
-


Joined: 22 Apr 2006
Posts: 6

PostPosted: Sat Apr 22, 2006 6:39 pm    Post subject: Reply with quote

nope just a blank page.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group