Guide to getting MySQLdb installed for Python/MySQL to work on cPanel(11)/centOS(5.4). First you need to check if you need any of these installed (I didn’t).
yum install python-devel yum install MySQL-devel yum install zlib-devel yum install openssl-devel
This one I did need was, python-setuptools this basically allows to; Download, build, install, upgrade, and uninstall Python packages - as it says on the Python website.
yum install python-setuptools.noarch
Ok lets get started. run this from your cmd line/bash.
wget http://downloads.sourceforge.net/project/mysql-python/mysql-python-test/1.2.3c1/MySQL-python-1.2.3c1.tar.gz && tar xzf MySQL-python-1.2.3c1.tar.gz && cd MySQL-python-1.2.3c1 && python setup.py build && sudo python setup.py install
That’s it your done!
BTW, this is what I am running environment wise.
cPanel 11.25.0-R44718 - WHM 11.25.0 - X 3.9 CENTOS 5.4 i686 standard














