4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 19, 2018, 06:50:56 AM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  FAQ, Tips
| | |-+  Problems with config.php, installation & database info
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Problems with config.php, installation & database info  (Read 27329 times)
Chris
4images Moderator
4images Guru
*****
Offline Offline

Posts: 4487

Thank You
-Given: 0
-Receive: 31

Did u ever stop to think and then forget to start?


View Profile
« on: December 30, 2002, 04:35:26 PM »

After running install.php, you get the following:
Quote  [Expand]
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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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 » Logged

Cu_Bi
Pre-Newbie

Offline Offline

Posts: 2

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
KurtW
4images Guru
*******
Offline Offline

Posts: 2778

Thank You
-Given: 0
-Receive: 8


View Profile WWW
« 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  Exclamation
Cant't find a config.php => rename the config_new.php to config.php and edit this.

Thats all  Shocked


cu
Kurt
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.035 seconds with 19 queries.
Post your comments here