sysmicuser |
08-07-2016 11:25 PM |
Unable to install apache web server(httpd) on RHEL 6.5
Yesterday I was giving an amazon test and I was presented with a Unix Server (RHEL 6.5) and task was to install apache Web Server !
What interesting is whatever commands I did run they was no way to install it !
Code:
sudo yum install httpd -y
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
No package httpd available.
Code:
sudo yum install httpd*
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd-itk.x86_64 0:2.2.22-7.el6 will be installed
--> Processing Dependency: httpd >= 2.2 for package: httpd-itk-2.2.22-7.el6.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-itk-2.2.22-7.el6.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-itk-2.2.22-7.el6.x86_64
--> Finished Dependency Resolution
Error: Package: httpd-itk-2.2.22-7.el6.x86_64 (epel)
Requires: httpd >= 2.2
Error: Package: httpd-itk-2.2.22-7.el6.x86_64 (epel)
Requires: libapr-1.so.0()(64bit)
Error: Package: httpd-itk-2.2.22-7.el6.x86_64 (epel)
Requires: libaprutil-1.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Code:
$ sudo rpm -Va --nofiles --nodigest
sudo yum install httpd*
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd-itk.x86_64 0:2.2.22-7.el6 will be installed
--> Processing Dependency: httpd >= 2.2 for package: httpd-itk-2.2.22-7.el6.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-itk-2.2.22-7.el6.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-itk-2.2.22-7.el6.x86_64
--> Finished Dependency Resolution
Error: Package: httpd-itk-2.2.22-7.el6.x86_64 (epel)
Requires: httpd >= 2.2
Error: Package: httpd-itk-2.2.22-7.el6.x86_64 (epel)
Requires: libapr-1.so.0()(64bit)
Error: Package: httpd-itk-2.2.22-7.el6.x86_64 (epel)
Requires: libaprutil-1.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
$ sudo yum install httpd* --skip-broken
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd-itk.x86_64 0:2.2.22-7.el6 will be installed
--> Processing Dependency: httpd >= 2.2 for package: httpd-itk-2.2.22-7.el6.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-itk-2.2.22-7.el6.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-itk-2.2.22-7.el6.x86_64
Packages skipped because of dependency problems:
httpd-itk-2.2.22-7.el6.x86_64 from epel
$
Code:
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
$
I looked further in yum.conf to see if httpd is excluded but nope
$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
proxy=http://10.0.100.20:8888
Code:
ls /etc/yum.repos.d/
epel.repo epel-testing.repo redhat-rhui-client-config.repo redhat-rhui.repo rhel-source.repo rhui-load-balancers.conf scl.repo
$ cat /etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Last but not least, I did try
Code:
sudo yum --disableexcludes=all install httpd
Still no charm, I have no idea what is the issue for me not to be able to install httpd !!
Please assist me Thanks.
|