I need help on finishing the setup on my gallery......please

MindOfFury

Joined: 2002-09-28
Posts: 3
Posted: Sat, 2002-09-28 23:42

I get the following message at the very end of the setup :

Warning: Unable to create 'init.php/config.php': Not a directory in write.inc on line 10
Unable to write to init.php/config.php

I got through the setup ok and everyhting was going well intil i tried to save the config. Then i got the previous message.

The version of PHP that the server is using sems to be up to date. It is running 4.2.3 on an apache server.

I found one thread with exact same problem but it seems that it was never resolved.

Thanx for any help that you give me.

Any ideas?
:eek:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-30 05:19

What OS are you on? Are you on Solaris by any chance?

This is a bug in PHP that is pretty annoying. In fact, this bug is a showstopper for G2 (but that's a different issue).

The quick fix is to edit setup/init.php and change this line:

$GALLERY_DIR = dirname(dirname(__FILE__));

to

$GALLERY_DIR = "/path/to/gallery";

with the right path, of course.

 
MindOfFury

Joined: 2002-09-28
Posts: 3
Posted: Tue, 2002-10-01 00:27
Quote:
What OS are you on? Are you on Solaris by any chance?

This is a bug in PHP that is pretty annoying. In fact, this bug is a showstopper for G2 (but that's a different issue).

The quick fix is to edit setup/init.php and change this line:

$GALLERY_DIR = dirname(dirname(__FILE__));

to

$GALLERY_DIR = "/path/to/gallery";

with the right path, of course.

Thank you for your response. To answer your questions No, its red Hat server running apache. I tried your suggestion and I got a different error this time.

I got this....

Warning: Unable to create '/my_website/public_html/modules/gallery/config.php': Permission denied in /my_website/public_html/modules/gallery/setup/write.inc on line 10
Unable to write to /my_website/public_html/modules/gallery/config.php

I tried for an hour to try and figure this one out. I am new to this so I htought it could some permissions thing but I can't seem to narrow it down.

it complains about this line in write.inc:
>copy("gpl.txt", $outfile);

Any ideas on this one?

Thanx again for your help!
MindOfFury

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-10-02 17:54

This is a typical problem when you don't put your Gallery in config mode. Read and follow the instructions in the README.

 
MindOfFury

Joined: 2002-09-28
Posts: 3
Posted: Thu, 2002-10-03 00:06

thsnks bharat..this was a case of RTFM.......read the fucking manual!

I thank you for your help... :grin:

 
jpratt

Joined: 2002-10-23
Posts: 1
Posted: Wed, 2002-10-23 19:19

I tried the same code change suggested but ended up with the same error all over again.

Warning: Unable to create 'init.php/config.php': Not a directory in write.inc on line 10
Unable to write to init.php/config.php

It's driving me utterly mad. I'm running FreeBSD 4.1.1 on Apache server. Thanks!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-10-24 00:20

Hmm. If you made the code change correctly, there's literally no way you can get that error. I suggest you double-check to make sure that you did this:

edit setup/init.php and change this line:

$GALLERY_DIR = dirname(dirname(__FILE__));

to

$GALLERY_DIR = "/path/to/gallery";

with the right path, of course.