ispCP - Board - Support
[SOLVED] Finally Installed but problems connecting: - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: [SOLVED] Finally Installed but problems connecting: (/thread-7347.html)



[SOLVED] Finally Installed but problems connecting: - jim.thornton - 08-01-2009 01:04 AM

I have finally gotten ispCP installed without much trouble on CentOS 5.3

I tried to connect to my webserver and this is the error I get. (It doesn't matter whether I use admin.domain.com or http://www.domain.com or domain.com):

Code:
Fatal error: Uncaught exception 'Exception' with message 'Database error: Not connected to default' in /var/www/ispcp/gui/include/class.database.php:21 Stack trace: #0 /var/www/ispcp/gui/include/i18n.php(66): Database::getInstance() #1 /var/www/ispcp/gui/include/system-message.php(49): tr('ispCP Error') #2 /var/www/ispcp/gui/include/ispcp-config.php(61): system_message('ERROR: The php-...') #3 /var/www/ispcp/gui/include/sql.php(26): decrypt_db_password('f9aIUMy4X69jYiu...') #4 /var/www/ispcp/gui/include/ispcp-lib.php(54): require_once('/var/www/ispcp/...') #5 /var/www/ispcp/gui/index.php(21): require('/var/www/ispcp/...') #6 {main} thrown in /var/www/ispcp/gui/include/class.database.php on line 21

And suggestions on figuring this out please?
I turned the debug mode on and got this when I restarted the manager:

Code:
# /var/www/ispcp/engine/ispcp-rqst-mngr
DEBUG: push_el() sub_name: mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: lock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which touch` /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: lock_system(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: unlock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which rm` -rf /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: unlock_system(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Ending...

SOLUTION: I read this thread and tried installing php-mcrypt and it worked!


RE: Finally Installed but problems connecting: - joximu - 08-01-2009 01:28 AM

Theese are two different things.
a) the gui, b) the backend engine...

Obviously the gui cannot connect to the given DB... - but I cannot see what's the problem...

/J


RE: Finally Installed but problems connecting: - ceco91 - 08-01-2009 04:37 AM

Wrong database name I think.


RE: Finally Installed but problems connecting: - jim.thornton - 08-01-2009 06:18 AM

Would you mind suggesting how I can debug this?