Advanced search  

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

Pages: [1]   Go Down

Author Topic: 'Unable to write config.inc.php'  (Read 9427 times)

0 Members and 1 Guest are viewing this topic.

JJUK

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
'Unable to write config.inc.php'
« on: July 07, 2005, 10:16:11 pm »

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
« Last Edit: July 08, 2005, 10:33:04 am by GauGau »
Logged

wizard-dk

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: 'Unable to write config.inc.php'
« Reply #1 on: July 07, 2005, 10:27:22 pm »

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

JJUK

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: 'Unable to write config.inc.php'
« Reply #2 on: July 07, 2005, 10:30:02 pm »

maybe you need to chmod include to 777 ? is standard 755
The folder was already chmodded to 777.
Logged

Nibbler

  • Guest
Re: 'Unable to write config.inc.php'
« Reply #3 on: July 07, 2005, 10:31:49 pm »

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

JJUK

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: 'Unable to write config.inc.php'
« Reply #4 on: July 07, 2005, 10:33:18 pm »

Create your config.inc.php manually using the sample as a guide.
I did, and I still got the error.
Logged

Nibbler

  • Guest
Re: 'Unable to write config.inc.php'
« Reply #5 on: July 07, 2005, 10:35:36 pm »

Comment out this line in the installer:

Code: [Select]
write_config_file();
Logged

JJUK

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: 'Unable to write config.inc.php'
« Reply #6 on: July 07, 2005, 10:59:10 pm »

Comment out this line in the installer:

Code: [Select]
write_config_file();

Just delete that bit of text?
Logged

Nibbler

  • Guest
Re: 'Unable to write config.inc.php'
« Reply #7 on: July 07, 2005, 11:01:55 pm »

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

Code: [Select]
//write_config_file();
Logged

JJUK

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: 'Unable to write config.inc.php'
« Reply #8 on: July 07, 2005, 11:18:35 pm »

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

Code: [Select]
//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
Logged

Nibbler

  • Guest
Re: 'Unable to write config.inc.php'
« Reply #9 on: July 07, 2005, 11:30:33 pm »

Then you did't edit the file correctly.
Logged

JJUK

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: 'Unable to write config.inc.php'
« Reply #10 on: July 07, 2005, 11:36:10 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.

Code: [Select]
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.
Logged

Nibbler

  • Guest
Re: 'Unable to write config.inc.php'
« Reply #11 on: July 07, 2005, 11:43:34 pm »

I meant the line further down, 545

Code: [Select]
        test_sql_connection();
        test_admin_login();
        //write_config_file();
Logged

JJUK

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: 'Unable to write config.inc.php'
« Reply #12 on: July 08, 2005, 09:45:11 am »

Has installed fine. Thank you for your help.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.