Gallery Update g2data directory are not writeable one solution

k9carer

Joined: 2009-08-16
Posts: 7
Posted: Tue, 2009-11-17 10:14

When gallery2 forced an update on me, I spent hours trying to get past the "directory are not writeable" problem. I've solved it now, so I thought others might like to know how I did it. I was checking the config.php file to make sure I set an absolute path and not a relative one to the storage directory eg. g2data. It should be something like this: /directoryname/public_html/gallery2/g2data/ I had set an absolute path, but had gallery, not gallery2. I changed it to gallery2 and was able to successfully finish the update.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-11-17 18:49
Quote:
When gallery2 forced an update on me

Not possible. No version of Gallery updates itself.

Quote:
I spent hours trying to get past the "directory are not writeable" problem

If you had a working install, your host changed something on you.

Quote:
I was checking the config.php file to make sure I set an absolute path and not a relative one to the storage directory eg. g2data.

Gallery would've never worked using a relative path

Quote:
this: /directoryname/public_html/gallery2/g2data/ I had set an absolute path, but had gallery, not gallery2.

That means the 'gallery' directory on your system didn't exist and you wouldn't have been able to install Gallery. So it looks like either you or your host changed something.

BTW, we strongly suggest not putting g2data in a web accessible directory. The installer stats it, our docs state it:
http://codex.gallery2.org/Gallery2:Security

To me it sounds like you renamed directories and didn't change paths in config.php. This will cause problems.

We have FAQ on this:
FAQ: How can I move my storage folder to another path?
FAQ: How can I move my gallery installation from one folder to another?
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here