#1  
Old 6th December 2011, 18:13
binover binover is offline
Member
 
Join Date: Mar 2008
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to binover
Default Error after update attempt

Hi all, I inherited an ISPConfig 3 server with after testing I guess it crushed after an update attempt.

Here is the error when I try to run the udate.php script

PHP Notice: Undefined variable: conf in root/ispconfig3_install/install/update.php on line 76

When I search the variable the result is:

$conf_old = $conf;

is any way to save this instalation? and if is not, which be the steps to a backup and reinstall?.

All the sistem is running ok but I dont have the panel to administrate it.

Thanks!!
Reply With Quote
Sponsored Links
  #2  
Old 7th December 2011, 12:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,670
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

Check if the mysql login details in the files /usr/local/ispconfig/server/lib/config.inc.php and /usr/local/ispconfig/server/lib/mysql_clientdb.conf are correct.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th December 2011, 13:10
binover binover is offline
Member
 
Join Date: Mar 2008
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to binover
Default

Thanks for the replay till!!

I have no data in either of that files :S


rw------- 1 root root 0 nov 3 17:00 config.inc.php
-rw------- 1 root root 0 nov 3 17:00 mysql_clientdb.conf

can I restored it?

Thanks again!
Reply With Quote
  #4  
Old 7th December 2011, 13:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,670
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

Do you have a backup of them?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 7th December 2011, 13:54
binover binover is offline
Member
 
Join Date: Mar 2008
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to binover
Default

sadly I do not think so, the previous administrators are not know for the 'great work' if you know what I mean...
Reply With Quote
  #6  
Old 8th December 2011, 08:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,670
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

Ok, its possible to rebuild them. A backup would just be easier

1) The file /usr/local/ispconfig/server/lib/mysql_clientdb.conf

Code:
<?php

$clientdb_host                  = 'localhost';
$clientdb_user                  = 'root';
$clientdb_password              = 'InsertYourRootPasswordHere';

?>
Replace 'InsertYourRootPasswordHere' with your mysql root password.

Next the files /usr/local/ispconfig/server/lib/config.inc.php and /usr/local/ispconfig/interface/lib/config.inc.php

Code:
<?php

//** Web-only
if( !empty($_SERVER['DOCUMENT_ROOT']) ) {

	Header("Pragma: no-cache");
	Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
	Header("Content-Type: text/html; charset=utf-8");

	ini_set('register_globals',0);
}

//** SVN Revision
$svn_revision = '$Revision: 1525 $';
$revision = str_replace(array('Revision:','$',' '), '', $svn_revision);

//** Application
define('ISPC_APP_TITLE', 'ISPConfig');
define('ISPC_APP_VERSION', '3.0.3');


//** Database
$conf['db_type'] = 'mysql';
$conf['db_host'] = 'localhost';
$conf['db_database'] = 'dbispconfig';
$conf['db_user'] = 'ispconfig';
$conf['db_password'] = 'InsertYourISPConfigPasswordHere';
$conf['db_charset'] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1")
$conf['db_new_link'] = false;
$conf['db_client_flags'] = 0;

define('DB_TYPE',$conf['db_type']);
define('DB_HOST',$conf['db_host']);
define('DB_DATABASE',$conf['db_database']);
define('DB_USER',$conf['db_user']);
define('DB_PASSWORD',$conf['db_password']);
define('DB_CHARSET',$conf['db_charset']);


//** Database settings for the master DB. This setting is only used in multiserver setups
$conf['dbmaster_type']			= 'mysql';
$conf['dbmaster_host']			= '';
$conf['dbmaster_database']		= '';
$conf['dbmaster_user']			= '';
$conf['dbmaster_password']		= '';
$conf['dbmaster_new_link'] 		= false;
$conf['dbmaster_client_flags']  = 0;


