.htaccess trouble

wraithd1

Joined: 2003-09-28
Posts: 5
Posted: Sun, 2003-09-28 02:19

Hey, I'm trying to setup gallery on my site (http://www.ic.sunysb.edu/Stu/dlynas/gallery) and at first, got the 500 error message. i was unable to edit the /setup/.htaccess file so that the error went away, so i deleted the file. this worked fine until i got to the last step, where i was going to save the configuration. when i click the "save config" button, i get this message:

" Unable to write to /config.php.
You are missing either config.php or .htaccess. "

please help, i've been up for hours, my brain hurts. thank you SOOO Much

-daniel
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.ic.sunysb.edu/Stu/dlynas/gallery
Gallery version: 1.4-pl1
Apache version: SunOS moya 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-250
PHP version (don't just say PHP 4, please): 4.2.2
Graphics Toolkit: Netpbm
Operating system: Unix/Linux
Web browser/version (if applicable):

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2003-09-28 13:28

Have you created those two files and chmodded them appropriately ?

Read http://gallery.sf.net/docs.php

 
wraithd1

Joined: 2003-09-28
Posts: 5
Posted: Sun, 2003-09-28 20:34

Yes I did...any ideas? When I have the .htaccess file in my setup directory, I get the 500 internal error, not matter what the chmod is. (Unless I'm mistaken about the chmod). When I don't have the file, I can go throught the whole setup process until I get to the end, when I get the "you are missing config.php or .htaccess" error.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2003-09-29 00:36

Nope, you can safely delete the .htaccess file in the setup/ directory (you must still create one in the main Gallery directory)..

See FAQ c.1 for more details..

 
wraithd1

Joined: 2003-09-28
Posts: 5
Posted: Mon, 2003-09-29 01:19

all the permissions are right, i've read every word of the faq and i know that the files are (and aren't) where they should (and shouldn't) be...i'm just stumped.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-09-29 06:06

I'd like to reproduce the error. Can you give me the path to netpbm or imagemagick, so I can get to the save settings page?

 
wraithd1

Joined: 2003-09-28
Posts: 5
Posted: Mon, 2003-09-29 06:37

path to netpbm:
/usr/www/Stu/dlynas/gallery/netpbm
path to albums:
/usr/www/Stu/dlynas/gallery/albums
path to temp:
/usr/www/Stu/dlynas/gallery/temp
gallery url:
http://www.ic.sunysb.edu/Stu/dlynas/gallery
albums url:
http://www.ic.sunysb.edu/gallery/albums

that should be about it...thanks for your help

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-09-29 11:45

Try this.

Edit setup/index.php and replace

if (!isset($GALLERY_BASEDIR)) {
        $GALLERY_BASEDIR = '../';
}

with $GALLERY_BASEDIR = '../';

 
wraithd1

Joined: 2003-09-28
Posts: 5
Posted: Tue, 2003-09-30 22:30

Tried it, still no luck. My webmaster suggested that I make *.sh files chmod 711. I also did this, still with the same results. ARG!!! Is anyone out there magical?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-10-23 10:00

wraithd1, I went searching for this bug, and found you were still stuck. I missed your last message.

Did you solve this, have you given up, or do you still need a hand?