LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2013, 11:36 AM   #1
Pomardako
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu
Posts: 9

Rep: Reputation: Disabled
installing webacula - 'Can't connect to SQL server' - Ubuntu server 10.04


Hi guys, at the first, my apologize for my english, not so very good .

I have a problem with the webacula installation , i write the problem here :

Fatal error: Uncaught exception 'Zend_Exception' with message 'Fatal error: Can't connect to SQL server' in /var/www/webacula/html/index.php:178
Stack trace:
#0 {main}
thrown in /var/www/webacula/html/index.php on line 178


-The requirements its correct..

Webacula check System Requirements...

sh: psql: not found
sh: sqlite3: not found
Current MySQL version = 5.1.41 OK

Current PHP version = 5.3.2-1ubuntu4.18 OK

php pdo installed. OK
php gd installed. OK
php xml installed. OK
php dom installed. OK

php pdo_mysql installed. OK
Warning. PHP extension pdo_pgsql not installed.
Warning. PHP extension pdo_sqlite not installed.
php-dom, php-xml installed. OK



-I have the "zend-framework" at /var/www/webacula/library/Zend.

-I reviewed the /var/www/webacula/install/db.conf.

-I can connect with bconsole with console commands.

-I followed this manuals, and doesnt work anything :

http://cheatsheet.logicalwebhost.com/bacula-howto/

https://dev.uabgrid.uab.edu/wiki/WebaculaInstallation

http://www.java-tutorial.ch/ubuntu/w...tion-on-ubuntu

Any idea?

Thx a lot!

Last edited by Pomardako; 02-07-2013 at 11:51 AM.
 
Old 02-07-2013, 06:31 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
php -m | grep pdo
 
Old 02-08-2013, 09:26 AM   #3
Pomardako
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: Disabled
Code:
bacula@bacula:~$ sudo php -m | grep pdo
[sudo] password for bacula:
pdo_mysql
:?
 
Old 02-08-2013, 12:11 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
php -v
lsb_release -drc
ls -ld /var/lib/mysql/web*
output please.
 
Old 02-08-2013, 12:31 PM   #5
Pomardako
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: Disabled
OMG! , i solved this problem. This is ridiculous. Only put the quotes in the config.ini at the connection config. All manuals dont put this quotes!


Quote:
[general]
;; supported adapters : PDO_MYSQL, PDO_PGSQL, PDO_SQLITE
db.adapter = "PDO_MYSQL"
db.config.host = "192.168.2.229"
db.config.username = "bacula"
db.config.password = "admin"
db.config.dbname = "bacula"
;; for Sqlite db.config.dbname = "/full patch/bacula.db"
Thx a lot!
 
Old 02-08-2013, 12:43 PM   #6
Pomardako
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: Disabled
Ah, and other fix, at /etc/mysql/my.cnf

comment this line :

Quote:
#bind-address = 127.0.0.1
 
Old 02-08-2013, 01:17 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
good catch!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems installing webacula - 'Can't connect to SQL server' wooshyFox Linux - Software 8 07-10-2013 10:32 PM
Unable to connect MS SQL server 2008 Remote Server through SQUID proxy server samank75 Linux - Server 5 01-19-2012 09:19 PM
Connect to MS SQL server using C++ in RHEL funkyaryan81 Linux - Newbie 1 08-11-2011 11:34 AM
Connect to ms sql server from linux RH saustin99 Linux - Newbie 1 02-17-2006 05:07 PM
Connect to SQL Server dhome Linux - Software 1 03-08-2004 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration