MyBB Codes
Problems with settings.php file. - Printable Version

+- MyBB Codes (http://www.mybbcodes.com)
+-- Forum: Babjusi's Previous Forum General Stuff (/forumdisplay.php?fid=42)
+--- Forum: General Support (/forumdisplay.php?fid=46)
+--- Thread: Problems with settings.php file. (/showthread.php?tid=1141)


Problems with settings.php file. - roger - 12-08-2009 08:38 PM

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?


RE: Problems with settings.php file. - skiilz - 12-08-2009 09:18 PM

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*


RE: Problems with settings.php file. - babjusi - 12-09-2009 06:08 AM

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.


RE: Problems with settings.php file. - roger - 12-09-2009 05:36 PM

Thanx man Smile


RE: Problems with settings.php file. - babjusi - 12-10-2009 09:43 AM

No problem, glad to have been of help.


RE: Problems with settings.php file. - skiilz - 12-10-2009 11:36 AM

No problem mate.
We are here to help you.