[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

SUMMARY: increasing maxclients/hard server limit in apache



Apologies for the delayed summary.

The best answer from Mark Street:
First INSTALL the SRC.RPM, tweak the httpd.h file, then rebuild it.

rpm -ivh apache....src.rpm

go to /usr/src/redhat/SRC/ tweak it.

Then go to the /usr/src/redhat/SPEC dir and run

rpm -bb apache.spec    on the spec file.

BOOM, custom RPM in /usr/src/redhat/RPMS/   Consistency intact.

I also asked him if I could just tweak the spec file instead and he
replied:
I would either create a patch file of your own OR UNtar the tarball
found in 
SOURCES, go in tweak the source, tar it back up and then run rpm -bb on
the 
spec file.  Tweaking the spec file isn't going to do it I'm afraid....

>From the rpmbuild manpage in RedHat 8..... very similar to 7.3 rpm
command

I would check your rpm manpage for specifics.... or do a search on
google for 
rebuilding rpm from src source. 

Original question:
> I'm stumped on this, mainly because I'm trying to do it a certain way.
> I have a box running Redhat 7.3 with apache rpms (1.3.27-2).
> I would like to increase the number of maxclients, which can be
> configured in httpd.conf, but on linux is dependent on the
> HARD_SERVER_LIMIT in httpd.h, which is 256.
> I don't want to fetch source and rebuild a fresh copy because 
> of future upgrades and consistency with other boxes.  Also, I want 
> to make sure whatever options were included in the rpm build are 
> still present in the new binary.
> 
> I *should* be able to grab the SRPM and do:
> rpm --upgrade apache-XXX
> 
> This does unpack the srpm and rebuild apache, however, it also deletes
> the source tree when it's done, so I cannot edit httpd.h.
> 
> I need to figure out how to either have it leave the source alone so I
> can edit httpd.h and rebuild, or, how I can pass a compile-time
> directive to the rpm command above (something like
> -DHARD_SERVER_LIMIT="256")
> 
> If there's another way, I'm open to that too.
> 
> Thanks.
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers@linuxmanagers.org
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers

[Home]     [Kernel List]     [Linux SCSI]     [Video 4 Linux]     [Linux Admin]     [Yosemite News]     [Motherboards]

Powered by Linux