Database Error: Unable to connect to the database

5 posts / 0 new
Last post
#1 Mon, 04/19/2010 - 14:10
comtoistech

Database Error: Unable to connect to the database

I've installed several applications in sub directories of the TLD but none of them are working....

I keep getting simular errors on all of them like Joomla.....

Database Error: Unable to connect to the database:Could not connect to MySQL

but the "under Contruction page comes up ok, and the front ends for Horde, etc come up but will not allow log in.

Any Idea's would be apprecaited, I've been checking everywhere with out luck.

Mon, 04/19/2010 - 14:12
andreychek

Do you have the PHP MySQL module installed?

It's a package named php-mysql, or perhaps php5-mysql, depending on what distribution you're using.

-Eric

Mon, 04/19/2010 - 14:19 (Reply to #2)
comtoistech

Actually, at first it wouldn't allow me to install phpmyadmin because it only had version 5.1.6 so I upgraded to php-mysql 5.2.10-1.el5.centos and was able to install fine.

The issue occurred both before and after the upgrade.

Mon, 04/19/2010 - 14:26
andreychek

Ah, yes, the more recent versions of phpMyAdmin do require a version of PHP that's more recent than what you can get by default with CentOS.

Now that you upgraded to PHP 5.2.x, are you able successfully log into phpMyAdmin?

-Eric

Mon, 04/19/2010 - 14:37 (Reply to #4)
comtoistech

I wish I could say yes, but sadly no....I get this...

phpMyAdmin - Error Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

The apache log shows the last 20 errors...

[Mon Apr 19 01:48:53 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/home/promaxia.biz/tmp/sess_26af00itslij66ffoe6se03r34, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Apr 19 01:48:53 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/promaxia.biz/tmp) in Unknown on line 0 [Mon Apr 19 01:50:29 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/home/promaxia.biz/tmp/sess_8s4guqdib1cg8n5tan0361dgh0, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Apr 19 01:50:29 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/promaxia.biz/tmp) in Unknown on line 0 [Mon Apr 19 12:53:43 2010] [error] [client 173.212.245.98] File does not exist: /home/promaxia.biz/public_html/robots.txt [Mon Apr 19 13:50:03 2010] [error] [client 95.211.132.69] File does not exist: /home/promaxia.biz/public_html/administrator [Mon Apr 19 13:50:04 2010] [error] [client 95.211.132.69] File does not exist: /home/promaxia.biz/public_html/site [Mon Apr 19 13:50:04 2010] [error] [client 95.211.132.69] File does not exist: /home/promaxia.biz/public_html/cms [Mon Apr 19 13:50:05 2010] [error] [client 95.211.132.69] File does not exist: /home/promaxia.biz/public_html/content [Mon Apr 19 13:50:05 2010] [error] [client 95.211.132.69] File does not exist: /home/promaxia.biz/public_html/Joomla [Mon Apr 19 15:04:12 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/home/promaxia.biz/tmp/sess_kh7q6crh4o878i89p1icpd2tj4, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Apr 19 15:04:12 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/promaxia.biz/tmp) in Unknown on line 0 [Mon Apr 19 15:04:12 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/home/promaxia.biz/tmp/sess_kh7q6crh4o878i89p1icpd2tj4, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Apr 19 15:04:12 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/promaxia.biz/tmp) in Unknown on line 0 [Mon Apr 19 15:04:40 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/home/promaxia.biz/tmp/sess_qehueg3soerrivqjua9mvevvt4, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Apr 19 15:04:40 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/promaxia.biz/tmp) in Unknown on line 0 [Mon Apr 19 15:04:57 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/home/promaxia.biz/tmp/sess_i8od52541p8hlmdqqjuj39a453, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Apr 19 15:04:57 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/promaxia.biz/tmp) in Unknown on line 0 [Mon Apr 19 15:05:14 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: open(/home/promaxia.biz/tmp/sess_1jkvpthorp416ahdp7gd9oasq3, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [Mon Apr 19 15:05:14 2010] [warn] mod_fcgid: stderr: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/promaxia.biz/tmp) in Unknown on line 0

  Last  lines of    Only show lines with text     
Topic locked