How do I install/upgrade Trax?
From PHP on Trax
Contents |
Install
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
Upgrade
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)
NOTAS de Instalación Windows
En Algunos Casos debemos Instalar los Driver para conectarnos a las Bases de Datos entiendase Mysql y Postgresql. Aqui estan los Drivers Descargalos Por otro lado para la instalacion en Windows es necesario crear un archivo .bat en el directorio de instalacion de php con la siguiente estructura
@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
O simplemente
@ECHO OFF
c:\..\tu_path_php\php.exe "C:\tu_path_php\PEAR\PHPonTrax\trax.php"
Nota Install Windows
In Some Cases we must Install the Driver to connect itself to DB as Mysql and Postgresql The Drivers Download On the other hand for the installation in Windows is necessary to create a file .bat in the directory of installation of php 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
Or simply
@ECHO OFF c:\..\you_path_php\php.exe “C:\you_path_php\PEAR\PHPonTrax\trax.php”
