I was migrating my site to a new host. I used Backup and Migrate module (which is AWESOME). At the same time I updated to the lastest version (or at least the latest6.x version). So here is the problem....

I was going to replace the the sites directory with the sites directory from the previous site. The problem is that the settings.php file is undeleteable. I tried chmod to 777 and that didn't work. I tried to -f but that didn't help either. WTF!?!?! Any ideas.

Thanks,
Jason

Comments

lotyrin’s picture

Whether a file exists is a property of the directory it's in. If you can't write to the directory, you can't add or remove files.

You can delete a file to which you do not have write permisison, as long as you have write permission on the directory it is in.