很久没编译这东东了,最近编译一下,竟然要么libphp5.so无法加载,要么mod_jk.so无法加载。搞了2天总算搞好了。:'(
*httpd-2.2.15
./configure --prefix=/usr/local/apache2.2 --with-mpm=worker --enable-so --enable-modules=most --enable-mods-shared=all
make
make install
*php-5.3.2
./configure --with-apxs2=/usr/local/apache2.2/bin/apxs --with-config-file-path=/usr/local/apache2.2/conf/ --with-gd --with-gd --with-jpeg-dir=/usr
make
make install
*tomcat-connectors-1.2.30
./configure --with-apxs=/usr/local/apache2.2/bin/apxs --with-config-file-path=/usr/local/apache2.2/conf/
make
make install
--with-apxs2不行的
这句用于复制so到其他机器上时,so不能加载
chcon /usr/local/apache2.2.14/modules/mod_jk.so -t shlib_t