How do i install & Update Trax?
Clone this wiki locally
###Install via PEAR Installer:
# pear channel-discover pear.phpontrax.com # pear install trax/PHPonTrax
###Install remotely from Trax server:
# pear install -o http://pear.phpontrax.com/get/PHPonTrax-[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:
@ECHO OFF "%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
@ECHO OFF c:\..\your_path_php\php.exe “C:\you_path_php\PEAR\PHPonTrax\trax.php” ```