Author Topic: Problems with config.php, installation & database info  (Read 34385 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Problems with config.php, installation & database info
« on: December 30, 2002, 04:35:26 PM »
After running install.php, you get the following:
Quote
The install script is unable to write the config file "config.php" to the server. Click the button below to download a copy of the configuration file and upload this file via FTP to the 4images directory. Once this is done you should log in using the admin username and password and visit the Control Panel to check the general configuration for any required changes."

Downloaded Configuration File
You find that your config.php contains only this:
Code: [Select]
<?php 
/************************************************************************** 
* * 
* 4images - A Web Based Image Gallery Management System * 
* ---------------------------------------------------------------- * 
* * 
* File: config.php * 
* Copyright: (C) 2002 Jan Sorgalla * 
* Email: jan@4homepages.de * 
* Web: http://www.4homepages.de * 
* Scriptversion: 1.7 * 
* * 
* Never released without support from: Nicky (http://www.nicky.net) * 
* * 
************************************************************************** 
* * 
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- * 
* bedingungen (Lizenz.txt) für weitere Informationen. * 
* --------------------------------------------------------------- * 
* This script is NOT freeware! Please read the Copyright Notice * 
* (Licence.txt) for further information. * 
* * 
*************************************************************************/ 

$db_servertype 
The config.php file was somehow truncated at line 25.

SOLUTION
Copy config.new.php to config.php.  Open config.php in a text editor and enter the right values for the configuration variables.

Assuming you have the following information:

Database Host = "localhost"
Databaes User Name = "myDbUserID"
Database User Password = "myDbPassword"
Database Name = "myDatabaseName"

Your edited config.php should look like this:
Code: [Select]
<?php 
/************************************************************************** 
* * 
* 4images - A Web Based Image Gallery Management System * 
* ---------------------------------------------------------------- * 
* * 
* File: config.php * 
* Copyright: (C) 2002 Jan Sorgalla * 
* Email: jan@4homepages.de * 
* Web: http://www.4homepages.de * 
* Scriptversion: 1.7 * 
* * 
* Never released without support from: Nicky (http://www.nicky.net) * 
* * 
************************************************************************** 
* * 
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- * 
* bedingungen (Lizenz.txt) für weitere Informationen. * 
* --------------------------------------------------------------- * 
* This script is NOT freeware! Please read the Copyright Notice * 
* (Licence.txt) for further information. * 
* * 
*************************************************************************/ 

$db_servertype "mysql"
$db_host "localhost"
$db_name "myDatabaseName"
$db_user "myDbUserID"
$db_password "myDbPassword"

$table_prefix "4images_";

define('4IMAGES_ACTIVE'1); 

?>
Upload your edited config.php to the 4images directory and proceed to http://www.YourDomain.com/4images
« Last Edit: April 15, 2005, 11:12:37 PM by Nicky »

Offline Cu_Bi

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Problems with config.php, installation & database info
« Reply #1 on: May 16, 2007, 05:27:22 AM »
Hi
Came some one help me how to do it.I  install but is keep go back to index.They said An unexpected error occured. Please try again later.
ERROR: Could not load configuration settings!
Came some one tell me how to install it.
Thank You

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Problems with config.php, installation & database info
« Reply #2 on: May 19, 2007, 08:06:58 PM »
Hi,

look to the post from Chris!!!

you must edit your config.php with your database infos/config from your server  :!:
Cant't find a config.php => rename the config_new.php to config.php and edit this.

Thats all  8O


cu
Kurt