I get the error message in phpmyadmin and cannot use some virtualmin install scripts because php-mcrypt is missing.
What I know so for is that mcyrpt is not supported or included in centos and have read numerous forums that post on how to install it particularly in cents 6.2 64. All have lead to dead ends with changed links or package not available. I have also tried the yum search in webmin and no luck. . I have also read posts in this forum that say its not necessary and can be disabled in php.ini. I found the correct php.ini for the VS, found the line "extension=mcrypt.so", commented it out and restated apache. When I run an install script, magento for instance I still get the "PHP module mcrypt is required" message and install fails.
On checking php.ini I see my lines that have been commented out but a new line have been added for "extension=mcrypt.so"
So I can't disable it and I can install it?
Comments
Submitted by helpmin on Sat, 06/23/2012 - 10:34 Comment #1
You could install mcrypt via the EPEL repo and then install it with yum. very easy.
http://fedoraproject.org/wiki/EPEL/FAQ
Submitted by gl3ny on Sat, 06/23/2012 - 10:48 Comment #2
I tried...
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/ix86_64/epel-release-6-7.no...
and...
Retrieving http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noa... curl: (6) Couldn't resolve host 'download.fedoraproject.org' error: skipping http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noa... - transfer failed
Submitted by helpmin on Sat, 06/23/2012 - 10:51 Comment #3
No idea, it works just fine here.
Submitted by gl3ny on Sat, 06/23/2012 - 10:58 Comment #4
So what are you trying to say, its not your problem?
Submitted by helpmin on Sat, 06/23/2012 - 11:09 Comment #5
I tried to say that the EPEL installation should have worked (I just tried it and it worked just fine for me). Don't think this is related in any way to your virtualmin installation, but let's see what the virtualmin folks have to say about this.
Submitted by gl3ny on Sat, 06/23/2012 - 11:13 Comment #6
Ok thank you.
Submitted by andreychek on Sat, 06/23/2012 - 15:31 Comment #7
It looks as if there may be a DNS resolution issue on your server there which is preventing your system from resolving the name "'download.fedoraproject.org".
You may want to start by verifying that DNS resolution is working. I'm curious what these two commands show:
host google.com
host download.fedoraproject.org
Submitted by gl3ny on Sat, 06/23/2012 - 15:46 Comment #8
Thank you but I managed to resolve it. It was a fresh install anyway so I just started again. You are probably right because I have apache restart errors that pointed towards DNS configuration. I don't know what I did wrong last time unfortunately. This time before I installed virtualmin I added the repo and installed mcrypt without any issue. Also no more apache errors. Any way those 2 commands look like this.
google.com has address 74.125.228.0 google.com has address 74.125.228.1 google.com has address 74.125.228.2 google.com has address 74.125.228.3 google.com has address 74.125.228.4 google.com has address 74.125.228.5 google.com has address 74.125.228.6 google.com has address 74.125.228.7 google.com has address 74.125.228.8 google.com has address 74.125.228.9 google.com has address 74.125.228.14 google.com has IPv6 address 2607:f8b0:4004:801::1005 google.com mail is handled by 10 aspmx.l.google.com. google.com mail is handled by 20 alt1.aspmx.l.google.com. google.com mail is handled by 30 alt2.aspmx.l.google.com. google.com mail is handled by 40 alt3.aspmx.l.google.com. google.com mail is handled by 50 alt4.aspmx.l.google.com.
download.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 152.19.134.146 wildcard.fedoraproject.org has address 209.132.181.16 wildcard.fedoraproject.org has address 66.35.62.166 wildcard.fedoraproject.org has address 140.211.169.197 wildcard.fedoraproject.org has IPv6 address 2001:4178:2:1269::fed2 wildcard.fedoraproject.org has IPv6 address 2610:28:3090:3001:dead:beef:cafe:fed4
Thanks again for your help.
Submitted by gl3ny on Sun, 06/24/2012 - 07:59 Comment #9
Sorry looks I am going to need your help after all. As I said before I did yum install of mcrypt, perl and all other packages I needed before installing virtualmin. Had no issues at all and now Virtualmin is installed I can't even yum update which I could on the prior installation. wget also does not work now.
I am behind a NAT'd router and virtualmin System Settings>Virtualmin Configuration>Network Settings is as follows:
Default virtual server IP address: Internal IP as set in router port forwarding Default IP address for DNS records: Is set to "other" external IP address
host google.com reporting:
google.com has address 74.125.228.71 google.com has address 74.125.228.72 google.com has address 74.125.228.73 google.com has address 74.125.228.78 google.com has address 74.125.228.64 google.com has address 74.125.228.65 google.com has address 74.125.228.66 google.com has address 74.125.228.67 google.com has address 74.125.228.68 google.com has address 74.125.228.69 google.com has address 74.125.228.70 google.com has IPv6 address 2607:f8b0:4004:800::100e google.com mail is handled by 50 alt4.aspmx.l.google.com. google.com mail is handled by 10 aspmx.l.google.com. google.com mail is handled by 20 alt1.aspmx.l.google.com. google.com mail is handled by 30 alt2.aspmx.l.google.com. google.com mail is handled by 40 alt3.aspmx.l.google.com.
host download.fedoraproject.org reporting:
download.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 66.35.62.166 wildcard.fedoraproject.org has address 140.211.169.197 wildcard.fedoraproject.org has address 152.19.134.146 wildcard.fedoraproject.org has address 209.132.181.16 wildcard.fedoraproject.org has IPv6 address 2001:4178:2:1269::fed2 wildcard.fedoraproject.org has IPv6 address 2610:28:3090:3001:dead:beef:cafe:fed4
Submitted by andreychek on Sun, 06/24/2012 - 08:23 Comment #10
Those two "host" commands appear to be working correctly, so that part is good.
What error do you receive when using wget or yum?
Submitted by gl3ny on Sun, 06/24/2012 - 09:00 Comment #11
Oops I had don't know what happened to my /etc/hosts file but there was no entry for my external ip and FQDN, which i need right?
Now yum update works and so does wget but I'm still not sure if everything is 100% or if its on their end as far as yum goes because there is an error. I get this:
yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.fedoraproject.org'" * base: mirrors.seas.harvard.edu * epel: mirror.umd.edu * extras: mirror.thelinuxfix.com * updates: centos.mirror.nac.net Setting up Update Process No Packages marked for Update
Submitted by andreychek on Sun, 06/24/2012 - 22:14 Comment #12
I had don't know what happened to my /etc/hosts file but there was no entry for my external ip and FQDN, which i need right?
Yeah, that should be in there.
You're saying things are working okay now though?
It does sound like you're receiving DNS resolution issues. If you see any more issues like that, let us know what the contents of your /etc/resolv.conf file are.
Submitted by gl3ny on Mon, 06/25/2012 - 17:30 Comment #13
Yes I can now download with out issue, just not exactly sure what PYCURL error is with yum update.
/etc/resolv.conf nameserver 127.0.0.1 nameserver 209.18.47.61 nameserver 209.18.47.62
Generated by NetworkManagerSubmitted by andreychek on Mon, 06/25/2012 - 17:37 Comment #14
If you continue to have problems, you may want to comment out these two lines:
nameserver 209.18.47.61
nameserver 209.18.47.62
There may be a problem with one (or both) of those nameservers.
The other one, 127.0.0.1, would cause DNS lookups to all take place using the BIND DNS server running on your system.