0

I'm installing a SSL certificate for a currently productive CentOS 5.8 (final)

So I runned this:

yum install mod_ssl

and got this:

Error: Missing Dependency: httpd = 2.2.3-65.el5.centos is needed by package 1:mod_ssl-2.2.3-65.el5.centos.x86_64

A few details about my instalation:

# yum list installed|grep httpd
httpd.x86_64                           2.2.20-1.w5                     installed
httpd-tools.x86_64                     2.2.20-1.w5                     installed
Mauro
  • 386
  • 1
  • 4
  • 13

1 Answers1

4

You've got 2.2.20-1.w5 installed, it is looking specifically for 2.2.3-65.el5 as shown by the =. It also seems that you have a nonstandard package installed - i.e. one that did not come out of the standard repos since all of the RH/CentOS packages end in .elX where X is the major version number.

To Answer the question in the comments. It appears that the .w5 suffix is from the Webtactic repositories. If you don't need anything from that repo, I would suggest removing it's entry in /etc/yum.repos.d after removing the Apache install. If you do need things from that repo, I would suggest following their instructions at the bottom of the page I linked to above to disable the repo and only use it when needed.

There is no way to change the version of Apache that is installed without downtime, although if you backup the configs first it should be very minimal - on the order of 5 mins tops.

Zypher
  • 37,405
  • 5
  • 53
  • 95
  • Dang, you beat me to it! – HTTP500 Oct 11 '12 at 21:55
  • Thanks! So I guess my best option is to re-install `httpd` and it's dependencies using one of the standard repos. Correct me if I'm wrong, but that would be `yum remove httpd ...` and `yum install httpd ...`. Could you recommend "standard repo"? – Mauro Oct 11 '12 at 22:04
  • Also, is there a way to do this without downtime? – Mauro Oct 11 '12 at 22:14
  • @Mauro see my edit – Zypher Oct 12 '12 at 14:35
  • Thanks Man. That's great. I didn't want to go through that delicate process so I've finally decided to get another instance from my cloud provider, replicate the server using the appropriate repos and linking the databases to the old server, fully test it. Then lock tables and migrate them. What do you think of this solution? – Mauro Oct 12 '12 at 18:14
  • 1
    @Mauro Sounds like a very sound way to go about it. – Zypher Oct 12 '12 at 18:56