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
maybe you need to chmod include to 777 ? is standard 755
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.
Create your config.inc.php manually using the sample as a guide.
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.
Comment out this line in the installer:
write_config_file();
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?
You can if you like, althoug commenting it out would be fine
//write_config_file();
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
Then you did't edit the file correctly.
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.
I meant the line further down, 545
test_sql_connection();
test_admin_login();
//write_config_file();
Has installed fine. Thank you for your help.