php mcrypt not installed

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?

Status: 
Active

Comments

No idea, it works just fine here.

So what are you trying to say, its not your problem?

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.

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

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.

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

Those two "host" commands appear to be working correctly, so that part is good.

What error do you receive when using wget or yum?

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

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.

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 NetworkManager

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.