Re: about modify source code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

gogo wrote:
> hello,all,
> 
>     When i use ./configure;make;make install to install apache ,some modules are installed by default. I want to known which file can i modify can prevent default modules were built in?
> 
> Thanks

>From memory, this is usually done with options supplied to 'configure'.
Do a './configure --help' to see the options available for use with
'configure'.

You may consider writing a little shell script with your 'configure'
line within it, and execute the shell script to configure your apache
build. Saves you having to remember it every time, and acts as an
archive of how you built it for future reference.

For example, in the shell script you could have something like:

./configure \
	--prefix=/usr/local \
	--enable-module=so \
	--enable-module=most \
	--enable-shared=max \
	...

(note that the backslash character on the end of each line is just a
line continuation character.)

Alternatively, you can build apache just with './configure', and modify
your httpd.conf file so that only the modules you require are loaded. To
do this, you would need to be enabling the modules as 'shared', not
statically compiled in to the httpd binary. I can't remember whether
modules are static or shared by default -- the 'INSTALL' file that comes
with the source will probably tell you.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux