'Unable to write config.inc.php' 'Unable to write config.inc.php'
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

'Unable to write config.inc.php'

Started by JJUK, July 07, 2005, 10:16:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JJUK

I have uploaded files and entered all the database information correctly, and upon installation am getting an 'Unable to write config.inc.php' error come up.

If anyone has any ideas as to why this is happening and how it can be overcame, it would be helpful. I have installed coppermine many times before in the same way I did today, and have never had a problem before, so I am completely lost!

Ta.
Loz

wizard-dk

maybe you need to chmod include to 777 ? is standard 755

JJUK

Quote from: wizard-dk on July 07, 2005, 10:27:22 PM
maybe you need to chmod include to 777 ? is standard 755
The folder was already chmodded to 777.

Nibbler

Create your config.inc.php manually using the sample as a guide.

JJUK

Quote from: Nibbler on July 07, 2005, 10:31:49 PM
Create your config.inc.php manually using the sample as a guide.
I did, and I still got the error.

Nibbler

Comment out this line in the installer:

write_config_file();

JJUK

Quote from: Nibbler on July 07, 2005, 10:35:36 PM
Comment out this line in the installer:

write_config_file();

Just delete that bit of text?

Nibbler

You can if you like, althoug commenting it out would be fine

//write_config_file();

JJUK

Quote from: Nibbler on July 07, 2005, 11:01:55 PM
You can if you like, althoug commenting it out would be fine

//write_config_file();

I tried both commenting it out and deleting it, and both times got this error:

Parse error: parse error, expecting `T_STRING' in C:\Inetpub\vhosts\jamesroot.co.uk\httpdocs\gallery\install.php on line 480

Nibbler

Then you did't edit the file correctly.

JJUK

Quote from: Nibbler on July 07, 2005, 11:30:33 PM
Then you did't edit the file correctly.
Ah... I don't understand how, I've been following your instructions to the letter. This is really strange. I will show you what I have done, maybe there is an error, but I can't see it.

function //write_config_file();
{
    global $errors, $DFLT;

    test_im();
    detect_img_package();

    $config = build_cfg_file();
    @unlink($DFLT['cfg_f']);
    if ($fd = @fopen($DFLT['cfg_f'], 'wb')) {
        fwrite($fd, $config);
        fclose($fd);
    } else {
        $errors .= "<hr /><br />Unable to write config file '{$DFLT['cfg_f']}'<br /><br />";
    }
}


Thanks for all your help on this by the way. I don't get why this is going on, lol. But thank you for being patient with me.

Nibbler

I meant the line further down, 545

        test_sql_connection();
        test_admin_login();
        //write_config_file();

JJUK

Has installed fine. Thank you for your help.