Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 07-23-2009 05:50:40

sdonn
Member
Registered: 07-03-2004
Posts: 78

'The writeconfig() function' error message installing v7.0

ok, I have followed the instructions, installed the v7.0 files and changed permissions of the all the files in public and private directories, but after the first page of the installer script, after it asks for my password, it says:

"The writeconfig() function was unable to save data to the configuration file."

The only file that it does not let me change the permissions on is config.php which stays on 755 regardless of if I try to change it. Is it that causing me the problems, or am I missing something?

Offline

 

#2 07-23-2009 05:58:13

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: 'The writeconfig() function' error message installing v7.0

What doesn't let you change the permissions of that file?  The permissions of that file are the reason for the error if your provider has things configured so that the web server process can not write to files with permissions set to 755.

Also be aware that some providers have implemented scanners that will periodically go through directories and change the permissions of files without warning.  I've had that process change things on me during an installation.

Offline

 

#3 07-23-2009 07:10:54

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: 'The writeconfig() function' error message installing v7.0

Remove the config.php files from the server (from both the public and private directories) then change the installer.php, index.php and admin.php scripts as follows:

At the top of each, you will see:

Code:

$perms_level_files  = '755';
$perms_level_dirs   = '755';
$perms_level_config = '755';

Change to:

Code:

$perms_level_files  = '777';
$perms_level_dirs   = '777';
$perms_level_config = '777';

And then run the installer again.  Make sure your public and private directories are chmod 777 as well.  This will correct your permissions issue.


Nick Hendler

Offline

 

#4 11-06-2009 13:55:22

forefront
Member
Registered: 03-29-2004
Posts: 190

Re: 'The writeconfig() function' error message installing v7.0

I have the same problem for an UPGRADE from 6.x, not a new install.

Naturally I wish to retain the data from the original install. If I delete the config.php files, will the 6.x data be retained during the install?

Thanks!

Offline

 

#5 11-06-2009 14:08:28

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: 'The writeconfig() function' error message installing v7.0

You're installing V7 in a completely different location than V6 so deleting config.php should not impact V6 at all (just make sure you're deleting the V7 ones).

Offline

 

#6 09-10-2012 12:14:11

mdowning
Member
From: California
Registered: 11-05-2010
Posts: 725
Website

Re: 'The writeconfig() function' error message installing v7.0

webmaster wrote:

Remove the config.php files from the server (from both the public and private directories) then change the installer.php, index.php and admin.php scripts as follows:

At the top of each, you will see:

Code:

$perms_level_files  = '755';
$perms_level_dirs   = '755';
$perms_level_config = '755';

Change to:

Code:

$perms_level_files  = '777';
$perms_level_dirs   = '777';
$perms_level_config = '777';

And then run the installer again.  Make sure your public and private directories are chmod 777 as well.  This will correct your permissions issue.

Nick,

I have tried both ways, by default the folders were set to 777.
Even after setting them to 755, still no go, same error as above
I even set the 3 lines of the files you mentioned to 755 from 777

step 10 of 13: Database Selection
The writeconfig() function was unable to save data to the configuration file.

Last edited by mdowning (09-10-2012 12:30:31)


http://tuxedothemes.org/
Wordpress Themes for business, blogs and personal use.

Offline

 

Board footer