Submitted by mike8 on Fri, 08/06/2010 - 15:28
I have updated php to 5.3, it all seems to be working fine except whan I try to install a script "phpmyadmin"
It install but I have an error.
php-mcrypt-5.1.6-15.el5.centos.1.x86_64 from extras has depsolving problems
--> Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.x86_64 (extras)
Error: Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.x86_64 (extras)
I think it has to do with the php upgrade When I open up "phpmyadmin" I get this at the bottom of the page.
"Cannot load mcrypt extension. Please check your PHP configuration."
Did I do something bad?
Michael Posted by mike8 on Fri, 2010-08-06 11:49
Status:
Active
Comments
Submitted by andreychek on Fri, 08/06/2010 - 15:38 Comment #1
Did I do something bad
Not necessarily, though you'll want to keep in mind that anytime you move to third party software not included by default in your distro, that there are risks involved :-)
It looks like in moving to PHP 5.3, it upgraded some, but not all, of the PHP 5.1.x modules that were previously installed.
What ever repository you pulled PHP 5.3 from, you need to make sure you also pull in the php-mcrypt package as well.
It looks like the problem is that although the core PHP package is at 5.3, the PHP mcrypt extension that phpMyAdmin is trying to use is still at the older version.
If you update it as well, that should resolve the error you're seeing.
Submitted by mike8 on Fri, 08/06/2010 - 17:11 Comment #2
OK I tried to find to find updates mcrypt, but was unable to. Now can I just uninstall the php 5.3, and go back to php 5.1?
Submitted by andreychek on Fri, 08/06/2010 - 18:03 Comment #3
It's certainly possible to put the original PHP version back on, though exactly how to do that depends on how you upgraded to PHP 5.3.
Can you describe the steps you took to put PHP 5.3 on there? What repository did it come from?
Submitted by mike8 on Fri, 08/06/2010 - 18:47 Comment #4
I think I was able to go back and remove php5.3, it shows I have php 5.1 again. And everything is still working. I really don't care if I have 5.3, or not, but I was hoping to at lease get 5.2, so I can install phpmyadmin. It won't install with php 5.1. I originally downloaded it from www.webtatic.com it was listed as a upgrade for centOS 5, thats why I tried. But wasn't complete, I guess. too bad everything else worked.
why doesn't CentOS have a repo for php 5.2? it seems like it should at least support that.
Thanks
Michael
Submitted by andreychek on Fri, 08/06/2010 - 18:56 Comment #5
why doesn't CentOS have a repo for php 5.2? it seems like it should at least support that.
Once a distribution releases with a given PHP version, they tend not to change it. The goal with a server distribution is stability, and that large a change in PHP could cause stability issues.
Another option would be to use the Virtualmin "bleed" repo, there's details on it's usage here:
https://www.virtualmin.com/documentation/id,virtualmin_bleeding_edge_pac...