I’ve a site that needs to edit setting.php, I know what must I do, but I could not save the changes due to permissions.
How Can I modify the settings.php in my website?
Could anyone help me?
Thanks.
I’ve a site that needs to edit setting.php, I know what must I do, but I could not save the changes due to permissions.
How Can I modify the settings.php in my website?
Could anyone help me?
Thanks.
It’s your website. We know nothing about it, so is the settings.php
you are talking. And no, there aren’t permission issues unless you are trying to write that outside of htdocs
.
And if you are using the online file manager, good luck. Use desktop FTP instead.
Hi @Frank419:
Thanks for your quick and kind answer.
I do not mean that there’s is a permission issue. I mean that I could not change the permission of my own files (Drupal installation, via Softacolous).
I’ve a drupal Site, and need to modify the settings.php in /sites/default, it could not be in other place.
I’ve tried with online file manager, and let me change the file, but not save it.
And also I’ve tried to deleted and upload a new file, via FTP (FileZilla), but I could not do anyone of both.
How the rest of the users with drupal manage it?
Thanks for your help and time.
I think I see the issue.
Drupal edits the permissions of the settings.php to make it not writable. This is usually considered to be a good security measure, as it helps to protect your settings.php file against hacks. However, because we run PHP as your own user, it means that if Drupal cannot write the file, then nobody can write the file. Including you. And if you change the permissions of your files so you cannot write them anymore, then you cannot make any changes to it in any way.
For this very reason we removed most CHMOD features, but it appears that it’s still possible to lock yourself out of your own file using PHP code. I’ll submit a request upstream to see if that can be corrected so this won’t happen again on new sites.
But there is nothing that can be done sadly to regain write control over your own file.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.