Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Got new install (Debian 6.0 + Zend 6.0.1 + Magento 1.7.0.2) working. Cron Problem: pdo_mysql - related (?!)
 
Master_Peter
Jr. Member
 
Total Posts:  4
Joined:  2013-03-27
 

Dear Folks,

after running a xt:commerce shop for several years I want to go Magento. First installed the beast on a shared server. Quite bitchy beast there (sucks to much resources) ... but works.
As time is money, I went to a Vserver. 2Cores 2Ghz, 2GB Ram should do for 2 small shops with just a couple of products/customers atm.
Vserver came preinstalled with Debian6.0. I installed Zend-Server 6.0.1 and the current Magento CE. Runs much faster grin When I went to set up cron for cron.php (tried cron.sh as well) I got some strange shit happening:

Ausgabe des Befehls php -q /var/www/cron.php ..

PHP Fatal error: Uncaught exception ‘Zend_Db_Adapter_Exception’ with
message ‘pdo_mysql extension is not installed’ in
/var/www/lib/Varien/Db/Adapter/Pdo/Mysql.php:302
Stack trace:
#0 /var/www/lib/Zend/Db/Adapter/Abstract.php(459):
Varien_Db_Adapter_Pdo_Mysql->_connect()
#1 /var/www/lib/Zend/Db/Adapter/Pdo/Abstract.php(238):
Zend_Db_Adapter_Abstract->query(’SET NAMES utf8’, Array)
#2 /var/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(419):
Zend_Db_Adapter_Pdo_Abstract->query(’SET NAMES utf8’, Array)
#3 /var/www/app/code/core/Mage/Core/Model/Resource.php(169):
Varien_Db_Adapter_Pdo_Mysql->query(’SET NAMES utf8’)
#4 /var/www/app/code/core/Mage/Core/Model/Resource.php(110):
Mage_Core_Model_Resource->_newConnection(’pdo_mysql’,
Object(Mage_Core_Model_Config_Element))
#5 /var/www/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320):
Mage_Core_Model_Resource->getConnection(’core_write’)
#6 /var/www/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350):
Mage_Core_Model_Resource_Db_Abstract->_getConnection(’write’)
#7 /var/www in /var/www/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 302

Phpinfo screenshot attached… so pdo_mysql is up and running ... but not getting the job done :-(

Thanks
Peter

Image Attachments
pdo_sql.PNGcron_error.PNG
 
Magento Community Magento Community
Magento Community
Magento Community
 
Master_Peter
Jr. Member
 
Total Posts:  4
Joined:  2013-03-27
 

... by the way ... it makes no difference if PHP 5.4 or PHP 5.3!
I tried both - just to be shure.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Master_Peter
Jr. Member
 
Total Posts:  4
Joined:  2013-03-27
 

I read that Zend server likes to mess up with php if that is already installed. Gives a mixture of \"normal\" and Zend flavour PHP.
So I shot down the antichrist (preinstalled Debian) and installed a virgin Centos server webinstall. Went smooth.
1.) installed webmin
2.) installed Zend server
3.) Installed Magento
Got up magento ... works grin

started Cron for magento\’s cron.php
got shit - with a new error message wink
Used Google (more helpful than the community here)

learned I have to make sure the system knows where the f$§% zend php is.

Added :

PATH=$PATH:<install_path>/bin

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib

to the .rcbash
file.

Got my problem solved.

I hope this helps others with similar problems.

Thanks for the nice conversation with myself !!!
Peter

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top