Magento error with pdo_mysql

Sunday, December 27th, 2009

Magento is a great Free / Open source eCommerce script, is much more prettier and yet complex than Prestashop or osCommerce or Virtuemart. Take sometimes to upload it to hosting server, but if your hosting provider have Automatic script installer like Installatron or Softacolous, you can install it in a breeze. So Installation of Magento is no longer problem.

But after a succesful installation, I even get this error saying that I dont have pdo_mysql installed on the server.

pdo_mysql extension is not installed
Trace:
#0 /home/store/public_html/lib/Zend/Db/Adapter/Abstract.php(441):
Varien_Db_Adapter_Pdo_Mysql->_connect()
#1 /home/store/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(230):
Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#2 /home/store/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(281):
Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#3 /home/store/public_html/app/code/core/Mage/Core/Model/Resource/
Type/Db/Pdo/Mysql.php(45):
Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#4 /home/store/public_html/app/code/core/Mage/Core/Model/
Resource.php(87): Mage_Core_Model_Resource_Type_Db_Pdo_Mysql-
>getConnection(Object(Mage_Core_Model_Config_Element))
#5 /home/store/public_html/app/code/core/Mage/Core/Model/Resource/
Setup.php(62): Mage_Core_Model_Resource->getConnection('core_setup')
#6 /home/store/public_html/app/code/core/Mage/Core/Model/Resource/
Setup.php(120): Mage_Core_Model_Resource_Setup->__construct('core_setup')
#7 /home/store/public_html/app/code/core/Mage/Core/Model/Config.php(263):
Mage_Core_Model_Resource_Setup::applyAllUpdates()
#8 /home/store/public_html/app/code/core/Mage/Core/Model/App.php(263):
Mage_Core_Model_Config->init(Array)
#9 /home/store/public_html/app/Mage.php(434):
Mage_Core_Model_App->init('', 'store', Array)
#10 /home/store/public_html/app/Mage.php(455):
Mage::app('', 'store', Array)
#11 /home/store/public_html/index.php(65): Mage::run()
#12 {main}

I don’t get it, when I check with function

<?php
phpinfo();
?>

pdo and pdo_mysql is there.

'--enable-pdo=shared'
'--with-pdo-mysql=shared'

So, it’s time for searching and lurking into Google and Magento forum/docs
(more…)

SocialTwist Tell-a-Friend

PHP with SuPHP on cPanel

Saturday, June 27th, 2009

When you activated SuPHP on cPanel servers, this is the normal output should be.

The MIME types associated with PHP may have changed.
If you experience problems with PHP related settings in .htaccess files, ensure
those files use the MIME types specified above (the first value listed after AddType.)

(more…)

SocialTwist Tell-a-Friend

“Nobody” prevented from sending emails

Tuesday, June 23rd, 2009

Forget what I said below, if your webhosting has disabled user “nobody” to sent email, then they should enable suphp. This way, all PHP script executes as user account and not nobody. And will deliver email correctly.

==========

So your webhosting provider activated “Prevent “nobody” from sending mail” which cause your PHP script can’t sent email? You can use PHP classes called XpertMailer or PHPMailer but somehow it’s not working well on my host. Weird… The previous version XPertMailer works like charm but somehow the new one never sent my emails.

So I googling around and found Webmaster World’s Forum, and luckily the ini_set function is not disabled. So I test the script and it works flawlessly. Below is the script
(more…)

SocialTwist Tell-a-Friend