Transferring entire phpalbum directory

I tried to transfer the entire phpalbum directory from one server location to another. I changed the permissions on the cache, data, and photos directories to 777 and changed the server in the config.php. However I keep getting an error that my data directory is not writable, even though I changed it to 777 and confirmed on a terminal. I could delete the lines in the script that tests the writablility (which I did and I could view the albums and photos), but I don't know if that will affect something else down the road (ie. trying to change directory names). Any ideas?

patrik's picture

The problem is that the

The problem is that the files inside the directories are not writable. Normally if they are created by phpAlbum, phpAlbum is owner of the files and they do not have to be chmodded to 777. But if you transfer the whole directory to some other server, either you have to change owner of the files so PHP can write them , or you have to chmod the files to 777.

Photos directory does not have to be chmoded to 777!

And you can delete all files in cache directory. Only data directory is important to transfer and to make it writable for PHP (including the files)

It worked, and such a simple

It worked, and such a simple solution! I also had to refresh my browser after the permissions were changed.

Thanks

I keep seein CHMOD 777. Is

I keep seein CHMOD 777. Is this a non-windows command ??? How about windows equivalent command ??? thx.

patrik's picture

Just make the data and cache

Just make the data and cache directory writable to PHP and everything will be ok. CHMOD 777 is working only under UNIX and is not really secure, but often you have no other chance ...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.