Submitted by responsiveny on Thu, 09/15/2011 - 13:55
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
Submitted by andreychek on Thu, 09/15/2011 - 14:12 Comment #1
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.
Submitted by responsiveny on Thu, 09/15/2011 - 14:19 Comment #2
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:
does this sound like a reasonable way to proceed? I understand you do not support the third party repos.
Submitted by andreychek on Thu, 09/15/2011 - 14:27 Comment #3
Hmm... I unfortunately don't see a PHP mcrypt package in the EPEL repository...
Submitted by responsiveny on Thu, 09/15/2011 - 14:34 Comment #4
Are you looking in the EPEL repos for CentOS 6? It seems to be available. http://pkgs.org/download/php-mcrypt
Submitted by andreychek on Thu, 09/15/2011 - 14:52 Comment #5
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.
Submitted by responsiveny on Thu, 09/15/2011 - 14:57 Comment #6
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.
Submitted by andreychek on Thu, 09/15/2011 - 15:02 Comment #7
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.
Submitted by andreychek on Thu, 09/15/2011 - 15:07 Comment #8
Hang on a moment, don't do anything with that yet... I may have a better solution for you :-)
Submitted by responsiveny on Thu, 09/15/2011 - 15:14 Comment #9
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.
Submitted by responsiveny on Thu, 09/15/2011 - 15:14 Comment #10
Also, what's the default admin password for magento using the pro installer? normally you have to enter it during the installation? thanks
Submitted by JamieCameron on Thu, 09/15/2011 - 15:16 Comment #11
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.
Submitted by responsiveny on Thu, 09/15/2011 - 15:21 Comment #12
Thanks, is there any documentation on the default accounts for the Pro scripts?
Submitted by responsiveny on Thu, 09/15/2011 - 15:24 Comment #13
not working :( is the default username admin?
Submitted by responsiveny on Thu, 09/15/2011 - 16:27 Comment #14
nevermind, i see you spit out this information at the end of the Pro install script. thanks
Submitted by responsiveny on Sun, 09/18/2011 - 00:29 Comment #15
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.