Archive for the 'Freelance' Category

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

[cPanel] Add another main shared IP Address

Tuesday, December 8th, 2009

cPanel has 1 main shared IP address which configured on Basic cPanel/WHM Setup, so you can’t add multiple accounts to use the same IP address, unless the account is reseller. So how do you add another main shared IP address?
(more…)

SocialTwist Tell-a-Friend

MySQL partition is full

Saturday, September 5th, 2009

MySQL databases are located on /var/lib/mysql, if you create a partition for /var and and big enough to hold your databases MySQL will stop working because not enough space to put the data. Below is the easy way to fix it:
(more…)

SocialTwist Tell-a-Friend

Fantastico Problem

Wednesday, August 19th, 2009

First, Joomla is not listed on Fantastico, tried to update Fantastico
WHM >> Plugins >> Fantastico De Luxe WHM Admin >> Update/Get files
Failed!! Below Error showed up when opening Fantastico from cPanel

The server was not able to find the document (./frontend/x3/fantastico/index.php) you requested. Please check the url and try again. You might also want to report this error to your web hosting provider.

Access WHM >> Plugins >> Fantastico De Luxe WHM Admin again, this time it asked to re-install. Done that. But I still get the same error.
(more…)

SocialTwist Tell-a-Friend

[cPanel] “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable”

Wednesday, August 5th, 2009

User complain he can’t access his site, with site error shows “403 Forbidden Error”.
When I check his cpanel error log, I get

[Sun Jul 13 01:15:32 2008] [crit] [client 218.208.xxx.xxx] (13)Permission denied: /home/mydomain/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

I thought it was .htaccess issue, so I trying to delete it. But .htaccess is can’t be deleted. After Googling I found From Techie Corner’s blog. And this is what I’ve done
(more…)

SocialTwist Tell-a-Friend