Main Menu

httpd-2.2.13-1.i586 rpm for fedora 11

This is my first experience ever in building RPM’s, so please bear with me if there are problems with these files.? I assume NO responsibility or liability if you choose to use these files.? They worked for me, but I make no guarantees as to their suitability for your needs.? Use at your own risk.

Many of my servers were being tagged as out of compliance with PCI due to the recent problems reported when apache httpd version 2.2.13 was released.? I figured rather than custom compiling for myself on each server, I would try and build the rpm’s to see if I could make them work across multiple systems.

Here are the files I’ve compiled for Fedora 11. (Fedora 9 can be found here).? debuginfo is probably not needed and I have removed it on my install.

https://www.techdruid.com/rpms/fedora11/httpd-2.2.13-1.i586.rpm
https://www.techdruid.com/rpms/fedora11/httpd-debuginfo-2.2.13-1.i586.rpm
https://www.techdruid.com/rpms/fedora11/httpd-devel-2.2.13-1.i586.rpm
https://www.techdruid.com/rpms/fedora11/httpd-manual-2.2.13-1.i586.rpm
https://www.techdruid.com/rpms/fedora11/mod_ssl-2.2.13-1.i586.rpm

And now for all the details of how I built and installed these files.? This document to be modified/edited hopefully in the next few days to improve it.? These are EXTREMELY LOOSE BUILD DETAILS without many comments (Not complete instructions).? I’m assuming a lot about your linux knowledge.? For example, that you are logged in as your personal USER account instead of root during “rpmbuild”, then logged in as a super user to install the? RPM’s.

 


Instructions Followed
http://www.g-loaded.eu/2006/04/05/how-to-build-rpm-packages-on-fedora/

# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/kernel-2.6.29.6-217.2.3.fc11.i586.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/kernel-headers-2.6.29.6-217.2.3.fc11.i586.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/kernel-firmware-2.6.29.6-217.2.3.fc11.noarch.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/kernel-devel-2.6.29.6-217.2.3.fc11.i586.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/rpm-build-4.7.1-1.fc11.i586.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/elfutils-0.141-1.fc11.i586.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/rpm-4.7.1-1.fc11.i586.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/elfutils-libs-0.141-1.fc11.i586.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/rpm-libs-4.7.1-1.fc11.i586.rpm
# wget http://linux.nssl.noaa.gov/fedora/linux/updates/11/i386/rpm-python-4.7.1-1.fc11.i586.rpm

# rpm -Uvh *.rpm
# yum groupinstall “Development Tools”

—– On to the Next Step? ——-

$ wget http://mirrors.sirium.net/pub/apache/httpd/httpd-2.2.13.tar.gz

$ rpmbuild -bb –clean httpd.spec
error: line 63: Unknown tag: Serial: 1

Per Conversation Here…
http://www.opennms.org/~ranger/irc_logs/public/opennms-2005-06-16.log

Commented out “Serial: 1l” at line 63
Later replaced with “Epoch: 1”

——

error: Failed build dependencies
# yum install apr-devel apr-util-devel openldap-devel db4-devel expat-devel apr-util

Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
apr-util = 1.3.7-3.fc10 is needed by (installed) apr-util-ldap-1.3.7-3.fc10.i386

# rpm -qa | grep apr-util
apr-util-1.3.7-3.fc10.i386
apr-util-ldap-1.3.7-3.fc10.i386

oops… old versions

# wget http://mirrors.kernel.org/fedora//updates/11/i386/apr-util-1.3.9-1.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//updates/11/i386/apr-util-ldap-1.3.9-1.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//updates/11/i386/apr-util-devel-1.3.9-1.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//updates/11/i386/apr-devel-1.3.8-1.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//updates/11/i386/apr-1.3.8-1.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//releases/11/Fedora/i386/os/Packages/openldap-2.4.15-3.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//releases/11/Fedora/i386/os/Packages/expat-devel-2.0.1-6.i586.rpm
# wget http://mirrors.kernel.org/fedora//releases/11/Fedora/i386/os/Packages/db4-devel-4.7.25-11.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//releases/11/Fedora/i386/os/Packages/openldap-devel-2.4.15-3.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//releases/11/Fedora/i386/os/Packages/cyrus-sasl-devel-2.1.22-22.fc11.i586.rpm
# wget http://mirrors.kernel.org/fedora//releases/11/Fedora/i386/os/Packages/db4-cxx-4.7.25-11.fc11.i586.rpm

# rpm -Uvh *.rpm

————-
$ rpmbuild -bb –clean httpd.spec

