1.http://www.apache.org/ 下载apache原代码包。放在/usr/local 目录下。
2.解压
进入下载的文件夹
remind@ubuntu-server:~$ cd /usr/local
解压出httpd-2.2.19文件夹
remind@ubuntu-server:/usr/local$ tar -zxvf httpd-2.2.19.tar.gz
进入httpd-2.2.19文件夹
remind@ubuntu-server:/usr/local$ cd /usr/local/httpd-2.2.19
3.编译文件
设置参数及路径
remind@ubuntu:~httpd-2.2.19$ ./configure --prefix=/home/admin/apache
像以上这样设置编译后apache在modules文件夹将没有一个DSO模块动态加载!
使用./configure --help查看帮助!
如下设置:
remind@ubuntu:~httpd-2.2.19$ ./configure --prefix=/home/administrator/program/apache2 --enable-mods-shared=most
enable-mods-shared=most表示加载大多数的模块(动态)
注:使用--enable-mods-shared会自动编译--enable-so
未安装完,稍后继续。。。ing
http://blog.csdn.net/csj50/article/details/5775121