Mobile app version of vmapp.org
Login or Join
Debbie626

: How can I diagnose an Internal Server Error? I was trying to host a zend-framework project on new host provider. After uploading everything and configuring the database connection I have encountered

@Debbie626

Posted in: #Apache #Error #Server

I was trying to host a zend-framework project on new host provider.
After uploading everything and configuring the database connection I have encountered Internal Server Error message. My service provider told they don't installed zend-framework but I have integrated the framework as a library into the project.



When i tested the server uploading html file it work fine.

Since i don't have the Apache server accessing privilege, How can i fix that?

error log:
#0 /home/myweb/public_html/library/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/myweb/public_html/library/Zend/Db/Adapter/Abstract.php(448): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /home/myweb/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES 'utf8...', Array)
#3 /home/myweb/public_html/application/Bootstrap.php(144): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES 'utf8...')
#4 /home/myweb/public_html/library/Zend/Application/Bootstrap/BootstrapAbstract.php(666): Bootstrap->_initDb()
#5 /home/myweb/public_html/library/Zend/Application/Bootstrap/BootstrapAbstract.php(619): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('db')
#6 /home/myweb/public_html/library/Zend/Application/Bootstrap/BootstrapAbstr in /home/myweb/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php on line 112
[11-Jul-2011 07:35:51] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
[11-Jul-2011 07:35:51] PHP Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in /home/myweb/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php:112
Stack trace:

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

2 Comments

Sorted by latest first Latest Oldest Best

 

@Nickens628

Your error log shows that the Zend framework can't find the PDO MySQL driver it needs to connect to the MySQL server. This could be for a couple of reasons:


It's possible your server is running an old version of PHP. (The PDO class is only included in PHP 5.1 or later.) Check what version you're running by creating a file called 'info.php' containing the following code, and opening that file in your browser:

<?php phpinfo(); ?>


Delete this file as soon as you've checked the PHP version so that others can't access it. If you're not using PHP 5.1, ask your hosting company to install it for you. If you are using PHP 5.1, read on.
Your hosting company doesn't have the PDO MySQL driver installed. You could contact them with the contents of your error log and ask them to install the driver, or use a different hosting company who includes the PDO MySQL driver (or, even better, one that specifically names the Zend framework in their list of supported modules).

10% popularity Vote Up Vote Down


 

@Kimberly868

From my reading of the error message:

Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so'

Looks like your server is missing some extensions. I suggest that you pay the extra for a Virtual Private Server where you will be able to install them.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme