MyBB Community Forums

Full Version: Config.php and settings.php chmod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have chmod 644 to both inc/config.php and settings.php files on 1.8.24.
Is it necessary to change permission to 666 to both files before start upgrading after overwriting 1.8.29 files?
If it is not necessary then OK.

BUT

If it is necessary than what will happen if chmod does not changed before starting the upgrade/install process?

Thank you.
not necessary
Ok...Thanks.
So, after upgrade, what chmod to be best to kept for config.php and settings.php files?
For an already installed instance, MyBB needs read permission for /inc/config.php and read & write permissions for /inc/settings.php.
settings.php should always be 666 (or 664 if it works on your server), 644 is unlikely to work and means settings won't be written to it, so surprised you've not had problems if that's always been set to 644.
Yes, I have not any problem. That's surprising.
Thanks Mostafa, Noyle and Matt.
I will change settings to 666 and config to 444 for forever. I will just change config to 666 before upgrade.
Thanks a lot.