beOpen
 

Install Resin

Guide to install mod_caucho from Resin 2 for Apache 2 under Debian SID

# as root

apt-get install build-essential
apt-get install apache2-dev

create a symbolic link from apache2 to httpd2 this is the workaround for the configure script provided by resin it looks for the binary “httpd2”, but debian provides it as “apache2”

ln -s /usr/sbin/apache2 /usr/sbin/httpd2

# as $user

cd ~
mkdir resin
cd resin
wget http://www.caucho.com/download/resin-<lastrelease>.tar.gz
tar xvzf resin-<lastrelease>.tar.gz
ln -s resin-<lastrelease> current
cd current
export JAVA_HOME=/usr/local/java2
export RESIN_HOME=/home/$user/resin/current
./configure --with-apxs=/usr/bin/apxs2
make
cd bin
./httpd.sh start

# as root

make install

# check (resin do it for you)
# cat /etc/apache2/httpd.conf

LoadModule caucho_module /usr/lib/apache2/modules/mod_caucho.so
CauchoConfigFile /home/$user/resin/current/conf/resin.conf
# if ya have created a webapp with the id "/myapp", requests going to apache2 
# with this context should be forwarded to resin from now on 
# ( e.g. http://myserver/myapp )

Now I prefer to cleanup /etc/apache2/httpd.conf and move it in /etc/apache2/mods-available/caucho.load Also because if you load caucho.load as default every instances on port 80 are for resin so your apache2 doesn’t work as was configured before. That’s my choice!

# cat /etc/apache2/mods-available/caucho.load

#
# mod_caucho Resin Configuration
#
LoadModule caucho_module /usr/lib/apache2/modules/mod_caucho.so
ResinConfigServer localhost 6802
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
 
java/resin.txt · Ultima modifica: 24/08/2006 13:03
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki