Recompiling Redhat Apache

A great thread on how to customize suexec--docroot (useful for guys running VirtualMin) and don't know what they are doing... like me!

Blatantly ripped from this URL:
http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_20783705.html

Accepted Answer from heskyttberg
Date: 10/31/2003 07:32AM PST
Grade: A
Accepted Answer

Hi!

Well you do that with this parameters to configure:
--enable-mods-shared=all

That will make all moudules shared, so you can load/unload them just like with the readhat package.

But instead of doing it lke this I'd recomend you to do this.
Download apache2-x.x.x.src.rpm.
do rpm -ivh apache2-source
Now go to /usr/src/redhat
edit the apache2.spec under the SPECS dir.
Add the suexec parameters.

rpmbuild -bs SPECS/apache2.spec
Now check under the SRPMS dir, you should have a new source rpm there.

rpmbuild --rebuild SRPMS/nya_apache_source.rpm

Check under RPMS dir, if no errors you have a new RPM there.
just do:rpm -ivh RPMS/apche2-x.x.x.i386.rpm

This way you'll have an easier time if you later want to upgrade apache.

Regards
/Hasse

Related Scribbles:
  • Web Servers
  • System Administration
  • Web Hosting


  • ID: 541
    Author:
    leonard
    Date Updated:
    2004-09-05 00:04:50
    Date Created:
    2004-09-05 00:04:50

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Recompiling Redhat Apache
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.