Skip to content

How do i install & Update Trax?

Mark Moran edited this page Dec 10, 2013 · 1 revision


###Install via PEAR Installer:

# pear channel-discover
# pear install trax/PHPonTrax 

###Install remotely from Trax server:

# pear install -o[current version number].tgz

###Install locally (download the current tar):

# pear install -o PHPonTrax-[current version number].tgz

Install mysql driver (in case you use mysql as DB)

pear install MDB2_Driver_mysql 


If you want to upgrade to a newer version of Trax, then all you have to do is uninstall.

pear uninstall trax/PHPonTrax

Then do the install step above to reinstall the newer version.

###Install note about Ubuntu

Create the following simlink:

sudo ln -s /usr/bin/php /usr/local/bin/php
sudo ln -s /usr/share/php /usr/local/lib/php

/usr/share/php/PHPonTrax/config/environment.php will probably have to be changed too. (don't know how yet)

###Install note for Windows

In some cases you will need to install a driver to connect to MySQL and PostgreSQL databases.

Download the drivers and create a Batch file in the php installation directory with the following structure:

"%PHP_PEAR_PHP_BIN%" -C -n -d output_buffering=1 -d safe_mode=0 -d 
include_path="%PHP_PEAR_INSTALL_DIR%" -f "%PHP_PEAR_INSTALL_DIR%\PHPonTrax\trax.php" -- %1 %2 %3

Or simply:

c:\..\your_path_php\php.exe “C:\you_path_php\PEAR\PHPonTrax\trax.php” 
You can’t perform that action at this time.