Ubuntu server: /xcache.so: cannot open shared object file: No such file or directory


If you keep getting this spamming your PHP error log, it is likely because PHP xcache was installed previously and then uninstalled, but its configuration files were not cleared out. This could have happened at an upgrade or when you chose a different cache system.

You can check if you have xcache installed by doing sudo dpkg -s php5-xcache | grep Status. If the status shows as "deinstalled" but with config files left, you can simply purge it with sudo apt-get remove --purge php5-xcache .

Then restart Apache: sudo service apache2 restart. Your error log should now be spam free.

5 thoughts on “Ubuntu server: /xcache.so: cannot open shared object file: No such file or directory

  1. Hoteluri Litoral Bulgaria

    I was recommended this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my problem.
    You are amazing! Thanks!

  2. I found another way to find the xcache spam. Helpful if after purging things remain. Run this command :

    grep -Hrv ";" /etc/php5 | grep -i "xcache"

    It is helpful to find where the extension is loaded plus there is a directory named xcache-backup which never gets deleted with aptitude commands. It sucks huge memory if the extension remains somewhere. You might end up finding the extension was uncommented inside cgi php.ini or cli php.ini ! You need not even restart php, after commenting out if you run :

    php -m | grep -i xcache

    Clean! Purge does not remove those bad things in uniform manner, sadly. Everyone loves xcache until get in to trouble.

  3. jeremiah

    Really Wish you would stop advertising the stupid worthless phpbb plugin if you aren’t going to maintain it.

  4. I have checked your blog and i have found some duplicate
    content, that’s why you don’t rank high in google’s search
    results, but there is a tool that can help you to create 100% unique articles, search for:
    SSundee advices unlimited content for your blog

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>