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.

7 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

  5. Ramonita Hersom

    You have a very nice website, but I’m sure it’s pretty hard to find new article ideas and create content especially nowadays when it seems like all topics have been covered by someone..

    I’m sure you’re tired of getting these messages through your contact form, and that’s why I won’t bother you with long texts. I just think that you’ll have a lot to gain from this small tip:)

    I have been able to create articles easily for all my websites and avoid any duplicate content penalties from Google using a very smart and intuitive article spinner called Spin Rewriter, which I`m sure would work wonders on a business like yours. And the best part is that you won’t even need to know English as your main language. The strong AI behind Spin Rewriter will create articles in perfect english in minutes. Check it out and tell me what you think. Here is the official link: https://www.alecpow.com/spin-rewriter-official

    You can reply to this email to ask for samples of websiteswhere we publish the content written by Spin Rewritter

  6. The error “UBUNTU SERVER: /XCACHE.SO: CANNOT OPEN SHARED OBJECT FILE: NO SUCH FILE OR DIRECTORY” indicates a missing XCache extension file. Reinstalling XCache or updating its configuration can resolve this issue.

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>