Magento requirement?

Hi there!

About Magento I have a question that I not can solve.

When I run the magento-check.php I get the following info that the following requirments failed. (See below)!
So my question are how can I install this extension, and can that damage my server?

* You need PHP 5.2.0 (or greater)
* You are missing the dom extension
* You are missing the hash extension
* You are missing the mcrypt extension
* You are missing the pdo extension
* You are missing the pdo_mysql extension
* You are missing the simplexml extension

My server program:
Operating system CentOS Linux 4.7
Perl version 5.008005
Path to Perl /usr/bin/perl
Postfix version 2.2.10
Mail injection command /usr/lib/sendmail -t
BIND version 9.2.4
Apache version 2.0.53
PHP version 4.3.9, 5.2.6
Webalizer version 2.01-10
Logrotate version 3.7.1
MySQL version 4.1.22
ProFTPd version 1.210
SpamAssasssin version 3.2.4
ClamAV version 0.92

Grateful for any answer.

//Lars R.

Magento requires PHP 5.2. You can install that from yum:

On CentOS 4, you’d use:

yum install php5 php5-domxml php5-mhash php5-mcrypt php5-pdo php5-mysql php5-xml

If you were on CentOS 5 (you aren’t, but others who are reading might be) we provide a package in the bleeding edge repository (though I recommend you think hard about whether you really want to use bleeding edge packages!). You can read about it here:,com_openwiki/Itemid,48/id,php_and_virtualmin/#bleeding_edge_php_packages

And here:,com_openwiki/Itemid,48/id,virtualmin_bleeding_edge_packages/

As for extensions…you should always install them using RPMs (or debs) whenever possible. Building them yourself can be challenging, unless you know what you’re doing. All of the extensions listed are available from the same source as PHP, except maybe simplexml (I’m not sure if that’s part of the php5-xml or php-xml package, or not).

Virtualmin also includes a PEAR module for managing PHP extensions–it can usually install extensions for you. If anything else is missing, try it and see.

BTW-If you’re using Virtualmin Professional, use the Install Script for Magento. It’ll make sure you have all of the dependencies installed (or, it should, anyway…).

Thank´s Joe for you answer!

I have now install Magento from the script installer, and everythings works great untill I start Magento install and it stop with this message:
o PHP Extension "dom" must be loaded
o PHP Extension "gd" must be loaded

Before I start doing anything that could damage my server, my question to you dear Joe is where and how can i find and install this extension.

I also found this smal error messageg when I try to use PHP Pear Modules:
Failed to fetch list of available modules :

PEAR_Remote: unexpected HTTP response

Anything you now about?

Lars R. From Sweden

Dear Joe!
Forget may last post, I have solved the extension stuff.
I need to use SSH to install extension DOM and GD like: yum install php5-gd.

So now everythin works like a charm,

Thak you for you time!


I have now install Magento from the script installer, and everythings works great untill I start Magento install and it stop with this message: o PHP Extension "dom" must be loaded o PHP Extension "gd" must be loaded

The script installer should have installed the dependencies…so, that’s a bit of a bug. The packages you need are php5-xml and php5-gd. Install them with yum, and see if things start looking better. You may need to enable the modules in php.ini (if you’re using suexec, there will be a separate php.ini for each virtual server, which needs to be edited instead of the system php.ini file…you can find the virtual server file in /home/domain/etc/php5/php.ini).

Oh, and the PHP PEAR issue…hmmm…I’m not sure. I’m a total amateur with PHP stuff, so we’re winging it most of the time. :wink:

But, I’ll look into it.

Hehehe…I see you figured out the dependencies at the same time I was posting. Good job.

I am absolutely newbie in Linux and I need to solve same problem with magento.

because that links with centOS 5 not working I decided to write.

My virtual server has installed CentOS Linux 5.4, PHP 5.3.2
And phpinfo() shows me in “Configure command” that …’–disable-dom’ …

Question is: how can I enable it (DOM)?

Can some one help me with step by step?

Thank you


First off, PHP 5.3.2 is rather new, I hope you know what you’re doing :wink: The distributions Virtualmin supports aren’t yet including that, due to it’s new status…

That said, if you’ve installed PHP via an RPM, you just need to install the related modules that you require – the XML DOM extension in your case.

You can do that by logging into your server over SSH as root, and typing this command:

yum install php-xml

Operating system Ubuntu Linux 10.04.1
Webmin version 1.560
Virtualmin version 3.87.gpl GPL

Hi, for few days I try to install Magento on a sub-domain.

I tested the server dependencies with magento’s check file and everything seams to be OK.
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

The install and config process, it crash at the database config step I suppose because it not install all database structure when I check the database installed.

Any idea?

thanks, Bogdan

I’m unfortunately not sure why that would happen… my only thought there would be to review the error logs, which might contain some information on why it crashed. Those are in $HOME/logs/error_log.