Jaxer Learns to Play Well With Others

I STRONGLY ADVISE YOU READ THIS THROUGH BEFORE YOU FOLLOWING IT ALONG!!! This howto is given without warranty or guarantee, you use this at your own risk. I followed the following steps start to finish and it worked just fine for me, this doesn’t mean it will work for you. If you have any questions please feel free to direct them towards myself, others on the the mailing list, or the forums at Aptana.

Getting Jaxer to play nice with an existing Apache 2.2 install on Ubuntu 7.10 (gutsy gibbon):

Create directory structure:

/var/
../jaxer
../../aptana
../../data
../../public

../../aptana
This is what will contain what you get from

/opt/AptanaPackage/jaxer

(all the needed files to run jaxer and jaxermanager)

../../data
Contains the SQLite3 databases

../../public
Your sites to be served through Jaxer

cd /var
sudo mkdir jaxer
cd jaxer
sudo mkdir aptana
sudo mkdir data
sudo mkdir public

Unzip the Aptana Jaxer package and copy what we need:

cd /opt/
sudo unzip Jaxer_package_withApache.zip
cd AptanaJaxer
sudo cp -R jaxer/* /var/jaxer/aptana/

Download this file and edit as need be:

cd ~
wget http://blog.kritikal.com/files/jaxer

(open the file in your favorite editor and make your changes)

Move the file to the sites-available, enable it, and then reload Apache’s configs:

sudo mv jaxer /etc/apache2/sites-available
sudo a2ensite jaxer
sudo /etc/init.d/apache2 reload

We can now start the jaxermanager process:

cd /var/jaxer/aptana
sudo ./jaxermanager –minprocesses=3 –maxprocesses=5

If you want to run the JM in the background simply put an ampersand at the end of the command, like so:

sudo ./jaxermanager –minprocesses=3 –maxprocesses=5 &

Now go to http://yourserver/aptana and click on “Server Diagnostics” from the left. If the page loads and you see no errors then you’re good to go.

Put all your files into

/var/jaxer/public

and then access them via

http://yourserver/jaxer/

That’s it! I was also able to get this to work with a VirtualHost in the same jaxer config file, but that’s for another day.

1 Comment


  1. I’m working on a comprehensive how-to that will be finished by next week. All your questions will be answered!

    Quote | Posted May 13, 2008, 12:51 am

Leave a reply