Ask Your Question
0

How Can I update my apache to 2.4.2?

asked 2012-08-09 23:23:36 -0500

jrestiva gravatar image

We use Fedora 17 for our web server and we are currently going through PCI audit. We can't seem to pass our external penetration scan test because the scan result says that our httpd (version 2.2.22) has current vulnerabilities and we need to update to version 2.4.2. However fedora 17 does not find this version when I try to do a yum update..How can I update the apache so I can pass this scan??

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
2

answered 2012-08-12 02:31:55 -0500

Remi gravatar image

updated 2012-08-12 02:33:05 -0500

apache 2.4 is a major version which introduce a lot of changes, especially in the configuration management and right access. There is no plan to have it in fedora 17, it will be in fedora 18.

If you really want this version, you can try RPM available in my "dev" repository which provides backport of httpd and most of mod_* packages

See : http://rpms.famillecollet.com/fedora/17/devs/x86_64/repoview/

edit flag offensive delete link more
1

answered 2012-08-11 06:06:50 -0500

FranciscoD_ gravatar image

Please do not attempt to build from source. Use the package management capabilities that rpm provides. I see that 2.4 has been built for F18, F19. There are two things you can do:

  1. Request the maintainers to update the package for Fedora 17 here on our bugzilla.
  2. Build yourself an rpm for F17 using the srpm for F18. I'll describe how to do this:

Set up your build environment as described here: http://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package#Development_environment

Grab the latest available srpm from here and download it into the ~/rpmbuild/SRPMS directory

Install the srpm rpm -Uvh <srpm> This will unpack the srpm and place the SPEC file in ~/rpmbuild/SPECS

Install the BuildRequires: Open the SPEC file in your favourite text editor, and install all the packages listed as "BuildRequires:" using yum:

su -c 'yum install package1 package2 package3...'

Build yourself an rpm: rpmbuild -ba <srpm>

The resulting rpm will be in ~/rpmbuild/RPMS/

You can then install the rpm using yum:

su -c 'yum localinstall *path to new rpm*'
edit flag offensive delete link more
0

answered 2012-08-12 02:31:22 -0500

Remi gravatar image

apache 2.4 if a major version which introduce a lot of changes, especially in the configuration management and right access. There is no plan to have it in fedora 17, it will be in fedora 18.

If you really want this version, you can try RPM available in my "dev" repository which provides backport of httpd and most of mod_* packages

See : http://rpms.famillecollet.com/fedora/17/devs/x86_64/repoview/

edit flag offensive delete link more
-1

answered 2012-08-10 01:05:11 -0500

Akshay gravatar image

httpd (.2.22-4.fc17) is the only latest version in fedora repository right now,for 2.4 you need to compile it from source or make a binary from source

Using Apache With RPM Based Systems (Redhat / CentOS / Fedora)

edit flag offensive delete link more

Comments

@Akshay, try and use the fedora docs for building stuff. We know they work. We have no guarantee for other docs.

FranciscoD_ gravatar imageFranciscoD_ ( 2012-08-11 06:08:09 -0500 )edit

Not to mention that changes the package maintainers have made to make the package suitable for Fedora will not be present in non fedora spec files!

FranciscoD_ gravatar imageFranciscoD_ ( 2012-08-11 06:08:44 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-08-09 23:23:36 -0500

Seen: 5,035 times

Last updated: Aug 12 '12