Archive for the ‘Tomcat’ category

Setting Up OpenBD on a Linux Cpanel Server

August 21st, 2009

There is an excellent writeup on openbluedragon.org that explains installing OpenBD on Centos/Redhat with Apache and Tomcat. Cpanel can be used to install Tomcat so the setup is a little different.

Install Tomcat

This can be done in WHM under EasyApache (Apache Update).  Just check the Tomcat option when saving your build.

Install OpenBD

cd /usr/local/jakarta/
wget http://openbd.viviotech.net/downloader.cfm/id/64/file/openbd.war
cp /usr/local/jakarta/openbd.war /usr/local/jakarta/tomcat

Go to http://localhost:8080/openbd/bluedragon/administrator. Login with the password admin and change the default password to whatever you want.

Enable CFM

By default Tomcat will execute any jsp page for an account that has jsp enabled. To enable cfm we have to modify the setup script slightly.  To do this open /scripts/addservlets2 in your favorite editor and modify the IfModule mod_jk.c portion of the file to look like the code below.

<IfModule mod_jk.c>
JkMount /*.cfm ajp13
JkMount /*.cfc ajp13
JkMount /*.do ajp13
JkMount /*.jsp ajp13
JkMount /*.cfchart ajp13
JkMount /*.cfres ajp13
JkMount /*.cfm/* ajp13
JkMount /*.cfml/* ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>

Enable Tomcat for your Domain

/scripts/addservlets2 --domain=yourdomain.com

Copy Directories

Unfortunately with this setup you have to have an admin for every domain.

cp -Rf /usr/local/jakarta/tomcat/bluedragon /home/yourdomaindirectory/public_html
cp -Rf /usr/local/jakarta/tomcat/WEB-INF /home/yourdomaindirectory/public_html