Upgrade fails due to permissions? False Positive?

Aristotle

Joined: 2002-12-23
Posts: 17
Posted: Thu, 2008-10-16 18:17

It has been sometime since I tried to return to upgrading gallery to the 2.x line so I am afraid I am not sure which is my current version as the 2.2 upgrade files have been copied over. I am running on centos 5x, php 5.2.3 and mysql 5.0.51 (bugs patched).

In my configuration.php I clearly have the data directory pointing to

$gallery->setConfig('data.gallery.base', '/home/dreamsca/public_html/Portfolio/g2data/');

and the location has been "chmod -R 777"

root@serendipity:/home/dreamsca# ls -la g2data/
total 8388
drwxrwxrwx 8 dreamsca nobody 1024 Mar 22 2007 ./
drwx--x--x 17 dreamsca dreamsca 1024 Jul 25 00:54 ../
-rwxrwxrwx 1 dreamsca nobody 202 Mar 10 2007 .htaccess*
drwxrwxrwx 14 dreamsca nobody 1024 Mar 27 2007 albums/
drwxrwxrwx 6 dreamsca nobody 1024 Mar 22 2007 cache/
drwxrwxrwx 2 dreamsca nobody 1024 Apr 1 2007 locks/
drwxrwxrwx 4 dreamsca nobody 1024 Mar 10 2007 plugins_data/
drwxrwxrwx 3 dreamsca nobody 1024 Apr 2 2007 smarty/
drwxrwxrwx 2 dreamsca nobody 1024 Apr 1 2007 tmp/
-rwxrwxrwx 1 dreamsca nobody 6375576 Mar 22 2007 upgrade_087a51ab16.log*
-rwxrwxrwx 1 dreamsca nobody 2165605 Mar 10 2007 upgrade_26078f1f7a.log*
-rwxrwxrwx 1 dreamsca nobody 9 Mar 22 2007 versions.dat*

yet when I get to the installer "syatem checks" it fails with a permission error:

Error: Some files and or directories in your storage directory are not writeable by the webserver user. Run chown -R webserverUser /home/dreamsca/public_html/Portfolio/g2data/ OR run chmod -R 777 /home/dreamsca/public_html/Portfolio/g2data/.

Any suggestions?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Thu, 2008-10-16 18:24

Even though you did a chmod -R, I'd still dig through those directories and double check. Someone else was having a similar problem and it came back to one directory or file wasn't getting changed.

Oh wait, I take that back, their problem was that versions.dat didn't exist. But I'd still dig down to double check.

Why is there a * at the end of the file name for those a few files when you do a list there? Do they have some other attribute attached to them?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments