If you intend to use PHP and other tools provided by Zend Server (pear and pecl) from the command line (PHP CLI), it is recommended that you add the <install_path>/bin directory to your $PATH environment variable.
This can be done in two ways:
The following procedure is intended for use with bash. If you are using a different shell, adjust the procedure accordingly.
|
|
|
To add the <install_path>/bin directory to your $PATH environment variable per user profile:
PATH=$PATH:<install_path>/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib Replace <install_path> with your Zend Server installation path.
source ~/.bashrc |
You can now run the PHP binary provided by Zend Server without typing its full path. |
|
|
|
To add the <install_path>/bin directory to your $PATH environment variable for all users:
PATH=$PATH:<install_path>/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib Replace <install_path> with your Zend Server installation path.
source /etc/profile |
You can now run the PHP binary provided by Zend Server without typing its full path. |
|
|
|
Related Links: |
|
|
© 1999-2013 Zend Technologies, Ltd. All rights reserved.