NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 10-17-2007 17:39:34

Albel
Member

Script says it can't edit the dbconf.php file, yet it's edited!

I imported the database for Wacintaki, and go to edit the config info, and made sure dbconf.php was CHMOD'ed to 777.

And when I save the info, it gives this error...

Code:

Error 
Could not open config file for writing. Check your server permissions 

Use your browser button to go back.

Yet when I check the actual file, the changes were made. I wonder why that is?

Offline

#2 10-17-2007 23:16:32

Waccoon
Administrator

Re: Script says it can't edit the dbconf.php file, yet it's edited!

The file should be named "dbconn.php".  It's short for "DB Connection", not "DB Configuration".

Some servers don't like it when PHP files are CHMOD to 777, because that's the least restrictive access.  The servers may disable 777 access to force people to use something more appropriate.  This may apply to both files and folders.

I assume you're changing files around, such as a server move, so it would be a good idea to check all the numbers.

These numbers are for uploaded or moved files.  If anyone else is installing a new board, use the CHMOD numbers in the installation instructions.

Base folder:
664:  "config.php", "dbconn.php"

Folders:
775:  "avatars", "resource", "pictures", "templates"

Resouce folder files:
664:  All files except "hacks.php"

Avatars and Pictures folders:
664:  All files in these two folders

Offline

#3 10-18-2007 15:51:02

Albel
Member

Re: Script says it can't edit the dbconf.php file, yet it's edited!

Alright. Maybe this server actually does do 77x permissions right (my old one had it so some folders HAD to be 777'd to work).

I'll check the permissions, just in case. smile

Offline

#4 10-18-2007 19:33:29

Waccoon
Administrator

Re: Script says it can't edit the dbconf.php file, yet it's edited!

Every server is a bit different, unfortunately.  The web server's interpretation of the CHMOD numbers may not match what the system shows.

Try to CHMOD the files until the diagnostics page shows that the files are not locked.  If that doesn't work, in the documentation folder of the Wacintaki distribution, there is a script called "reclaim.php".  Copy that to the server and run it, and it will try to rebuild the working files so they are writable.  If the old files can be renamed, then that should fix the issue.

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB