Zend Server Installation Guide > DEB Installation and Upgrade > Post Installation

Post Installation Configuration on DEB

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.

 

 

Instructions on how to complete a procedure

To add the <install_path>/bin directory to your $PATH environment variable per user profile:

  1. Using a text editor, open .bashrc (located in your home directory).

  2. Add the following lines to the end of the file:

PATH=$PATH:<install_path>/bin

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib

Replace <install_path> with your Zend Server installation path.

  1. Save the file.

  2. In order for this to take effect, close and reopen your shell or run the following command:

source ~/.bashrc

You can now run the PHP binary provided by Zend Server without typing its full path.

 

 

Instructions on how to complete a procedure

To add the <install_path>/bin directory to your $PATH environment variable for all users:

  1. Log in as root or use sudo to execute the following commands.

  2. Using a text editor, open /etc/profile.

  3. Add the following lines to the end of the file:

PATH=$PATH:<install_path>/bin

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib

Replace <install_path> with your Zend Server installation path.

  1. Save the file.

  2. In order for this to take effect, close and reopen your shell or run the following command:

source /etc/profile

You can now run the PHP binary provided by Zend Server without typing its full path.

 

 

Related Links

Related Links:

Installing Zend Server

Uninstalling Zend Server

Upgrading Zend Server

Additional Packages

 

 

 

© 1999-2013 Zend Technologies, Ltd. All rights reserved.