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
195



被折叠的 条评论
为什么被折叠?



