Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I resolve httpd conflict on amazon ec2 linux?

I am trying to install apache on my amazon ec2 instance.

when I use :

sudo yum -y install httpd

I get a conflict with httpd2.2

Error: httpd24-tools conflicts with httpd-tools-2.2.25-1.0.amzn1.x86_64

But I cannot remove the older version using:

yum remove httpd-tools-2.2.25-1.0.amzn1.x86_64
yum remove httpd

I just get the error

Loaded plugins: priorities, update-motd, upgrade-helper
No Match for argument: httpd-tools-2.2.25-1.0.amzn1.x86_64
No Packages marked for removal

or Loaded plugins: priorities, update-motd, upgrade-helper No Match for argument: hhtpd No Packages marked for removal

Im new to setting up these instances so any help would be appreciated in advance, thanks.

like image 307
Aidan Gee Avatar asked Oct 24 '13 09:10

Aidan Gee


People also ask

Why AMI getting a server refused our key error when I try to connect to my EC2 instance using SSH?

The following are some common reasons you might receive this error: You're using the incorrect user name for your AMI when connecting to your EC2 instance. The usual user names are ec2-user, ubuntu, centos, root, or admin. The user trying to access the instance was deleted from the server or the account was locked.

How do you troubleshoot if you Cannot SSH into an AWS instance?

The best way to diagnose an SSH problem is to launch a new instance in the same subnet, using the same security group. If this works, then the problem is related to the original instance. The fact that you are receiving a timeout error indicates that your SSH client has been unable to reach the instance.


1 Answers

I canot access the AMI Id you have mentioned. instead I used AMI ami-d03ea1e0. Here are hte steps I followed:

  1. Created an instance
  2. Installed httpd.x86_64
  3. then treid to install httpd24.x86_64 and recieved the error as yours
  4. so removed httpd.x86_64 and httpd-tools-2.2.25-1.0.amzn1.x86_64 and it was sucessful
  5. was successfully able to install httpd24.x86_64

Here is the status:

# httpd -v
Server version: Apache/2.4.6 (Amazon)
Server built:   Sep 20 2013 18:01:06

# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: AmazonAMI
Description:    Amazon Linux AMI release 2013.09
Release:        2013.09
Codename:       n/a

It worked for me. Of course, the AMI I tried was a public one.

BTW, lsb_release -a doesn't work out of the box on aforementioned AMI. I had to install lsb package for that.

like image 182
slayedbylucifer Avatar answered Oct 02 '22 02:10

slayedbylucifer