Install seems Ok but nothing after login... suggestions?

Cus
Cus's picture

Joined: 2002-09-03
Posts: 11
Posted: Tue, 2002-09-03 12:53

Install reported everything fine but when I went to log in (using the admin user and passwd) I got the pop-up window then a refresh of the page - no options of any sort for adding users or photos - a quick check of the error.log file for my site reveals the following:

[Wed Aug 28 14:12:48 2002] [error] PHP Warning: stat failed for /var/www/test/h
tdocs/trelissick.in-nz.com/photos//album.dat (errno=2 - No such file or director
y) in /var/www/test/htdocs/gallery/platform/fs_unix.php on line 73

NOTE the double slash between my albums directory and the filename album.dat - can't seem to find where this is set up to check the code and the referenced code referes to a variable - any suggestions as to what might be wrong wit hthe install/setup?

Cus

 
TheWatcher
TheWatcher's picture

Joined: 2002-08-21
Posts: 120
Posted: Tue, 2002-09-03 22:25
Quote:
Install reported everything fine but when I went to log in (using the admin user and passwd) I got the pop-up window then a refresh of the page - no options of any sort for adding users or photos - a quick check of the error.log file for my site reveals the following:

[Wed Aug 28 14:12:48 2002] [error] PHP Warning: stat failed for /var/www/test/h
tdocs/trelissick.in-nz.com/photos//album.dat (errno=2 - No such file or director
y) in /var/www/test/htdocs/gallery/platform/fs_unix.php on line 73

NOTE the double slash between my albums directory and the filename album.dat - can't seem to find where this is set up to check the code and the referenced code referes to a variable - any suggestions as to what might be wrong wit hthe install/setup?

Cus

Use this command to make sure permission is allowed.
chmod -R 744 photos

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-09-04 05:19
Quote:
[Wed Aug 28 14:12:48 2002] [error] PHP Warning: stat failed for /var/www/test/h
tdocs/trelissick.in-nz.com/photos//album.dat (errno=2 - No such file or director
y) in /var/www/test/htdocs/gallery/platform/fs_unix.php on line 73

NOTE the double slash between my albums directory and the filename album.dat - can't seem to find where this is set up to check the code and the referenced code referes to a variable - any suggestions as to what might be wrong wit hthe install/setup?

In between those double slashes is supposed to be an album name. Have you created any albums, yet? cd to your photos directory and do a "find . -ls" and post the results of that here.

 
Cus
Cus's picture

Joined: 2002-09-03
Posts: 11
Posted: Wed, 2002-09-04 09:29

Thanks for your reply... here's some additonal information gleaned while sorting through the Gallery Diagnostics pages.

I'm running Debian
Linux nz2 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686 unknown

1. PHPinfo shows sessions enabled

Session Support enabled

Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 1800 1800
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On

2. Netpbm is a-OK - it resides in /var/www/test/netpbm (so does jhead)

3. Session test shows the sessionID changes each time I refresh the page - pageviews count remains at 1 - this doesn't seem right.

to answer your question:

Quote:
in between those double slashes is supposed to be an album name. Have you created any albums, yet? cd to your photos directory and do a "find . -ls" and post the results of that here.

I have set up a test site as follows:
/var/www/test/htdocs
Netpbm resides in /var/www/test/netpbm (and is found OK)
Gallery resides at /var/www/test/htdocs/gallery
The photos album is supposed to be /var/www/test/htdocs/trelissick.in-nz.com/photos

I have not created any "albums" having assumed I had to log on as "admin" to do so (and any other activity such as creating users and adding photos) - a find . -ls of photos returns:

$ find . -ls
541442 4 drwxr--r-- 3 ian staff 4096 Aug 28 15:04 .
410237 4 drwxr-xr-x 2 www-data www-data 4096 Aug 28 15:13 ./.users
410238 4 -rw-r--r-- 1 www-data www-data 32 Aug 28 15:04 ./.users/.htaccess
410239 0 -rw-r--r-- 1 www-data www-data 0 Aug 28 15:04 ./.users/userdb.dat.lock
410244 4 -rw-r--r-- 1 www-data www-data 819 Aug 28 15:13 ./.users/userdb.dat
410241 0 -rw-r--r-- 1 www-data www-data 0 Aug 28 15:04 ./.users/1030503846:2145466945.lock
410243 4 -rw-r--r-- 1 www-data www-data 819 Aug 28 15:05 ./.users/userdb.dat.bak
410242 4 -rw-r--r-- 1 www-data www-data 226 Aug 28 15:04 ./.users/1030503846:2145466945

I appreciate everyone's taking the time to help me out - I'm trying to help out a preschool that has a need to display photos and they are doing it all "manually" at present....

 
Cus
Cus's picture

Joined: 2002-09-03
Posts: 11
Posted: Wed, 2002-09-04 09:46

Extra info - can't give a URL as its on my home test webserver not accessible from outside.

Set up is:
Gallery 1.3.1

as reported by the Gallery setup script:
PHP 4.1.1
safe mode off
I can read .htaccess
magic quotes off
mod_rewrite enabled
All 12 NetPBM binaries located
jhead binary located

Hope this helps a little more...

Cus

Apache 1.3.19-1 or 1.3.22-5 (both debs in the apt cache - so assume the latter version)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-09-05 03:24
Quote:
3. Session test shows the sessionID changes each time I refresh the page - pageviews count remains at 1 - this doesn't seem right.

It's definitely not right. It explains your login failure. Your cookie configuration looks good -- make sure that you have cookies enabled in your web browser. Verify that your browser is receiving and accepting the cookie, also.

Quote:
$ find . -ls
541442 4 drwxr--r-- 3 ian staff 4096 Aug 28 15:04 .
410237 4 drwxr-xr-x 2 www-data www-data 4096 Aug 28 15:13 ./.users

Your permissions look off here. I think that you won't be able to create any new albums unless you do a "chmod 777 albums", or a "chgrp www-data albums && chmod 775 albums" (either will work just fine, I think).

-Bharat