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:
Posts: 7994
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.
Posts: 3
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
Posts: 7994
This is a typical problem when you don't put your Gallery in config mode. Read and follow the instructions in the README.
Posts: 3
thsnks bharat..this was a case of RTFM.......read the fucking manual!
I thank you for your help... :grin:
Posts: 1
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!
Posts: 7994
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.