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

Page 1 of 2
PHP Extension “pdo_mysql” and “mcrypt” must be loaded
 
frogger
Jr. Member
 
Total Posts:  6
Joined:  2007-11-11
 

Hi,

I am trying to install the files and am getting this error when I am in the configuration mode.

PHP Extension “pdo_mysql” must be loaded
PHP Extension “mcrypt” must be loaded

Why would this be happening and how do I fix this problem please.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael_1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 
frogger - 11 November 2007 10:49 PM

Why would this be happening and how do I fix this problem please.

Hi frogger,

These php extensions are required to run Magento. Check our Magento System Requirements and make sure you have all the needed extensions installed and enabled in your php.ini.

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
frogger
Jr. Member
 
Total Posts:  6
Joined:  2007-11-11
 

Thanks for getting back to me Michael.
I spoke to the person who looks after my resllers account and this was his reply.
Can you tell me if there is another way around this so that I can use Magento ?

I have had a look at these modules for you and to implement these requires recompiling PHP and Apache with the modules and a later version of PHP which potentially may break other sites. PDO is a major concern as it isnt supported by cPanel and can only be compiled experimently with the possibility of crashing Apache in the process (unsupported and experimental). With this in mind we would not be able to install PDO for you until its supported by cPanel.

Another option you could possibly use is moving your sites to a VPS. This way you are able to make any changes you like without it affecting the many clients found on shared servers.

I apologise that we cannot do more for you but it must be appreciated that altering PHP and Apache on shared servers can easily affect all the clients on the server which is why most webhosts will not enable non standard modules under any circumstances.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael_1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi frogger,

You can try to use our php5-cgi workaround to run Magento under php-cgi. Check out Installing Magento on a PHP4 server Knowledge Base article for more details.

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
frogger
Jr. Member
 
Total Posts:  6
Joined:  2007-11-11
 

Thanks Michael, I sent the link to the person who looks after my hosting. See what he comes back with and ill let you know.

 
Magento Community Magento Community
Magento Community
Magento Community
 
frogger
Jr. Member
 
Total Posts:  6
Joined:  2007-11-11
 

My host has done some adjustments to their server. I have just configured the database details and after completing that page it came up with this error.

Fatal error: Call to a member function getClassName() on a non-object in /home/frogger/public_html/magento/app/code/core/Mage/Core/Model/Resource.php on line 92

what does this mean please

 
Magento Community Magento Community
Magento Community
Magento Community
 
frogger
Jr. Member
 
Total Posts:  6
Joined:  2007-11-11
 

All sorted. I actually re enstalled the script and its all working fine now. Thanks for all your help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jccw
Jr. Member
 
Total Posts:  3
Joined:  2007-11-14
 

The problem i faced is slightly same with this case.

PHP Extension “pdo_mysql” must be loaded

and im using one of the share hosting. the webmaster told me that “ the PDO_MYSQL will not be available in shared server environment.” so what can i do to complete the installation

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
frogger
Jr. Member
 
Total Posts:  6
Joined:  2007-11-11
 

GD Webhosting said the same to me. They are who I use for my resellers account. The guy who runs the business did some modifications so that it would work. Have a chat with them if you need to change hosting companys. http://www.gdwebhosting.com.au

 
Magento Community Magento Community
Magento Community
Magento Community
 
nanhe
Jr. Member
 
Total Posts:  6
Joined:  2008-05-19
 

hi
Go to php.ini file
problem 1 PHP Extension “curl” must be loaded
and find
;extension=php_curl.dll
and remove semicolon

problem 2 PHP Extension “curl” must be loaded
and fined
;extension=php_mcrypt.dll

remove semicolon and restart your server

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
kennethjaysone
Jr. Member
 
Total Posts:  1
Joined:  2009-07-03
 
nanhe - 18 July 2009 10:35 PM

hi
Go to php.ini file
problem 1 PHP Extension “curl” must be loaded
and find
;extension=php_curl.dll
and remove semicolon

problem 2 PHP Extension “curl” must be loaded
and fined
;extension=php_mcrypt.dll

remove semicolon and restart your server

thanks

Thank you so much..i had a problem

error message:

PHP Extension “mcrypt” must be loaded

PHP Extension “curl” must be loaded

I’m installing on localhost (wamp). I followed your steps and edited the php.ini file and it worked. I’m new to this..i was hoping if you help me understand why i got that error.
Really appreciate your help. Thanking you in advance,

Jaysone

 
Magento Community Magento Community
Magento Community
Magento Community
 
Saggy
Sr. Member
 
Total Posts:  133
Joined:  2009-02-03
 

Hi Guys,

I was getting the following error when I was installing magento on my local machine (Window XP).

PHP Extension “pdo_mysql” must be loaded
PHP Extension “mcrypt” must be loaded

And this got fixed by copying the following two files from c:\php\ to c:\windows\system32 (how annoying)

- libmysql.dll
- libmcrypt.dll

N.B- You need to stop and start apache after copying these files.

 
Magento Community Magento Community
Magento Community
Magento Community
 
cjber
Jr. Member
 
Total Posts:  1
Joined:  2009-12-02
 

Please,
I am getting PHP Extension “mcrypt” must be loaded during installation.
However there is no a php.ini among the files so that I can remove the
semi colon. what to do?
Any help will be truly appreciated.
Thanks
Cjber

 
Magento Community Magento Community
Magento Community
Magento Community
 
kvshijo
Jr. Member
 
Total Posts:  1
Joined:  2010-01-05
 
cjber - 02 January 2010 04:24 PM

Please,
I am getting PHP Extension “mcrypt” must be loaded during installation.
However there is no a php.ini among the files so that I can remove the
semi colon. what to do?
Any help will be truly appreciated.
Thanks
Cjber

click (system try) wamp icon> PHP>php.ini

or go to php folder> select current version folder> edit php.ini file

 
Magento Community Magento Community
Magento Community
Magento Community
 
PatrickSnel
Jr. Member
 
Total Posts:  2
Joined:  2010-01-22
 

Same problem here.

I’m trying to install magento locally, i’m using Wamp but the next problems i can’t solve:

PHP Extension "pdo_mysql" must be loaded
PHP Extension 
"mcrypt" must be loaded
PHP Extension 
"curl" must be loaded
PHP Extension 
"gd" must be loaded

Tried to change php.ini but the semicolons were not there allready.

And the other solution i read about gives me a new problem: cannot find the php files to copy to my system32.

Help is very welcome, thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
PatrickSnel
Jr. Member
 
Total Posts:  2
Joined:  2010-01-22
 
PatrickSnel - 10 February 2010 12:20 PM

Same problem here.

I’m trying to install magento locally, i’m using Wamp but the next problems i can’t solve:

PHP Extension "pdo_mysql" must be loaded
PHP Extension 
"mcrypt" must be loaded
PHP Extension 
"curl" must be loaded
PHP Extension 
"gd" must be loaded

Tried to change php.ini but the semicolons were not there allready.

And the other solution i read about gives me a new problem: cannot find the php files to copy to my system32.

Help is very welcome, thank you!

anyone ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2