How to install Zend Optimizer on a cPanel server?

How to install Zend Optimizer on a cPanel server?
cPanel offers ‘phpextensionmgr’ script through which you can install various extensions. To list the available PHP extensions, execute the command as root

root@server [~]# /scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin

To list the available Options and Actions, execute

root@server [~]# /scripts/phpextensionmgr –help
Usage:
phpextensionmgr [options] [action] [extension]

Options:
–help       Help message
–prefix     Installation prefix for PHP (normally /usr/local or /usr/local/php4)

Actions:
install      Install or update the extension
uninstall    Uninstall the extension
status       Display the installation status of the extension
list         Show available extensions

To install Zend Optimizer, execute the command

root@server [~]# /scripts/phpextensionmgr install Zendopt

To verify whether Zend Optimizer is installed, execute:

root@server [~]# php -v

You can install the other available extensions using the same command, just replace ‘Zendopt’ with the extension name you wish to install.

To remove ‘Zend Optimizer’ from the server, just execute

root@server[~]# /scripts/phpextensionmgr uninstall Zendopt

Or

Edit the php.ini file and comment the line that states

zend_extension=”/path/to/ZendOptimizer.so”

under the ‘[Zend]‘ section. In this case, make sure you restart the httpd service for the changes to take affect.

Posted in Server Management
One comment on “How to install Zend Optimizer on a cPanel server?
  1. You made certain good points there. I did a search on the issue and found nearly all persons will go along with with your blog.