I am trying to change my base url in settings.php but cannot overwrite the existing file. I get the following permission message.

"553 Can't open that file: Permission denied : /drupal/sites/default/settings.php"

I tried changing the permissions of the folder from 755 to 777 but did not help.
Any idea how to resolve this ?

Comments

clivesj’s picture

I even have full server permission, but i'm still not able te edit settings.php. Is it possible that the drupal installations is overriding other autorizations?
regards,

manojpavitran’s picture

It seems update.php is causing the problem.

// Enforce access checking?
$access_check = TRUE;

I have set it to FALSE and then updated settings.php - worked.

After updating the settings.php I have changed update.php back to TRUE

It works fine now.

kilrizzy’s picture

Having this problem with version 6 and dont have that line in the update file. Anyone have a fix for 6.x?

dng2000’s picture

Ladies and Gentlemen,

I got my problem fixed. I'm using Drupal 6. Just enable read/write permission from the sites folder and everything underneath it, especially the default folder. This credit goes to my hosting provider for catching this sneaky problem. Please share if it did work for you as well.

Dandabass’s picture

Yep, that did it.

Warren-M’s picture

Thanks dng2000.

Ditto in Drupal 6.9

With 150 folders and 1000 files both WS-FTP Pro and the host's control panel balked at global permission changes but the sites folder and then the default folder read/write permission solved a three day problem.

Progression’s picture

Yes. The key was also doing the default folder and the sites folder in addition to setting.php

brooksie’s picture

Thanks guys this was a great help. I was having the same problem and couldn't overwrite the settings.php file in Drupal 6.3.

I just changed the permissions using FileZilla - simple in the end!

uua’s picture

Same problem in 6.3 --
Solved it by using permissions 644 for settings.php file.
Wouldn't change back to original 444 after modification -- hope that's ok.