need help upgrading to 1.5.5
fuquam
Joined: 2005-09-13
Posts: 47 |
Posted: Mon, 2006-11-13 01:50 |
The following information is required to get an answer: OK I downloaded the 1.5.5 upgrade and followed the instructions. chmod 0755 on the setup directory but when I try to run the configuration wizard (www.mysite.com/gallery/setup/index.php) I get "Error: Your Userfile is not writeable". When I try chmod 0777 on the setup I get and Internal Server Error so back to 0755. Any reason for the error? htaccess and config.php are at 0777 as well. |
|
Posts: 27300
FAQ: Warning: fopen(".../albums/team/album.dat.lock","a+")
Chmod 777 all files and directories in the albums directory. remember the hidden files as well (.users)
Dave
Posts: 6818
FAQ: Error: Your Userfile is not writeable
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
Thanks Dave. When I try that I get "Error Setting Permissions Failed:
albums: 550 Could not change perms on albums: Bad file descriptor"
Posts: 27300
Ask your host to change the permissions.
Dave
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery
Posts: 47
They have installed PHPSuExec. With PHPSuExec the highest permission you can have on a folder is 755. Maybe this is the root of my problem?
Posts: 6818
Depends on the owner of the files and folder.
If its the apache user 755 is totally fine.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
So I decided to rerun the Configuration Wizard and hopefully set thing straight. Now I get a 500 Internal Server Error. The FAQs suggests alterning the .htaccess file but I beleive the new upgrade with PHPSuExec has done away with the .htaccess files because I no longer see them. I also don't see any httpd.conf files anywhere.
Posts: 6818
Files starting with a . are hidden files.
I am pretty sure the .htaccess file in the setup folder is still there.
I guess you are using FTP to access your web folder.
Make a change in the options of your clients to see the hidden files.
Then delete the .htaccess file in the config folder.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
I have "view hidden files" operational and I see my .htaccess file in my main directory but there isn't one in the /setup directory. Also I don't seem to have a config folder or directory anywhere.
Posts: 6818
Hmmm,
The configuration is inside the 'setup' folder.
This folder is inside the Gallery folder, except if you are using the debian package of Gallery.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
I have config_data.inc inside the setup folder but thats the closest. I better redownload something. I've had Gallery working fine for almost 3 years now and my host upgrades the server and screws everything up.
Posts: 47
http://www.andreaandscott.com/gallery/setup/index.php. So when I get the "Error: Your Usefile is not writeable" what userfile is it refering to?
Posts: 6818
FAQ: Error: Your Userfile is not writeable
The userfiles are saved in a subfolder of the albums folder.
This subfolder is called .users.
(You may not see this folder in your ftp client, as files/folders starting with a . are considered as hidden)
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
No I have "view Hidden Files" on. When I try to set permissions on the .users folder or any files inside I get
Error Setting Permissions Failed:
.users: 550 Could not change perms on .users: Bad file descriptor
These files are set to 644 (and I can't change them due to the error). The owner and group are both at 99.
Thanks for your help by the way.
Posts: 6818
is the album folder itself writeable for the webserver ?
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
Yes. Its set to 777.
Posts: 6818
Well, this is strange.
The errormessage only occurs when the files in the .users folder are not read and writable by the webserver.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
The .users folder is set at 755. The files inside are set to 644 and can't be changed. The /albums folder is set at 777.
Posts: 47
I had the host change all permissions so I have control now. However now when I try to run Configuration Wizard I get this error.
----------------------------------
Upgrading Users
The user database in your gallery was created with an older version of the software and is out of date. This is not a problem! We will upgrade it. This may take some time. Your data will not be harmed in any way by this process. Rest assured, that if this process takes a long time now, it's going to make your gallery run more efficiently in the future.
If you get an error, and only some users are upgraded, try refreshing the page to upgrade remaining users.
Please Wait...
Checking user 1 of 4 . . . . failed
Checking user 2 of 4 . . . . skipped
Checking user 3 of 4 . . . . skipped
Checking user 4 of 4 . . . . skipped
Error: There was a problem upgrading users. Please check messages above, and try again
Posts: 6818
This is still a permission issue.
Gallery tries to save the upgraded user. And that failed.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
OK now I got it to work but when I run through the configuration wizard I end up with this page.
-------------------
Gallery has not been configured!
Gallery must be configured before you can use it.
1. Create an empty file .htaccess and an empty file config.php in your Gallery folder.
2. Create an albums folder for your pictures and movies. This folder can be anywhere in your webspace.
Make sure that both files and the folder are read and writeable for your webserver !
-------------------
Now I already have an .htaccess file and a config.php file in the gallery folder. I also still have my albums folder. All of which are at 755 or 777.
Posts: 6818
I just tried to configure your Gallery.
All went fine.
Except the saving at the end. But i guess its the result of the looooooooooooooooong looaaaaaading time.
It seems a timeout occurs and then some data is lost.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
OK now the configuration wizard is moving past that step but I'm getting the following error
------------
Warning: mkdir() [function.mkdir]: No such file or directory in /home/andrea/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir:
Fatal error: Call to a member function on a non-object in /home/andrea/public_html/gallery/classes/gallery/UserDB.php on line 119
-------------
UserDB.php is set at 755. Not sure if that matters.
Posts: 6818
Yes, that is what i also get.
Does it also do load very long (> 30 seconds) for you ?
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
Yes it does take a really long time to load. I found that odd. Any idea what the Error: Unable tp create dir is all about? Is that due to a timeout error? I probably shouldn't be keeping this in config mode.
Posts: 47
Its not taking that long to load anymore but I'm still getting the following error
-----------------------
Warning: mkdir() [function.mkdir]: No such file or directory in /home/andrea/public_html/gallery/classes/gallery/UserDB.php on line 43
Error: Unable to create dir:
Fatal error: Call to a member function on a non-object in /home/andrea/public_html/gallery/classes/gallery/UserDB.php on line 119
Posts: 47
Here is UserDB.php starting on line 42. Does this mean a directory is chmod wrong?
----------------------
if (!fs_file_exists($userDir)) {
if (!mkdir($userDir, 0777)) {
echo gallery_error(_("Unable to create dir") .": $userDir");
return;
}
Posts: 6818
Gallery tries to create folder where all users are stored.
This folder is inside the albums folder.
The location to the albumsfolder is set by you in step2.
I assume that this info gets lost somehow.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 47
Any idea how to fix that?