安装apache
./configure --prefix=/opt/apache2 --enable-so --enable-dav --enable-dav-fs --enable-mods-shared=most
make
make install
安装resin :
./configure --prefix=/opt/resin3.1.6 --with-apxs=/opt/apache2/bin/apxs --with-apache=/opt/apache2
make
make install
上述操作编译安装完后,会自动修改apache,包括:
1.copy mod_caucho.so到apache目录(就是前面指定的--with-apache=/data/aoxj/artest/apache)的modules
2. 修改apache的配置文件conf/httpd.conf,自动增加以下内容
LoadModule caucho_module ***/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
访问 http://localost/caucho-status 看是否成功.
如果访问不了。接着添加如下配置到httpd.conf中。
<Location /caucho-status>
SetHandler caucho-status
</Location>
LoadModule caucho_module modules/mod_caucho.so
#ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
<Location /caucho-status>
SetHandler caucho-status
</Location>
<Location ~ "\.jsp$">
ResinConfigServer localhost 6800
</Location>
<Location ~ "/(resin-doc|mobile)/*">
ResinConfigServer localhost 6801
</Location>
我在学习的过程中所使用的apache是安装系统时就已经安装上的,不想再重新安装一次apache,则在安装resin的时候将--with-apxs参数指向你安装系统时apache安装apxs的位置就可以了。如果你的系统在安装apache时没有执行--enable-so,则你的服务器上就应该没有这个文件。如果是这样的话那就需要你一步一步的安装apache了,不过你可以不使用你后来安装的,在安装好resin之后将mod_caucho.so拷贝到相应的目录之后,这个apache的任务就已经完成了!~~
希望对你有用!~~