apache-2.2.4 和 resin 3.0.22的整合

本文介绍了Apache 2.2.4的安装配置过程,并详细说明了如何将Resin 3.0.22整合到Apache中,包括必要的配置文件调整及启动步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.apache安装

(1)下载httpd-tar.gz 2.2.4

 

tar -zxvf httpd-2.2.4.tar.gz
cd httpd
-2.2.4
.
/configure --prefix=/usr/local/apache
make;make install&

然后 vi /usr/loca/apache/conf/httpd.conf

ServerName 192.168.78.188:80

DocumentRoot "/home/www"

(2)安装resin并整合

下载 resin 3.0.22

./configure --with-apache=/usr/local/apache

会编译module:/usr/local/apache/modules/mod_caucho.so并自动会在apache的 httpd.conf中加入以下几行:

 

LoadModule caucho_module /usr/local/apache/modules/mod_caucho.so

ResinConfigServer localhost 
6802
CauchoConfigCacheDirectory 
/tmp
CauchoStatus yes

 

修改:resin/conf/resin.conf为:

 

  <host id="" root-directory=".">
      
<!--
         
- configures an explicit root web-app matching the
         
- webapp's ROOT
        -->
      
<web-app id="/" document-directory="/home/www"/>

      
<resin:if test="${java.isJava5()}">
        
<!--
           
- Administration application /resin-admin
           
-
           
- password is the md5 hash of the password.
           
- localhost is true to limit access to the localhost
          
-->
        
<resin:set var="resin_admin_password"  default=""/>
        
<resin:set var="resin_admin_localhost" default="true"/>

        
<web-app id="/resin-admin" document-directory="${resin.home}/php/admin"/>
       
</resin:if>
    
</host>

 

(3)启动

 

/usr/local/apache/bin/apachectl start
/usr/local/resin/bin/httpd start
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值