Installing extension managers like Zend Optimizer or Ion Cube etc is not very difficult, but Cpanel provides a script to install the extension managers making it further easy.

The script is located under the normal /scripts directory on Cpanel servers :

/scripts/phpextensionmgr

It provides the options to list, check status , install or remove any of the extensions.

Using below command you can get the list of extension managers available for installation :

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

Now you can check status of any extension using the below command :

root@CpanelServer[~]# /scripts/phpextensionmgr status Zendopt
Determining status of Zendopt
Zend Optimizer extension is NOT installed
root@CpanelServer[~]#

Now we can see that Zend Optimizer is not installed we will take its installation as example to show how you can install certain extension :

root@CpanelServer[~]# /scripts/phpextensionmgr install Zendopt
Installing Zendopt
Determining PHP version
Creating install directory at /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x
Installing Zend Optimizer binary
Activating Zend Optimizer in /usr/local/lib/php.ini
Zend Optimizer activated
Skipping install to /usr/local/php4, missing php.ini
root@CpanelServer[~]#

Now we can see Zend Optimizer is installed , you can use similar command to install any of the available extensions.

Lets check the status again :

root@CpanelServer[~]# /scripts/phpextensionmgr status Zendopt
Determining status of Zendopt
Zend Optimizer extension is installed
root@CpanelServer[~]#

Now you can see the required installation is installed.

Happy extension managers installing .

Tags: , , , , , ,

Leave a Reply