LAMP: error with Xcache with Kloxo


Someday (example: you upgrade Kloxo), your website suddenly not respond. You see in the log file: /var/log/httpd/error_log and watch the error:

/usr/lib/php/modules/xcache.so doesn't appear to be a valid Zend extension

We can uninstall Xcache following these steps:

Step 1: Login SSH
Step 2: Use command line: cd /usr/local/lxlabs/kloxo/file/phpini
Step 3: Remove the portion below in file php.ini.temp (or you change it by addition ‘;’)

; xcache
__lx__enable_xcache_val

It’s simple to do this using “vi” command:

vi php.ini.temp

Step 4: remove Xcache using the below command:

yum remove php-xcache

Note: the file ‘xcache.ini’ is automatically renamed to ‘xcache.ini.rpmsave’ in the folder ‘/etc/php.d’

Step 5: Restart httpd

service httpd restart
[root@tutorialspots /]# cd /usr
[root@tutorialspots usr]# cd local
[root@tutorialspots local]# cd lxlabs
[root@tutorialspots lxlabs]# cd kloxo
[root@tutorialspots kloxo]# cd file
[root@tutorialspots file]# cd phpini

[root@tutorialspots phpini]# vi php.ini.temp
 
[root@tutorialspots phpini]# yum remove php-xcache
Loaded plugins: fastestmirror, protectbase, replace
Setting up Remove Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-comp
lete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package php-xcache.i386 1:5.2.17-3.1.0 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
php-xcache i386 1:5.2.17-3.1.0 installed 493 k

Transaction Summary
================================================================================
Remove 1 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : php-xcache 1/1
warning: /etc/php.d/xcache.ini saved as /etc/php.d/xcache.ini.rpmsave

Removed:
php-xcache.i386 1:5.2.17-3.1.0

Complete!
[root@tutorialspots phpini]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

Leave a Reply