LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2015, 09:01 AM   #1
rookie5
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Rep: Reputation: Disabled
installing httpd services on centos 6.5


Hi guys,

I am having issues installing httpd services on my centos 6 server.


[root@localhost yum.repos.d]# yum install -y httpd
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ftp.is.co.za
* extras: ftp.is.co.za
* updates: ftp.is.co.za
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-39.el6.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ============================================================================================
Package Arch Version Repository Size
==================================================================================================== ============================================================================================
Installing:
httpd x86_64 2.2.15-39.el6.centos base 825 k

Transaction Summary
==================================================================================================== ============================================================================================
Install 1 Package(s)

Total download size: 825 k
Installed size: 2.9 M
Downloading Packages:
httpd-2.2.15-39.el6.centos.x86_64.rpm | 825 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd-2.2.15-39.el6.centos.x86_64 1/1
Error unpacking rpm package httpd-2.2.15-39.el6.centos.x86_64
error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename
Verifying : httpd-2.2.15-39.el6.centos.x86_64 1/1

Failed:
httpd.x86_64 0:2.2.15-39.el6.centos

Complete!
 
Old 08-06-2015, 09:49 AM   #2
auge
Member
 
Registered: May 2002
Location: Germany
Distribution: CentOS, Debian, LFS
Posts: 100
Blog Entries: 1

Rep: Reputation: Disabled
Do an "ls -al /etc/httpd/logs && ls -al /var/log/httpd" please and tell what it shows. Most likely someone killed a link there.
 
Old 08-06-2015, 12:09 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
also be aware that 6.5 is NOT supported
ONLY the current minor versions are
CentOS 5.11 , 6.6, and 7.1

and very soon 6.6 will be unsupported when 6.7 is releases


please check YOUR installed version
Code:
su -
cat /etc/redhat-release
and the output of this

Code:
su -
yum repolist all



also BEFORE!!! you get into the habit of using the VERY dangerous " YES TO EVERYTHING!!!!! ( -y ) option "

do not use it unless you KNOW with 100 percent CERTAINTY ,EXACTLY what it will do

you might be in for a very big BAD NEWS SURPRISE if you are not careful
 
1 members found this post helpful.
Old 08-07-2015, 01:21 AM   #4
rookie5
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi John VV,

thanks for the tip on (-y), I have done as u advised, please see below.

[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# yum repolist all
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ftp.is.co.za
* extras: ftp.is.co.za
* updates: ftp.is.co.za
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
repo id repo name status
base CentOS-6 - Base enabled: 6,518
c5-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
extras CentOS-6 - Extras enabled: 38
updates CentOS-6 - Updates enabled: 1,370
repolist: 7,926
[root@localhost ~]#
 
Old 08-07-2015, 04:31 AM   #5
auge
Member
 
Registered: May 2002
Location: Germany
Distribution: CentOS, Debian, LFS
Posts: 100
Blog Entries: 1

Rep: Reputation: Disabled
And how does the repolist fix the broken symlink to the logfile-directory?
 
Old 08-07-2015, 02:30 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
basically on 6.5 you really do NOT install anything
the now one year OUT OF DATE from the VERY LAST UPDATE in the old 6.5 repos is MISSING well a YEARS!!! worth of security updates


if this is a OFFLINE system not connected to the net ( not a big issue)
but if this machine is ONLINE then a very big problem

you are missing a YEARS worth of security updates and fixes

upgrade to 6.6 then install the apache software group
BIG AND BOLD !! i am in the camp that thinks that for the first few LAMP stack installs that you DO EVERYTHING manually and by hand !!!
that way one LEARNS!!! how to set up and configure the Apache software
-- it is a VERY complex bit of software and is VERY easy to set up VERY INSECURELY
-- source builds from the ground up for what apache needs --


but if not then do a LOT of reading

this UPGRADES to 6.6
Code:
su -
yum --releasever=6.6 upgrade
see " yum --help " for the help page
reboot and reinstall third party drivers as needed

then
Code:
su -
yum grouplist
and from that list you should see "web server "
Code:
yum groupinstall "Web Server"
then reboot


then go to http://127.0.0.1:80
and see the Congratulations you installed the Apache web server page

then the HARD PART
setting it up and configuring it and installing a CMS and log stats program and everything else
http://httpd.apache.org/docs/2.4/
( ps. i am partial to the CMS " GeekLog" )

Last edited by John VV; 08-07-2015 at 02:38 PM.
 
Old 08-09-2015, 11:43 AM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
No need for "yum --releasever=6.6 upgrade"...a routine "yum update" will work just fine.

rookie5 - you should always update your system befor installing any software from the repo to avoid conflicts.
 
Old 08-16-2015, 07:20 AM   #8
rookie5
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
thanks guys, but I am still unable to "yum install httpd"

I have ran a yum update, then I ran yum install httpd and i got the below error.

[root@localhost ~]# yum install httpd
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.bitco.co.za
* centosplus: mirror.bitco.co.za
* contrib: mirror.bitco.co.za
* extras: mirror.bitco.co.za
* remi-safe: remi.check-update.co.uk
* updates: mirror.bitco.co.za
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-45.el6.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ============================================================================================
Package Arch Version Repository Size
==================================================================================================== ============================================================================================
Installing:
httpd x86_64 2.2.15-45.el6.centos base 829 k

Transaction Summary
==================================================================================================== ============================================================================================
Install 1 Package(s)

Total download size: 829 k
Installed size: 2.9 M
Is this ok [y/N]: y
Downloading Packages:
httpd-2.2.15-45.el6.centos.x86_64.rpm | 829 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd-2.2.15-45.el6.centos.x86_64 1/1
Error unpacking rpm package httpd-2.2.15-45.el6.centos.x86_64
error: unpacking of archive failed on file /etc/httpd/logs: cpio: rename
Verifying : httpd-2.2.15-45.el6.centos.x86_64 1/1

Failed:
httpd.x86_64 0:2.2.15-45.el6.centos

Complete!
[root@localhost ~]#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Does installing update packages on RHEL and Centos will affecting running services? yohey03 Linux - Server 2 07-27-2014 12:19 AM
installing print services on centos sigint-ninja Linux - Newbie 10 07-18-2012 05:07 PM
Re-installing httpd on CentOS 6.2 dazdaz Red Hat 9 03-19-2012 12:40 AM
Unable to start httpd services epollnac Linux - Newbie 1 06-14-2006 08:41 AM
Question about 'services' (httpd) in redhat 8.0 prism ra Linux - Newbie 3 10-08-2002 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration