MyBB Codes

Full Version: Problems with settings.php file.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Anytime I wanted to change a setting at the configuration this morning it said that settings.php file is not writtable. It was driving me nuts. After contacting my host they fixed it by chmodding it or something. The tech support told me to check the file if it is writable next time with an if statement. How can I do that?
If you are using FileZilla to upload your files to your host you just need to go to the file you want to CHMOD and right lcick it and select Permissions.

CHMOD FILES:
666: ./inc/config.php
666: ./inc/settings.php
777: ./cache/
777: ./cache/themes/
777: ./uploads/
777: ./uploads/avatars/
777: ./admin/backups/
666: ./inc/languages/english/*all files*
666: ./inc/languages/english/admin/*all files*
Also in addition to check with the if conditional, use this code:

PHP Code:[Highlight]
if(!is_writable("../inc/settings.php"))
{
// The code to let you know that the file needs to be chmoded


You can check for any file. Only thing you gotta do is enter the right path for the file at the if statement.
Thanx man Smile
No problem, glad to have been of help.
No problem mate.
We are here to help you.
Reference URL's