How can we install Xcache without easyapache?

Posted: February 3, 2013 in Apache

You can install Xcache without running EasyApache by using /scripts/phpextensionmgr. This script will install the following PHP extensions:

Code:
# /scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
Xcache
SourceGuardian
PHPSuHosin

The usage is as follows:

Code:
# /scripts/phpextensionmgr
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

Note: Since PHP extensions only required an extension= line in the php.ini file, there is no need to rebuild all of Apache and PHP. /scripts/phpextensionmgr is much more convenient and much faster than running EasyApache to install these extensions

You should not need to do this every time you run EasyApache. However, to make sure all your extensions are still installed, run php -v after you run EasyApache. You will see each extension that is installed listed. Here is an example from a test server (that does not have Xcache installed):

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s