"Unable to write to /config.php" - Tried everythin

Arachne

Joined: 2004-01-17
Posts: 10
Posted: Sat, 2004-01-17 04:53

I'm installing Gallery on my space at a friend's webserver. It passes the initial config tests "with flying colors" - everything is a success except the extra languages.

I can get past Step 4 when configuring, with no errors, but then I immediately see a page that says "Unable to write to /config.php. You are missing either config.php or .htaccess."

But - I'm not missing anything! Step 1 confirmed that my .htaccess file was writeable. I have checked and checked and checked config.php and cannot find why this error is occurring. I even chmodded everything to 777 to try and prevent permissions-related errors.

An excerpt of my directory structure is as follows:
public_html/albums (777)
public_html/gallery (777)
public_html/gallery/.htaccess (777, created by touch)
public_html/gallery/config.php (777, same)

I've included the paths and URLs that I'm using in the setup below.

Gallery URL: http://www.whack.org/~kelly/gallery
Setup URL: http://www.whack.org/~kelly/gallery/setup/index.php
Gallery version: 1.4.1
Apache version: 1.3.27 (?)
PHP version: 4.3.1
Graphics Toolkit: NetPBM and ImageMagick both available
Operating system: SunOS apogee 5.9 Generic_112233-06 sun4u
Web browser/version (if applicable): IE 6

Album directory: /home/kelly/public_html/albums
Temp dir: /tmp
Gallery URL as above
Albums URL: http://www.whack.org/~kelly/albums
Thumbnail image: /home/kelly/public_html/img/movie.thumb.jpg

Absolutely EVERYTHING else is left as the default!

HELP! I'm becoming frustrated!

Thank you very much!

 
Arachne

Joined: 2004-01-17
Posts: 10
Posted: Sat, 2004-01-17 08:45

After searching this whole site, I found that at least a couple of other users have had the same problem I've had. Consensus seems to indicate that the gallery root is being set to / instead of to (in my case) /home/kelly/public_html/gallery.

BUT I have made absolutely sure that the settings listed above are the ones entered into the config program! Is there a separate place (perhaps in Step 2) where the gallery root is set?

 
Arachne

Joined: 2004-01-17
Posts: 10
Posted: Sun, 2004-01-18 08:53

Have fixed the problem - apparently this is a bug, and has happened to other users as well (found by searching for the error message on this website). The "solution" is to edit the write.inc file within gallery/setup so that each instance of $GALLERY_DIR is replaced by the correct pathname.

Seems easy enough to fix in a future version of the software - can you please consider doing that?

Thanks for your, well, forum, I guess. Love the software (now) and am glad it's working.