OK.? this httpd build of rpm’s for Fedora 9 went a little smoother than the one for Fedora 11.? Probably because of some inconsistencies in my Fedora 11 install.
This is only my second experience with 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 9.? debuginfo is probably not needed and I have removed it on my install.
The following original RPM’s were created without the “authn_alias” module and caused an error which is detailed near the bottom of this page.? They are included here only for reference of the original files I posted (and I’ve removed the links to them.? Please use the linked to files above which include the authn_alias module.
https://www.techdruid.com/rpms/fedora9/httpd-2.2.13-1.i386.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.
$ cat /etc/issue
Fedora release 9 (Sulphur)
Kernel r on an m (l)
$ su -l
# yum update
No Packages marked for Update
# yum groupinstall “Development Tools”
Dependencies Resolved
=====
Install???? 51 Package(s)????????
Update?????? 0 Package(s)????????
Remove?????? 0 Package(s)????????
Total download size: 119 M
Is this ok [y/N]: y
Installed:
? — SNIPPED —
Dependency Installed:
? — SNIPPED —
Complete!
# yum install rpmdevtools
Dependencies Resolved
=====
Install????? 3 Package(s)????????
Update?????? 0 Package(s)????????
Remove?????? 0 Package(s)????????
Total download size: 223 k
Is this ok [y/N]: y
Complete!
$ rpmdev-setuptree
$ wget wget http://mirrors.sirium.net/pub/apache/httpd/httpd-2.2.13.tar.gz
$ cp ~/httpd-2.2.13.tar.gz ~/rpm/SOURCES/
$ tar -xzf httpd-2.2.13.tar.gz
$ cd httpd-2.2.13
$ rpmbuild -bb –clean httpd.spec
error: Legacy syntax is unsupported: serial
error: line 63: Unknown tag: Serial: 1
Per Conversation Here…
http://www.opennms.org/~ranger/irc_logs/public/opennms-2005-06-16.log
Replaced “Serial: 1” with “Epoch: 1” at line 63
$ rpmbuild -bb –clean httpd.spec
error: Failed build dependencies:
??????? apr-devel is needed by httpd-2.2.13-1.i386
??????? apr-util-devel is needed by httpd-2.2.13-1.i386
??????? openldap-devel is needed by httpd-2.2.13-1.i386
??????? db4-devel is needed by httpd-2.2.13-1.i386
??????? expat-devel is needed by httpd-2.2.13-1.i386
??????? /usr/bin/apr-1-config is needed by httpd-2.2.13-1.i386
??????? /usr/bin/apu-1-config is needed by httpd-2.2.13-1.i386
??????? openssl-devel is needed by httpd-2.2.13-1.i386
$ su -l
# yum install apr-devel apr-util-devel openldap-devel db4-devel expat-devel openssl-devel
Dependencies Resolved
=====
Install???? 15 Package(s)????????
Update?????? 0 Package(s)????????
Remove?????? 0 Package(s)????????
Total download size: 14 M
Is this ok [y/N]: y
Installed:
? apr-devel.i386 0:1.2.12-2.fc9?????? apr-util-devel.i386 0:1.2.12-7.fc9?????? db4-devel.i386 0:4.6.21-7.fc9????????????
? expat-devel.i386 0:2.0.1-5????????? openldap-devel.i386 0:2.4.10-2.fc9?????? openssl-devel.i386 0:0.9.8g-9.14.fc9?????
Dependency Installed:
? cyrus-sasl-devel.i386 0:2.1.22-15.fc9? db4-cxx.i386 0:4.6.21-7.fc9?????????? device-mapper-devel.i386 0:1.02.24-11.fc9
? e2fsprogs-devel.i386 0:1.41.3-2.fc9??? keyutils-libs-devel.i386 0:1.2-3.fc9? krb5-devel.i386 0:1.6.3-16.fc9???????????
? libselinux-devel.i386 0:2.0.67-4.fc9?? libsepol-devel.i386 0:2.0.32-1.fc9??? zlib-devel.i386 0:1.2.3-18.fc9???????????
Complete!
$ rpmbuild -bb –clean httpd.spec
— OUTPUT —
Wrote: /home/USER/rpm/RPMS/i386/httpd-2.2.13-1.i386.rpm
Wrote: /home/USER/rpm/RPMS/i386/httpd-devel-2.2.13-1.i386.rpm
Wrote: /home/USER/rpm/RPMS/i386/httpd-manual-2.2.13-1.i386.rpm
Wrote: /home/USER/rpm/RPMS/i386/mod_ssl-2.2.13-1.i386.rpm
Wrote: /home/USER/rpm/RPMS/i386/httpd-debuginfo-2.2.13-1.i386.rpm
— END OF OUTPUT —
$ su -l
# rpm -Uvh httpd-2.2.13-1.i386.rpm httpd-manual-2.2.13-1.i386.rpm mod_ssl-2.2.13-1.i386.rpm
Preparing…??????????????? ########################################### [100%]
??????? file /usr/share/man/man1/htdbm.1.gz from install of httpd-2.2.13-1.i386 conflicts with file from package httpd-tools-2.2.9-1.fc9.i386
# rpm -Uvh –force httpd-2.2.13-1.i386.rpm httpd-manual-2.2.13-1.i386.rpm mod_ssl-2.2.13-1.i386.rpm
Preparing…??????????????? ########################################### [100%]
?? 1:httpd????????????????? warning: /etc/httpd/conf/httpd.conf created as /etc/httpd/conf/httpd.conf.rpmnew
########################################### [ 33%]
?? 2:httpd-manual?????????? ########################################### [ 67%]
?? 3:mod_ssl??????????????? ########################################### [100%]
warning: /etc/httpd/conf.d/manual.conf saved as /etc/httpd/conf.d/manual.conf.rpmsave
warning: /etc/httpd/conf.d/ssl.conf saved as /etc/httpd/conf.d/ssl.conf.rpmsave
# cp /etc/httpd/conf.d/ssl.conf.rpmsave /etc/httpd/conf.d/ssl.conf
# rpm -e httpd-tools
# 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]
Commented out line 151 in /etc/httpd/conf/httpd.conf file
# service httpd start
I’m in business!
No comments yet.