Magento pre-checks – how to install curl, gd, mcrypt, and pdo using cpanel whm – yeah its easy!
I searched for hours and hours after I attempted to install Magento on a godaddy vps only to get this:
- You are missing the curl extension
- You are missing the gd extension
- You are missing the mcrypt extension
- You are missing the pdo_mysql extension
- You are missing the pdo extension
- You have PHP 5.2.0 (or greater)
- Safe Mode is off
- You have MySQL 4.1.20 (or greater)
- You have the dom extension
- You have the hash extension
- You have the iconv extension
- You have the pcre extension
- You have the simplexml extension
Update Apache
Then choose mcrypt or any other module you want to recompile PHP with.
And it will do so automatically.
Similar to easyapache, but easier to use.
I upgraded to PHP 4.3.2 just like that with the modules I want.
- “Main >> Software >> EasyApache (Apache Update)”.
- Then I selected the PHP Encryption / E-commerce option.
- Then “start customizing based on profile”.
- From there I selected Apache 2.2 (I was currently running 2.0),
- clicked Next and selected php5, selected build 5.3.2,
- scroll to the bottom of the page and click “
“ - Now we are COOKING! – you can now select curl, gd, mcrypt, pdo, and a whole host of other options.
After selecting those options, I clicked “
“. Now it goes and goes while building apache with all of the options you selected – NO COMPILING, MAKE, MAKE INSTALL, ETC! It does all of that for you!
I go back to my magento-check.php page and I’m in magento precheck heaven:
Congratulations! Your server meets the requirements for Magento.
- You have PHP 5.2.0 (or greater)
- Safe Mode is off
- You have MySQL 4.1.20 (or greater)
- You have the curl extension
- You have the dom extension
- You have the gd extension
- You have the hash extension
- You have the iconv extension
- You have the mcrypt extension
- You have the pcre extension
- You have the pdo extension
- You have the pdo_mysql extension
- You have the simplexml extension
Andy | Jul 13, 2010 | Reply
Thank you! You’re a life saver!
dsackr | Jul 13, 2010 | Reply
Don’t thank me yet Andy – This is just the first step to getting Magento installed… feel free to ping me with questions – If I haven’t already written a post on it, I can always add…
Andy | Jul 14, 2010 | Reply
You are right, o wise one. I am running into another wall, or two again.
After some digging I found that the MySQL default storage had to be changed to InnoDB. I did that by going into my.cnf and change it to:
[mysqld]
#skip-innodb
default-storage_engine = InnoDB
And restarted MySQL. Just when I was about to pat myself on the back, all of a sudden an Internal Server Error pops up when I attempt to install Magento.
Error log shows:
“PHP Startup: Unable to load dynamic library” for all those PHP extensions.
I’m at a loss at this point. Any help you can provide will be much appreciated. Thanks in advance!
dsackr | Jul 19, 2010 | Reply
@Andy, I had a similar error but I solved it by re-compiling mysql (using easyapache in cpanel) using InnoDB.
Then I reinstalled Magento… that worked for me as far as I can remember it… let me know if you figured it out…
alex | Aug 26, 2010 | Reply
wow, congratulations, and thanks a lot for the time you helped me save.