——— log detail —

Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/USER/rpmbuild/BUILDROOT/httpd-2.2.13-1.i386
Wrote: /home/USER/rpmbuild/RPMS/i586/httpd-2.2.13-1.i586.rpm
Wrote: /home/USER/rpmbuild/RPMS/i586/httpd-devel-2.2.13-1.i586.rpm
Wrote: /home/USER/rpmbuild/RPMS/i586/httpd-manual-2.2.13-1.i586.rpm
Wrote: /home/USER/rpmbuild/RPMS/i586/mod_ssl-2.2.13-1.i586.rpm
Wrote: /home/USER/rpmbuild/RPMS/i586/httpd-debuginfo-2.2.13-1.i586.rpm

———-

# su -l
# rpm -Uvh /home/USER/rpmbuild/RPMS/i586/*.rpm

error: Failed dependencies:
??????? /usr/share/magic.mime is needed by httpd-2.2.13-1.i586

# yum update
# yum clean all

———–
Stopping httpd:??????????????????????????????????????????? [FAILED]
Starting httpd: httpd: Syntax error on line 196 of /etc/httpd/conf/httpd.conf: Cannot
?load /etc/httpd/modules/mod_file_cache.so into server: /etc/httpd/modules/mod_file_cache.so:
?cannot open shared object file: No such file or directory
?????????????????????????????????????????????????????????? [FAILED]

# service httpd start
Starting httpd: httpd: Syntax error on line 197 of /etc/httpd/conf/httpd.conf: Cannot
?load /etc/httpd/modules/mod_mem_cache.so into server: /etc/httpd/modules/mod_mem_cache.so:
?cannot open shared object file: No such file or directory
?????????????????????????????????????????????????????????? [FAILED]


Had to comment out lines 196 & 197 from httpd.conf to resolve the above errors that cropped up while building the RPMs.? I’m sure I messed something up.

 

in httpd.spec replace this line
Requires: apr >= 1.2.0, apr-util >= 1.2.0, gawk, /usr/share/magic.mime, /usr/bin/find, openldap
? with
Requires: apr >= 1.2.0, apr-util >= 1.2.0, gawk, /usr/bin/find, openldap


 

$ ls httpd-preMOD/ -ls
total 6800
1140 -rw-r–r– 1 user user 1159715 2009-08-14 15:22 httpd-2.2.13-1.i586.rpm
3144 -rw-r–r– 1 user user 3214321 2009-08-14 15:22 httpd-debuginfo-2.2.13-1.i586.rpm
?160 -rw-r–r– 1 user user? 156266 2009-08-14 15:22 httpd-devel-2.2.13-1.i586.rpm
2268 -rw-r–r– 1 user user 2316613 2009-08-14 15:22 httpd-manual-2.2.13-1.i586.rpm
? 88 -rw-r–r– 1 user user?? 85357 2009-08-14 15:22 mod_ssl-2.2.13-1.i586.rpm
$ ls -ls rpmbuild/RPMS/i586/
total 6800
1140 -rw-r–r– 1 user user 1159628 2009-08-14 15:24 httpd-2.2.13-1.i586.rpm
3144 -rw-r–r– 1 user user 3214379 2009-08-14 15:24 httpd-debuginfo-2.2.13-1.i586.rpm
?160 -rw-r–r– 1 user user? 156261 2009-08-14 15:24 httpd-devel-2.2.13-1.i586.rpm
2268 -rw-r–r– 1 user user 2316639 2009-08-14 15:24 httpd-manual-2.2.13-1.i586.rpm
? 88 -rw-r–r– 1 user user?? 85358 2009-08-14 15:24 mod_ssl-2.2.13-1.i586.rpm


Preparing…??????????????? ########################################### [100%]
??????? package mod_ssl-1:2.2.11-8.i586 (which is newer than mod_ssl-2.2.13-1.i586) is already installed
??????? file /usr/share/man/man1/htdbm.1.gz from install of httpd-2.2.13-1.i586 conflicts with file from package httpd-tools-2.2.11-8.i586


# rpm -Uvh –force /home/USER/rpmbuild/RPMS/i586/*.rpm
Preparing…??????????????? ########################################### [100%]
?? 1:httpd????????????????? warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew
########################################### [ 20%]
?? 2:httpd-debuginfo??????? ########################################### [ 40%]
?? 3:httpd-devel??????????? ########################################### [ 60%]
?? 4:httpd-manual?????????? ########################################### [ 80%]
?? 5:mod_ssl??????????????? ########################################### [100%]
warning: /etc/httpd/conf.d/ssl.conf saved as /etc/httpd/conf.d/ssl.conf.rpmsave
———
# service httpd restart
Stopping httpd:??????????????????????????????????????????? [? OK? ]
Starting httpd: httpd: Syntax error on line 151 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_authn_alias.so into server: /etc/httpd/modules/mod_authn_alias.so: cannot open shared object file: No such file or directory
?????????????????????????????????????????????????????????? [FAILED]


Had to comment out line 151 in httpd.conf to resolve above issue.

# rpm -e httpd-tools
# rpm -e httpd-debuginfo

 

Comments are closed.

Powered by WordPress. Designed by WooThemes