Solved: No DB drivers found / blank page

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
falkencreative
Forum Members
Forum Members
Posts: 11
Joined: Wed Oct 01, 2008 3:14 am

Solved: No DB drivers found / blank page

Post by falkencreative »

OK, so I'm running into two issues... fixing either one should take care of my problem.

I am doing a website for a friend using CMS Made Simple. I installed CMSMS fine on my (linux) server. However, now that it's time to transfer to my live server (Windows / IIS 6) I'm running into some issues.

Transferring the files:
First, I've tried just copying all of the files over, exporting my database, and then importing it onto the new host. I have updated the database info in the config.php file, but I'm not totally sure how to find out what my $config['root_path'] should be, so that could be a source of the error.  Anyway, I have tried viewing the site, but I am currently getting a blank page. The server is set up to show errors, but it does not log them anywhere.

safe_mode: off
display_errors: on
error_reporting: 6143 (E_ALL)

error_append_string: no value
error_log no value: no value
error_prepend_string: no value

Anything I should try? Is there anyway to manually force CMSMS to log errors, so I can look at them? I find it odd that the server should show me the errors, but they aren't getting displayed.

Fresh Install:
Since just transferring the files didn't seem to work, I'm also trying to install CMSMS from scratch. However, on the first page on the installation (install/index.php) I get an error "DB drivers: No DB drivers found", which doesn't let me continue.  What does this mean, and how can I go about fixing it?

I should mention, I do have access to a database, but (I am not sure of all of the technical details) it seems to be hosted on a different server than where my files are hosted.  The url I use to connect to it is my-database-name.mysql.aplus.net, rather than the usual "localhost". Do I have to change anything in the CMSMS installer to adjust for that?
Last edited by falkencreative on Fri Dec 19, 2008 3:21 am, edited 1 time in total.
alby

Re: No DB drivers found / blank page

Post by alby »

falkencreative wrote: Transferring the files:
First, I've tried just copying all of the files over, exporting my database, and then importing it onto the new host. I have updated the database info in the config.php file, but I'm not totally sure how to find out what my $config['root_path'] should be, so that could be a source of the error.  Anyway, I have tried viewing the site, but I am currently getting a blank page. The server is set up to show errors, but it does not log them anywhere.
if you run install/index.php and in step 5 UNCHECK write SQL tables and sample content, this re-create the correct config.php
and then look to install/index.php ...

- call install/index.php?debug=1
- in windows you must check your permissions for PHP user

falkencreative wrote: Fresh Install:
Since just transferring the files didn't seem to work, I'm also trying to install CMSMS from scratch. However, on the first page on the installation (install/index.php) I get an error "DB drivers: No DB drivers found", which doesn't let me continue.  What does this mean, and how can I go about fixing it?
First page?
This check (internal only!) is in step 2!
always in install/index.php in step 1 run checksum for testing your installation

Alby
falkencreative
Forum Members
Forum Members
Posts: 11
Joined: Wed Oct 01, 2008 3:14 am

Re: No DB drivers found / blank page

Post by falkencreative »

alby wrote: if you run install/index.php and in step 5 UNCHECK write SQL tables and sample content, this re-create the correct config.php
and then look to install/index.php ...

- call install/index.php?debug=1
- in windows you must check your permissions for PHP user
If I could get to step 5, it would be helpful... as my comments below say, I can't get past step 2, due to this "No DB drivers found" error. The reason I was trying a fresh install as well is because I had hoped to re-create the correct config file, but no luck so far.
First page?
This check (internal only!) is in step 2!
always in install/index.php in step 1 run checksum for testing your installation
Oops, a typo on my part. I meant step 2.  I have tried the checksum, and all my files have uploaded correctly. My impression is that this may have something to do with how the server is set up. However, I really can't go to my hosting and say "I can't install CMSMS because of an error, please help me with it", since they'll just say they can only offer help for server issues and send me back here.

Again, any idea what "No DB Drivers found" error means? If I at least had an understanding of what was missing, I could contact my host about that.

Would the fact that the server I am attempting to install on is Windows based make any difference?
Last edited by falkencreative on Mon Dec 15, 2008 9:41 pm, edited 1 time in total.
falkencreative
Forum Members
Forum Members
Posts: 11
Joined: Wed Oct 01, 2008 3:14 am

Re: No DB drivers found / blank page

Post by falkencreative »

Bypassed my problems by moving to a new host that I know will work with CMSMS. Wish I knew what the original issue was though.
tomye

Re: Solved: No DB drivers found / blank page

Post by tomye »

i have same problem (No DB Driver found) when install, can you help me?  :'(
falkencreative
Forum Members
Forum Members
Posts: 11
Joined: Wed Oct 01, 2008 3:14 am

Re: Solved: No DB drivers found / blank page

Post by falkencreative »

Unfortunately, I really didn't find a solution to the issue... I just bypassed it by going with a different host that was Linux based (HostGator).  What is your hosting setup?  The server I was attempting to use when I had that issue was a windows based server running IIS 6 (or 7, I can't remember exactly).

I think I got that error because the host was using different servers for my hosting and my database, and CMSMS had trouble with that... but as you can see from the thread,I really never got an answer to this.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Solved: No DB drivers found / blank page

Post by Dr.CSS »

I have used separate hosting for site and DB before, the DB address was just a link to it...

Your problem most likely was windoze server as they are setup diff. than linux server, especially if you are trying to upload a site made on linux localhost server...

I believe there are some tips in the Wiki/Docs...
moonspa

Re: Solved: No DB drivers found / blank page

Post by moonspa »

Hello,

I faces same problem during my last installation of cmsms and solution is:

Cmsms supports following list of database drivers:
('mysqli'=>'mysql', 'mysql'=>'mysql', 'pgsql'=>'pgsql')

if non of them is installed as extension in php located on your server, you'll get the installation error message (No DB drivers found). So, only what you need is to install at least one of above described drivers (on ubuntu for example you can do it with command [sudo apt-get install php5-mysql]) on you system and restart web server (once again ubuntu example [sudo /etc/init.d/apache2 restart]). Afterwards installation procedure will pass this step of the test with result "OK".

Hope this helps somebody.


Regards,
mOOnSPa.
Pierre M.

Re: Solved: No DB drivers found / blank page

Post by Pierre M. »

tomye wrote: i have same problem (No DB Driver found) when install, can you help me?  :'(
Nobody can telehelp you with the too few information you are giving.

Pierre M.
Locked

Return to “[locked] Installation, Setup and Upgrade”