//** Paths
$conf['ispconfig_log_dir'] = '/var/log/ispconfig';
define('ISPC_ROOT_PATH', realpath(dirname(__FILE__).'/../')); // The main ROOT is the parent directory to this file, ie Interface/. NO trailing slashes.
define('ISPC_LIB_PATH', ISPC_ROOT_PATH.'/lib');
define('ISPC_CLASS_PATH', ISPC_ROOT_PATH.'/lib/classes');
define('ISPC_WEB_PATH', ISPC_ROOT_PATH.'/web');
define('ISPC_THEMES_PATH', ISPC_ROOT_PATH.'/web/themes');
define('ISPC_WEB_TEMP_PATH', ISPC_WEB_PATH.'/temp'); // Path for downloads, accessible via browser
define('ISPC_CACHE_PATH', ISPC_ROOT_PATH.'/cache');

//** Paths (Do not change!)
$conf['rootpath'] = substr(dirname(__FILE__),0,-4);
$conf['fs_div'] = '/'; // File system separator (divider), "\\" on Windows and "/" on Linux and UNIX
$conf['classpath'] = $conf['rootpath'].$conf['fs_div'].'lib'.$conf['fs_div'].'classes';
$conf['temppath'] = $conf['rootpath'].$conf['fs_div'].'temp';

define('FS_DIV',$conf['fs_div']);
define('SERVER_ROOT',$conf['rootpath']);
define('INCLUDE_ROOT',SERVER_ROOT.FS_DIV.'lib');
define('CLASSES_ROOT',INCLUDE_ROOT.FS_DIV.'classes');


//** Server
$conf['app_title'] = ISPC_APP_TITLE;
$conf['app_version'] = ISPC_APP_VERSION;
$conf['app_link'] = 'http://www.howtoforge.com/forums/showthread.php?t=26988';
$conf['modules_available'] = 'admin,mail,sites,monitor,client,dns,help';
$conf['server_id'] = '1';


//** Interface
$conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools';

//** Demo mode
/* The demo mode is an option to restrict certain actions in the interface like 
*  changing the password of users with sys_userid < 3 etc. to be 
*  able to run the ISPConfig interface as online demo. It does not
*  affect the server part. The demo mode should be always set to false
*  on every normal installation
*/
$conf['demo_mode'] = false;


//** Logging
$conf['log_file'] = $conf['ispconfig_log_dir'].'/ispconfig.log';
$conf['log_priority'] = 2; // 0 = Debug, 1 = Warning, 2 = Error


//** Allow software package installations
$conf['software_updates_enabled'] = false;


//** Themes
$conf['theme'] = 'default';
$conf['html_content_encoding'] = 'utf-8'; // example: utf-8, iso-8859-1, ...
$conf['logo'] = 'themes/default/images/ispc_logo.png';

//** Templates
$conf['templates'] = '/usr/local/ispconfig/server/conf';

//** Default Language
$conf['language'] = 'en';
$conf['debug_language'] = false;

//** Default Country
$conf['country'] = 'DE';


//** Misc.
$conf['interface_logout_url'] = ''; // example: http://www.domain.tld/


//** Auto Load Modules
$conf['start_db'] = true;
$conf['start_session'] = true;


//** Constants
define('LOGLEVEL_DEBUG',0);
define('LOGLEVEL_WARN',1);
define('LOGLEVEL_ERROR',2);

?>
and replace 'InsertYourISPConfigPasswordHere' with the password of the ispconfig mysql user. You can find the password of the ispconfig use in one of the following files: Take a look in the /etc/postfix/ folder, there you find several config file names that start ith mysql... and end with ~. These files contain the login details for the ispconfog user before the failed update was run, copy the password from one of these files and insert it in the config.inc.php files in the place where you find 'InsertYourISPConfigPasswordHere'.

Then rerun the ispconfig update by running the command ispconfig_update.sh on the shell and choose to reconfigure services when the updater asks you.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
binover (12th December 2011)
  #7  
Old 12th December 2011, 15:00
binover binover is offline
Member
 
Join Date: Mar 2008
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to binover
 
Default

TILL THAK YOU VERY MUCH, I'm testing it but it seems everything is working fine after I follow your steps.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Centos is terribly slow Galled Server Operation 9 7th December 2010 15:31
Vhosts...conf not synced to changes crypted General 50 24th April 2010 00:54
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19


All times are GMT +2. The time now is 14:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.