Configuration For Use with an Existing Apache Installation

If you're using the pre-configured Jaxer Package, you're all set. On Windows, just double-click the "Aptana Jaxer\StartServers.bat" file to start the servers, and browse to http://localhost:8081/aptana/ or http://localhost:8081/your_page. On Mac OS X, just double-click the Jaxer launcher. You can see what these will look like for Windows and for for Mac OS X.

The instructions on this page are intended to provide a guide to the manual installation and configuration steps required to get Jaxer up an running with an existing Apache Install

To make Jaxer work with an existing Apache , you'll need to manually copy some files from the regular Jaxer Zip and make some changes to your Apache httpd.conf.

For the purposes of this example I'm using the Windows version of Jaxer and the Wamp Stack with bundled Apache, Mysql and PHP. If you are following this guide on a mac, or using another Apache install, the same principles apply. Simply unzip/unpack the distro files and move the required files and folders to the appropriate folder.

Step 1. Getting the Jaxer Distro

The Jaxer Zip installer is available from the download page at 'http://www.aptana.com/jaxer/download'

Download your Platform of choice and move to the next step.

Step 2. Installing the Jaxer files

Once you have unpacked the distro into a known location, the next step is to pull out the contained jaxer folder and place it in the folder you'd like it to be run from.

Step 3. Apache Configuration

To have Jaxer work with an existing Apache 2.x installation, you'll need to add a section to your Apache's httpd.conf file. You can simply add this at the bottom of that file: The httpd.conf file is usually found in the conf folder of your Apache install.

The "PATH_TO_JAXER_FOLDER" token should be replaced with the folder that will contains the jaxer files which you copied in step 2.

The "PATH_TO_WINDOWS_FOLDER" token should be replaced with the location of your windows folder, usually "c:\windows"

The JaxerServerPort parameter as shown on line 25, should be set to the same value as appears in the bat file 'StartJaxer.bat' found in the Jaxer folder. If the port is already in use you can change this value to reflect a sensible setting for your environment.

Step 4. Creating the expected folder locations

For Jaxer to run correctly a few folders need to be manually created.

  • data : this folder will contain the automatically created Sqlite database tables
  • logs : this folder will contain the log files created by Jaxer for debugging.

OK that should be the installation complete, we can now start the servers.

Step 5. Starting The Jaxer Server

To start jaxer you first need to start (or restart) Apache so that it can read the changes to the httpd.conf file that we just made. Once you have restarted the web server, you can start the jaxer server by double clicking on the 'StartJaxer.bat' file, which can be found in the 'jaxer' folder.

If everything has gone according to plan you should now see a dos console window like below.

OK the acid test, to run some content through jaxer. Open your browser of choice and got to the base url of your webserver, in my case http://localhost/ works fine. Do you see the page you expected, GOOD, that means Apache has started and is serving pages.

Now point your browser to the 'aptana' folder which we configured to be off documentRoot in httpd.conf. you should see a screen that looks a lot like the one below.

Welcome to Jaxer, and the brave new world of End to End Ajax.

Step 6. Checking the Installation was a success

Jaxer ships with a set of diagnostic tests, now would be a good time to run them to make sure that your installation is in good shape.

To Run the tests simply click on the link 'Server Diagnostics' on the sidebar, and the basic test suite will run.

All the tests should pass, the fourth test will show an exclamation point as we haven't set up an override config file, but this is an optional configuration step, and can be ignored for the time being.

Next you'll probably want to run the unit tests we ship for a deeper validation that everything is up and running the way we expect

To run these tests click on the link to the 'Component Diagnostics' and you should see a screen like the one below, Click the 'Run All' button to run the testsuite (FYI - these tests can take a few seconds to complete)

Once these tests have completed, your Jaxer instance is configured and ready for use.

Next steps

Now that you have your Jaxer instance you may want to make further adjustments to the httpd.conf file. In this example text we only set up jaxer to process content from the 'jaxer/aptana' folder

To add another folder for use with jaxer simply place a folder directive like the one shown below in the <ifModule jaxer_module> and change the 'PATH_TO_MY_FOLDER' token to your absolute folder location.

Frequently Asked Questions

For additional answers and information, see our FAQ page.