Post Installation on RPM (RHEL and CentOS)

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:

  • Per user profile
  • For all users

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, issue the following command:

echo 'export PATH=$PATH:/usr/local/zend/bin' >> $HOME/.bashrc

To add the Zend Server library path, issue the following command:

echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib' >> $HOME/.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, issue the following command:

echo 'export PATH=$PATH:/usr/local/zend/bin' >> /etc/profile.d/zend-server.sh

To add the Zend Server library path, issue the following command:

echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib' >> /etc/profile.d/zend-server.sh

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

Enabling RPM Package Signature Validation

Zend Server's RPM packages are signed using PGP. This can be used to validate package integrity and authenticity during installation. This is an optional step which is recommended for organizations with strict security policies.

 

 

Instructions on how to complete a procedure

To enable RPM package signature validation:

  1. Start the manual installation process as described in (link to manual install)
  2. After creating the file /etc/yum.repos.d/zend.repo, change the value of all of the gpgcheck occurrences to '1'
  3. After each gpgcheck occurrence add the following line:
    gpgkey=http://repos.zend.com/zend.key
  4. Continue the installation process

Before installing the first packages, yum will  prompt you to approve importing the Zend PGP key from the URL above.

After following this procedure, whenever upgrading and installing Zend Packages yum will verify the packages before installing them.