mcrypt Centos 6

Hi, I am running VM on CentOS 6. I am trying to install Magento 1.5.1.0 using the Pro scripts for a domain, but it fails because of lack of mcrypt on CentOS 6. See below. I have done some research and I understand that mcrypt may be available from another repository. How can I switch the repository, install mcrypt, and then (important) switch the repos back so VM runs properly in the future? Thanks

Status: 
Active

Comments

Howdy -- it does look like Magento requires mcrypt... and that mcrypt is not available on CentOS 6.

We unfortunately don't have experience with other repositories, so we can't recommend one to use.

However, if you find a repository that does what you want, you could always add a line like this to it's .repo file in /etc/yum.repos.d:

includepkgs=php*

That will make it so that only the PHP packages are pulled in from that repository.

Again though, we can't vouch for any third party repositories... the only ones we can formally recommend are the standard CentOS repositories, and perhaps EPEL -- but EPEL doesn't have a PHP compiled for CentOS 6 with mcrypt.

Hi, checkout this thread. Apparently EPEL is recommended to get mcrypt

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32954

The thing is, I only want to use EPEL for this one update, and the I want to have the server use the standard repos going forward.

I kinda need a little more handholding on the following:

  1. Set the repos to EPEL teporarily
  2. yum update mcrypt
  3. set the repos back to "normal" for virtualmin

does this sound like a reasonable way to proceed? I understand you do not support the third party repos.

Hmm... I unfortunately don't see a PHP mcrypt package in the EPEL repository...

Ah, see, we're so unfamiliar with non-standard repositories that we can't even find the packages they provide :-)

We're going to be able to do very little to assist you in switching to it, installing the packages... and if anything goes wrong, we're not going to know what to do to fix it :-)

All we're offering with EPEL is that it's packages are known not to conflict with those offered by Virtualmin. But it's not a repository we formally support.

What you'll need to do is obtain a .repo file for EPEL, place that in /etc/yum.repos.d, and then install your desired programs. Once that's complete, you could remove the .repo file... but then you'd no longer receive PHP updates. A better alternative would be to add a includepkgs line to your .repo file (as described above) so that it pulls in the PHP packages from that repository -- and then leave that repository active so that you receive updates.

We don't know how to do the above, and don't want to offer the illusion that we'd know how to fix things if something went awry :-)

Rather than trying all that on your live server, we'd suggest running it on a test system... for example, Virtualbox is great for installing a copy of your distribution of choice, and performing tests.

OK, sounds good. Will try it as a test and let you know. Assuming I only need EPEL for the mcrypt I will just disable EPEL after the update.

Well, chances are that Magento requires the PHP mcrypt module... which means you'd need to replace PHP with the version of PHP at EPEL.

Hang on a moment, don't do anything with that yet... I may have a better solution for you :-)

Yes it was the php-mcrypt that I installed.

Once I enabled the CentOS 6 EPEL repos, rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarc...

I was able to yum install it:

yum install php-mcrypt

Then I disabled the EPEL repos from the EPEL .repo in /etc/yum.repos.d so I am back to the baseline VM repos list

After that, the VM Pro Installer worked fine and Magento installed without errors and comes up fine.

I have not tested magento exhaustively yet, but I'll report back if there are issues with the parts of Magento that use Mcrypt.

Otherwise, case closed.

Also, what's the default admin password for magento using the pro installer? normally you have to enter it during the installation? thanks

The default password is the domain's password, unless it is less than 6 characters long, in which case 123456 is added at the end.

Thanks, is there any documentation on the default accounts for the Pro scripts?

not working :( is the default username admin?

nevermind, i see you spit out this information at the end of the Pro install script. thanks

unfortunately i have to report back after testing the EPEL php-mcrypt with Magento 1.5.0.1 on CentOs 6 crashes the entire server when invoking a Magento function that uses mcrypt.

I reverted to CentOs 5.