Current time: 11-25-2024, 12:54 AM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[18.221.12.61], connected from Columbus, Ohio United States
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with settings.php file.
12-08-2009, 08:38 PM
Post: #1
Problems with settings.php file.
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?
Find all posts by this user
Quote this message in a reply
12-08-2009, 09:18 PM (This post was last modified: 12-08-2009 09:18 PM by skiilz.)
Post: #2
RE: Problems with settings.php file.
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*

skiilz's signature
[Image: signature.php]
Find all posts by this user
Quote this message in a reply
12-09-2009, 06:08 AM
Post: #3
RE: Problems with settings.php file.
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.

babjusi's signature
Find all posts by this user
Quote this message in a reply
12-09-2009, 05:36 PM
Post: #4
RE: Problems with settings.php file.
Thanx man Smile
Find all posts by this user
Quote this message in a reply
12-10-2009, 09:43 AM
Post: #5
RE: Problems with settings.php file.
No problem, glad to have been of help.

babjusi's signature
Find all posts by this user
Quote this message in a reply
12-10-2009, 11:36 AM
Post: #6
RE: Problems with settings.php file.
No problem mate.
We are here to help you.

skiilz's signature
[Image: signature.php]
Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Problems with settings.php file. mini 1 1,254 08-20-2010 08:49 AM
Last Post: exdiogene

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com