I just got a VPS account.
I zipped/downloaded my original drupal install from my old server, and uploaded/unpacked it on the new VPS server.
After transferring the DB, it all seemed to work ok.
However, I'm having a hard time with the drupal 'file system' setting.
On going to admin -> site config -> file system, drupal said 'sites/default/files' is unwritable.
It works ok if I chmod the /files directory to 777, but obviously this isn't desirable.
The first thing I tried was to rename /files to /files_bak
Drupal then recreated a new writable /files directory with an htaccess file inside.
But when I tried to move all the files from files_bak into the new directory, I got fileOp permission errors.
Similarly, if I try to edit the new /files or files/.htaccess (including chmodding them), I also get permission errors like this:
FileOp Failure on: /home/USER/public_html/sites/default/files: Operation not permitted
I think it is connected with the apache 'owner' and/or 'group' permissions. Perhaps related the fact that the files were created on another server and then moved. But I have no idea about any of that stuff - the most I've ever had to do before is simple chmod. And it's freaking me out that I can't edit the newly-created /files directory that was made by Drupal; surely I'm the owner of *that*?
According to someone on the drupal forum this shouldn't be happening, and is caused by the VPS set-up.
Any information about what's going on or advice on how to proceed?
Thanks.


Reply With Quote

