Install Error: "ADONewConnection: Unable to load database driver", help please!

Install Error: "ADONewConnection: Unable to load database driver", help please!

by Brad Hong -
Number of replies: 1
Situation:
Webserver: Apache 2.0.54
PHP: 5.1.2
MySQL: 4.1.20
Servier: Fedora Core 4-64bit Virtual Server on 1 and 1 with root access.

What I have done:
1. updated PHP version from 5.0.4 to 5.1.2 using source code as needed by Moodle1.8.2.
2. uploaded the Moodle-1.8.2 to the host within virtual host domain:
/var/www/vhosts/cherithsimmons.net/subdomains/test/httpdocs/moodle/
3. set up the moodledata directory at: /usr/moodledata and give the access right to apache:apache
4. create moodle db and db user.
5. changed the config.php file.
6. go to install step with URL: test.cherithsimmons.net/moodle and get this error:
Syntax error in file: /var/www/vhosts/cherithsimmons.net/subdomains/test/httpdocs/moodle/lib/adodb/drivers/adodb-mysql.inc.php

ADONewConnection: Unable to load database driver ''

Fatal error: Call to a member function SetFetchMode() on a non-object in /var/www/vhosts/cherithsimmons.net/subdomains/test/httpdocs/moodle/install.php on line 152

I have been looking for the answer at this site. But can't find one. Could someone have this experience help me please.

Many Thanks
Brad
Average of ratings: -
In reply to Brad Hong

Re: Install Error: "ADONewConnection: Unable to load database driver", help please!

by Brad Hong -
reply to myself.

The problem which is sub domain inside virtual host. Actually it is the permission problem I guess.
Things getting improved after put Moodle direct under the domain name. "ADONewConnection: Unable to load database driver@" error disappeared.

New error: "ERROR: Could not find or create a directory" came out. I got this error before on my local machine. So pretty confident to dealing with. After check the permission of moodledata and checked Selinux option. See this post for detail. It is still not getting works. This was make me mad. Finally after a long day hard work, find the problem which is the the setting made by Plesk service provide by 1and1. Plesk manage the domain name and restrict php open_basedir to somewhere which Moodle cant connct with moodledata directory. After delete this setting under file called http.conf. Everything works fine now.big grin

Just want to sharing this with this community. Maybe someone need it. You never know.wink

Thanks.