安装LinuxAS5+httpd+tomcat+mod(2)

如果make通不过,/path/to/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build/jk2/apache2目录下并无mod_jk2.so产生,则需安装新版libtool。
 
RedHat AS 3自带的libtool是
[root@test apache2]# libtool --version
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.111 2002/10/23 02:54:36
这个版本的libtool编译最新的
jakarta-tomcat-connectors-jk2-2.0.4-src
是不会成功的。
 
wget [url][/url]1.5.6.tar.gz
tar zxvf libtool-1.5.6.tar.gz
cd libtool-1.5.6
make
make install
 
[root@test apache2]# /usr/local/bin/libtool --version
ltmain.sh (GNU libtool) 1.5.6 (1.1220.2.94 2004/04/10 16:27:27)
 
ln -s /usr/local/bin/libtool /home/www/apache/build/libtool
再configure,make就ok了。
 
6.配置:
 
修改/home/www/apache/conf/httpd.conf
 
DocumentRoot "/home/www/apache/htdocs"
 
<Directory />;
    Options None
    AllowOverride None
    Order deny,Allow
    Allow from all
</Directory>;
 
 
<Directory "/home/www/apache/htdocs">;
    Options Includes FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
    XBitHack on
</Directory>;
 
LoadModule jk2_module modules/mod_jk2.so
 
DirectoryIndex index.htm index.jsp index.html
 
<Directory "/home/www/apache/htdocs/WEB-INF">;
    Deny from all
</Directory>; 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyzdds.html