Hi

I can not seem to edit or delete my settings.php file. I've tried replacing it too but still not working.
Strange thing is I've edited it many times before but just "locked" one day.
Last thing I remember doing was upgrading a few modules and enabling locale module.

Can anybody help me with this issue as I want to change the memory limit for image api?

Thanks

Comments

bsenftner’s picture

need to know the operating system your settings.php file lives. It's a file permissions issue... you can probably just look up in Google how to restore read+write permissions on a file within your operating system...

Fransua’s picture

I eventually got it right. Could in no way get the permissions thing working, so I took the "sites" folder and copied it to temp folder. Delete the original "sites" folder, and move the "sites" folder that I copied to the temp folder back to where the original "sites" folder was.

Not sure if someone will understand this.....

Take folder "sites" ( /public_html/sites ) and copy "sites" to "new folder" ( /public_html/new_folder/sites )
Now delete original "sites" ( /public_html/sites ) and move backup "sites" in "new folder" ( /public_html/new_folder/sites ) to public html folder ( /public_html/sites )
Remember to delete backup folder ( /public_html/new_folder )

I'm sure there is a better way but this worked for me.

wranvaud’s picture

It's a smart security setting of drupal
You need to add permissions to write not only the settings file but also the folder where it is.
Don't forget to put the permissions back as they were once you finished editing the file.