Apache HTTP server 2.2.x
1.Accurate time keeping
NTP
###########
2.Perl 5 [OPTIONAL]
For some of the support scripts like apxs or dbmmanage (which are written in Perl) the Perl 5 interpreter is required
###########
3.apr/apr-util >= 1.2
Note
The --with-included-apr option was added in version 2.2.3
# Force the use of the bundled apr/apr-util
./configure --with-included-apr
To build Apache HTTPd against a manually installed apr/apr-util:
# Build and install apr 1.2
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install
# Build and install apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
make
make install
# Configure httpd
cd ../../
./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/
###########
4.Verify GPG md5 sha1
#wget http://www.apache.org/dist/httpd/KEYS
#wget http://mirror.bjtu.edu.cn/apache//httpd/httpd-2.2.19.tar.gz
#wget http://www.apache.org/dist/httpd/httpd-2.2.19.tar.gz.asc
#gpg --import KEYS
#gpg --verify httpd-2.2.19.tar.gz.asc
###########
5. ./configure
(1).the default options(To configure the source tree using all ), simply type ./configure
(2).Apache HTTP Server installation location --prefix
(3).The Apache HTTP Server comes with a Base set of modules included by default
(4).enable other module using the --enable-module option
http://httpd.apache.org/docs/2.2/mod/
(5).shared objects (DSOs) module --enable-module=shared
######
DSO modules may be compiled at the time the server is built, or they may be compiled and added at a later time using the Apache Extension Tool (apxs).
######
A module named mod_so which must be statically compiled into the Apache core
######
After a module is compiled into a DSO named mod_foo.so you can use mod_so's LoadModule command in your httpd.conf file to load this module at server startup or restart.
######–
--enable-so的意思是说
让apache 核心装载DSO,但是不实际编译任何动态模块
######
--enable-ModuleName的意思是说 编译并包含模块ModuleName
######
--enable-ModuleName=shared 的意思是说将这个模块编译成动态的
######
上面中 –enable-mods-shared=most的意思是说 动态的编译进来大多数的模块
而 –enable-mods-shared=all是指动态的编译所有的模块
如果把-shared去掉,就是静态的编译了
http://blog.csdn.net/phphot/article/details/2715016
(6).disable Base modules --disable-module option
http://httpd.apache.org/docs/2.2/programs/configure.html
(7).--with-mpm=worker
http://liujiesmart.iteye.com/blog/636151
(8).usefull ./configure options
####### Modules, disabled by default check (http://httpd.apache.org/docs/2.2/programs/configure.html)
Options Default
--prefix=PREFIX /usr/local/apache2
####### --enable-mods-shared=MODULE-LIST
#####--enable-mods-shared=all does not actually build all modules
ex:--enable-mods-shared="all ssl ldap cache proxy authn_alias mem_cache"
参考资料:
http://iuscommunity.org/Repos
http://os.51cto.com/art/201103/248258.htm
http://blogold.chinaunix.net/u2/73129/showart_1674161.html
http://os.51cto.com/art/201103/248420.htm
http://os.51cto.com/art/201103/250276.htm
http://os.51cto.com/art/201103/247916.htm
http://whxhz.iteye.com/blog/1084586
http://bbs.chinaunix.net/viewthread.php?tid=1268156
http://tuxlite.com/
http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-centos-5.6-lamp
运维网声明
1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网 享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com