LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 10-25-2014, 11:22 AM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Rep: Reputation: 3
Should I update Apache from 2.2 to 2.4 on CentOS 6.5?


I am using Apache 2.2 on CentOS 6.5 on a box I am using as a web server. I get the following message from rkhunter.

Code:
Warning: Application 'httpd', version '2.2.15', is out of date, and possibly a security risk.
I get the following message from http://sitecheck.sucuri.net/

Code:
Outdated Web Server Apache Found	Vulnerabilities on Apache 2.2	Apache/2.2.15
My initial thought was to update as suggested. However I found this on stackexchange. I have been told that updating from the souce could lead to incompatibilities that could make Apache non-functional on my system. Also, when I checked here and here, their directions included getting the source using wget which always returned a 404 error.

Since CentOS does not provide an update for Apache when I update/upgrade CentOS, I am wondering whether upgrading Apache is a good idea. OTOH, if I do not, I may get a bad reputation from sites like sucuri.
 
Old 10-26-2014, 12:40 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

I tried and got the same error you did-

Code:
[bluecat@localhost ~]$ cd /usr/src
[bluecat@localhost src]$ wget http://apache.mirrors.tds.net//httpd/httpd-2.4.4.tar.gz
--2014-10-26 01:21:25--  http://apache.mirrors.tds.net//httpd/httpd-2.4.4.tar.gz
Resolving apache.mirrors.tds.net (apache.mirrors.tds.net)... 216.165.129.134
Connecting to apache.mirrors.tds.net (apache.mirrors.tds.net)|216.165.129.134|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-10-26 01:21:25 ERROR 404: Not Found.

[bluecat@localhost src]$ tar zxvf httpd-2.4.4.tar.gz
I'm not sure what's best for you to try.
Even if you install the tar.gz file directly the man in the turtorial say that could be
a bit tricky to come by on CentOS 6.x, without rebuilding them too.

Even if you find the RPM you'd still have to rebuild and recompile.
That could be recursive & frustrating. (least it's been my experience)

I'm not sure if it's a good idea to upgrade Apache or not. It seems complicated even after I read all of the documentation that you linked.

***I'd wait for a member with lot's of experience with Apache and see what they can advise you on.***
 
Old 10-26-2014, 07:38 AM   #3
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Thanks for replying.

Quote:
Originally Posted by Ztcoracat View Post
Hi:

I tried and got the same error you did-

Code:
[bluecat@localhost ~]$ cd /usr/src
[bluecat@localhost src]$ wget http://apache.mirrors.tds.net//httpd/httpd-2.4.4.tar.gz
--2014-10-26 01:21:25--  http://apache.mirrors.tds.net//httpd/httpd-2.4.4.tar.gz
Resolving apache.mirrors.tds.net (apache.mirrors.tds.net)... 216.165.129.134
Connecting to apache.mirrors.tds.net (apache.mirrors.tds.net)|216.165.129.134|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-10-26 01:21:25 ERROR 404: Not Found.

[bluecat@localhost src]$ tar zxvf httpd-2.4.4.tar.gz
I'm not sure what's best for you to try.
Even if you install the tar.gz file directly the man in the turtorial say that could be
a bit tricky to come by on CentOS 6.x, without rebuilding them too.

Even if you find the RPM you'd still have to rebuild and recompile.
That could be recursive & frustrating. (least it's been my experience)

I'm not sure if it's a good idea to upgrade Apache or not. It seems complicated even after I read all of the documentation that you linked.

***I'd wait for a member with lot's of experience with Apache and see what they can advise you on.***
I saw the following link. http://wiki.centos.org/FAQ/General#h...3ca4b096cbff2f

I also ran


Code:
rpm -q --changelog httpd | less
and got

Code:
* Wed Jul 23 2014 Johnny Hughes <johnny@centos.org> - 2.2.15-31.el6.centos
- Roll in CentOS Branding

* Fri Jul 18 2014 Jan Kaluza <jkaluza@redhat.com> - 2.2.15-31
- mod_cgid: add security fix for CVE-2014-0231
- mod_deflate: add security fix for CVE-2014-0118
- mod_status: add security fix for CVE-2014-0226

* Thu Mar 20 2014 Jan Kaluza <jkaluza@redhat.com> - 2.2.15-30
- mod_dav: add security fix for CVE-2013-6438 (#1078174)
- mod_log_config: add security fix for CVE-2014-0098 (#1078174)
So it appears that I have Apache updates more recent than the links I supplied about updating to Apache 2.4. It appears that Apache 2.4.10 came out 2014-07-21, just before my last update. So it appears I am up to date. So maybe the warnings from rkhunter and sucuri be false alarms? I still get those warning after restarting Apache.
 
Old 10-26-2014, 08:01 AM   #4
grubby
LQ Newbie
 
Registered: Oct 2014
Distribution: Centos 6.5
Posts: 16

Rep: Reputation: Disabled
Could be security fixes are backported into 2.2 by Redhat, and consequently in Centos.
So you're kinda running a sort 2.2+ version as it were.
rkhunter probably only looks at the version number of the rpm or what the binary gives and does not take these patches into account.

If you update your apache with the official updates from centos, I think it's safe to assume you're as safe as you can be and can ignore the rkunter message.

Not sure what you can do about the sucuri problem though.

Last edited by grubby; 10-26-2014 at 08:03 AM.
 
1 members found this post helpful.
Old 10-26-2014, 08:54 AM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by grubby View Post
Could be security fixes are backported into 2.2 by Redhat, and consequently in Centos.
So you're kinda running a sort 2.2+ version as it were.
rkhunter probably only looks at the version number of the rpm or what the binary gives and does not take these patches into account.

If you update your apache with the official updates from centos, I think it's safe to assume you're as safe as you can be and can ignore the rkunter message.

Not sure what you can do about the sucuri problem though.
Thanks for chiming in grubby-
Is it possible to get a false positive with rkhunter-
When I ran rkhunter a long time ago it gave me a false positive over a PDF I downloaded.
 
Old 10-26-2014, 09:12 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
I still get those warning after restarting Apache.
I don't get why your still getting those warning's-
I tried to find out why but I just kept running into a brick wall- Sorry OtagoHarbour; I gave it my best go-

This Apache Server Project Page confirms that the security vulnerabilities were fixed in released versions of Apache httpd 2.2.
http://httpd.apache.org/security/vul...lities_22.html
 
1 members found this post helpful.
Old 10-26-2014, 12:38 PM   #7
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by grubby View Post
Could be security fixes are backported into 2.2 by Redhat, and consequently in Centos.
If you update your apache with the official updates from centos, I think it's safe to assume you're as safe as you can be and can ignore the rkunter message.

Not sure what you can do about the sucuri problem though.
Thanks very much for your reply. I will collect as much evidence as I can and, if I decide that it is a false alarm, I will contact Sucuri with the evidence for my decision.

Thanks,
OH
 
Old 10-26-2014, 12:47 PM   #8
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Ztcoracat View Post
Thanks for chiming in grubby-
Is it possible to get a false positive with rkhunter-
When I ran rkhunter a long time ago it gave me a false positive over a PDF I downloaded.
I doubt there is any malware detection system that does not have false positives and false negatives. I think they just analyze indicators are do a trade-off. OTOH I have heard of APTs being disguised as, or contained in, legitimate PDFs. E.g. http://www.mcafee.com/us/resources/w...st-threats.pdf. So I would not say that something is a false alarm just because it is a PDF.
 
Old 10-26-2014, 01:35 PM   #9
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Ztcoracat View Post
I don't get why your still getting those warning's-
I tried to find out why but I just kept running into a brick wall- Sorry OtagoHarbour; I gave it my best go-

This Apache Server Project Page confirms that the security vulnerabilities were fixed in released versions of Apache httpd 2.2.
http://httpd.apache.org/security/vul...lities_22.html
Thank you for the link. One thing that confuses me is that the link suggests I should be up to version 2.2.27 by now. However

Code:
httpd -v
returns
Code:
Server version: Apache/2.2.15 (Unix)
Server built:   Jul 23 2014 14:15:00
My thoughts are that CentOS is likely updating Apache 2.2.15 rather than moving to a new (sub)version. Your link says that the latest fix affects Apache 2.2.15.

Thanks again,
OH

Last edited by OtagoHarbour; 10-26-2014 at 01:47 PM.
 
Old 10-26-2014, 02:04 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
redhat will never change MAJOR versions of software
but they will backport security updates and bugfixes
so the updates for the current OLD 2.2???? are in whatever is in the rhn repo

NOW
( my opinion so...)
one should build EVERYTHING for the apache stack from source for the first 6 to 12 installs
That way one LEARNS!!! how to set it up and configure everything
then use the rpm or deb to save 30 min. off the install

for running production servers USE the RPM for rhel

that is the BEST way to keep uptime UP

Apache2.2 is aging
you really should be "thinking" of migrating to 2.4

but you can wait until Apache 2.6 comes out
you do not have to migrate TODAY
in the next year sometime -- YES
 
1 members found this post helpful.
Old 10-27-2014, 08:57 PM   #11
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by John VV View Post
redhat will never change MAJOR versions of software
but they will backport security updates and bugfixes
so the updates for the current OLD 2.2???? are in whatever is in the rhn repo

NOW
( my opinion so...)
one should build EVERYTHING for the apache stack from source for the first 6 to 12 installs
That way one LEARNS!!! how to set it up and configure everything
then use the rpm or deb to save 30 min. off the install

for running production servers USE the RPM for rhel

that is the BEST way to keep uptime UP

Apache2.2 is aging
you really should be "thinking" of migrating to 2.4

but you can wait until Apache 2.6 comes out
you do not have to migrate TODAY
in the next year sometime -- YES
Thank you for your reply. I do like the idea of backporting in that it is a way of fixing security flaws without adding possibly buggy new features that I don't need.

What would be the advantage of updating to 2.6? Currently, I use Apache as a web server with PHP and MySQL.

Thanks,
OH
 
  


Reply

Tags
apache, centos



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Update a CentOS 5 virtual server to CentOS 5.6 dazdaz Red Hat 4 04-10-2011 05:02 AM
[SOLVED] centos 5.4 need to update apache/httpd hockeyman_102 Linux - Security 7 03-30-2010 12:47 PM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:01 AM.

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