Install XCache to Accelerate and Optimize PHP Performance

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

35 Responses

  1. Victor says:

    Hello Ravi, great guide on installing XCache but I am having a problem. When I run the command to install the xcache that is yum install php-xcache xcache-admin I get the error No package available.

    What could be the problem?

  2. Ben says:

    Hi Ravi,
    thx for your instructions on installing Xcache. I am wondering about the multi site use case: I have a Virtualmin setup on a VPS with a handful of users with individual web folders running mod_fcgid.

    Do I have to take any precautions here?

    Another thing: I wonder a bit about the admin setup. I have made a symlink from one of the web folders to /usr/share/xcache and can see the stats for that particular website. Is that the way to to – is there no way of getting a look at the whole picture ie. all web site cache statistics in the same admin screen?

    Best regards,

    • Ravi Saive says:

      1. No need to take any precautions, as Xcache is just for caching PHP files and accelerating site performance.
      2. No idea about this..but I think you can get it by doing little trick to xcache configuration file..

  3. Kalim says:


    When i tried to install php-xcache xcache-admin it by default installing php,php-common and php-cli dependencies (5.3 version), which i don’t need.

    It there is way through which i can use PHP 5.5.6 with xcache or apc?

  4. Kalim says:

    Hi Ravi,

    I have installed PHP 5.5.6 from source including pthread. But when i installed XCache from yum, I am unable to view XCache details in phpinfo nor in by executing php -v command.

    OS :- CentOS 6.5

    Can you please help me out.

    Thanks in advance.

  5. Dante says:

    Hi i get the following error when i try to install xcache, can you help with suggestion on how to fix and install properly.Thanks

    Error: Package: xcache-admin-3.0.4-1.el6.noarch (epel)
    Requires: php-xcache = 3.0.4-1.el6
    Available: php-xcache-3.0.0-2.el6.remi.1.x86_64 (mt_dv_extras)
    php-xcache = 3.0.0-2.el6.remi.1
    Installing: php-xcache-3.0.1-1.el6.remi.x86_64 (mt_dv_extras)
    php-xcache = 3.0.1-1.el6.remi
    Error: Package: php-xcache-3.0.1-1.el6.remi.x86_64 (mt_dv_extras)
    Requires: php(zend-abi) = 20100525-x86-64
    Installed: php-common-5.4.13-1.el6.remi.x86_64 (installed)
    php(zend-abi) = 20100525-x86-64
    Available: php-common-5.4.10-1.el6.remi.x86_64 (mt_dv_extras)
    php(zend-abi) = 20100525-x86-64
    Available: php-common-5.4.11-1.el6.remi.x86_64 (mt_dv_extras)
    php(zend-abi) = 20100525-x86-64
    Available: php-common-5.4.12-1.el6.remi.x86_64 (mt_dv_extras)
    php(zend-abi) = 20100525-x86-64
    Error: Package: php-xcache-3.0.1-1.el6.remi.x86_64 (mt_dv_extras)
    Requires: php(api) = 20100412-x86-64
    Installed: php-common-5.4.13-1.el6.remi.x86_64 (installed)
    php(api) = 20100412-x86-64
    Available: php-common-5.4.10-1.el6.remi.x86_64 (mt_dv_extras)
    php(api) = 20100412-x86-64
    Available: php-common-5.4.11-1.el6.remi.x86_64 (mt_dv_extras)
    php(api) = 20100412-x86-64
    Available: php-common-5.4.12-1.el6.remi.x86_64 (mt_dv_extras)
    php(api) = 20100412-x86-64
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    • Ravi Saive says:

      Seems your old packages are conflicting with new ones. So, fix such errors you must remove older version of php-xcache and php-common.

      # yum remove php-xcache php-common

      And then try to install it again.

      # yum install php-xcache php-common
      • Dante says:

        Dependencies Resolved

        Package Arch Version Repository Size
        php-common x86_64 5.4.13-1.el6.remi installed 6.2 M
        Removing for dependencies:
        SSHTerm noarch 0.2.2-10.11092910 installed 4.9 M
        cs-gs x86_64 2.0.0-cos6.build110120608.16 installed 845 k
        php x86_64 5.4.13-1.el6.remi installed 9.1 M
        php-cli x86_64 5.4.13-1.el6.remi installed 7.7 M
        php-devel x86_64 5.4.13-1.el6.remi installed 12 M
        php-gd x86_64 5.4.13-1.el6.remi installed 665 k
        php-imap x86_64 5.4.13-1.el6.remi installed 199 k
        php-ldap x86_64 5.4.13-1.el6.remi installed 109 k
        php-mbstring x86_64 5.4.13-1.el6.remi installed 2.5 M
        php-mcrypt x86_64 5.4.13-1.el6.remi installed 86 k
        php-mysql x86_64 5.4.13-1.el6.remi installed 447 k
        php-odbc x86_64 5.4.13-1.el6.remi installed 178 k
        php-pdo x86_64 5.4.13-1.el6.remi installed 348 k
        php-pear noarch 1:1.9.4-12.el6.remi.1 installed 2.2 M
        php-snmp x86_64 5.4.13-1.el6.remi installed 107 k
        php-xml x86_64 5.4.13-1.el6.remi installed 622 k
        php-xmlrpc x86_64 5.4.13-1.el6.remi installed 153 k
        plesk-core x86_64 11.0.9-cos6.build110120608.16 installed 79 M
        plesk-l10n noarch 11.0.9-cos6.build110120827.16 installed 21 M
        pp-sitebuilder noarch 11.0.10-38713.12081600 @SITEBUILDER_11_0_10-dist 181 M
        psa x86_64 11.0.9-cos6.build110120608.16 installed 473 k
        psa-atmail noarch 1:1.05-cos6.build110120606.19 installed 13 M
        psa-backup-manager x86_64 11.0.9-cos6.build110120608.16 installed 8.5 M
        psa-backup-manager-vz x86_64 11.0.0-cos6.build110120123.10 installed 1.6 k
        psa-fileserver x86_64 11.0.9-cos6.build110120608.16 installed 367 k
        psa-firewall x86_64 11.0.9-cos6.build110120608.16 installed 540 k
        psa-horde noarch 3.3.13-cos6.build110120606.19 installed 20 M
        psa-imp noarch 4.3.11-cos6.build110120606.19 installed 12 M
        psa-ingo noarch 1.2.6-cos6.build110120606.19 installed 5.1 M
        psa-kronolith noarch 2.3.6-cos6.build110120606.19 installed 6.3 M
        psa-libxml-proxy x86_64 2.7.8-0.301910 installed 1.2 M
        psa-migration-agents x86_64 11.0.9-cos6.build110120608.16 installed 169 k
        psa-migration-manager x86_64 11.0.9-cos6.build110120608.16 installed 1.0 M
        psa-mimp noarch 1.1.4-cos6.build110120418.19 installed 2.9 M
        psa-miva x86_64 1:5.06-cos6.build110120606.19 installed 4.5 M
        psa-mnemo noarch 2.2.5-cos6.build110120606.19 installed 4.1 M
        psa-passwd noarch 3.1.3-cos6.build110120606.19 installed 3.7 M
        psa-php5-configurator x86_64 1.6.2-cos6.build110120608.16 installed 6.4 k
        psa-spamassassin x86_64 11.0.9-cos6.build110120608.16 installed 159 k
        psa-turba noarch 2.3.6-cos6.build110120606.19 installed 6.1 M
        psa-updates noarch 11.0.9-cos6.build110120704.10 installed 0.0
        psa-vhost noarch 11.0.9-cos6.build110120606.19 installed 159 k
        psa-vpn x86_64 11.0.9-cos6.build110120608.16 installed 1.9 M
        psa-watchdog x86_64 11.0.9-cos6.build110120608.16 installed 2.9 M

        Transaction Summary
        Remove 45 Package(s)

        Installed size: 425 M
        Is this ok [y/N]: n

        sorry for the long post just want to make sure that i am doing the right thing, alot of sites on the server. This is what i get when i run yum remove php-xcache php-common, I believe clicking y will remove just the php-common and not affect anything else? Thanks.

        • Ravi Saive says:

          It will not affect anything just updates to latest versions, go ahead..

        • Daniel says:

          Remove 45 Package(s)
          Installed size: 425 M

          hhahahaaa OMG removing 425mb? LOL .. isn’t it like 20% of all CentOS ? :D hahahaa… I would’ve NEVER blindly accept such removal, before I know what each package is used for…

          Ravi, I really like your blog and happy I found it. I trust your experience.

          But can you explain what was that process of removing 45 packages, and how come it was safe actually? it will remove them and automatically reinstall new package versions or something?

          Thanks :)

          • Ravi Saive says:

            It seems you are using older version of OS and lot’s of packages need to be upgraded to install latest Xcache on the system.

  6. leon says:

    thanks but i have two questions in mind

    1- The latest xcache version is 3.0.3 how we can update to it

    2-when trying to access xcache admin panel i am getting error


    You don’t have permission to access /xcache on this server.

    i have checked permissions and they are ok

  7. Tapas says:

    Hi Ravi,

    The reference URL for configuration given on step 2 is giving 503.
    Can you please elaborate the configuration or can you give other reference URL?


  8. Insignia says:

    Just want to verify if my intuitions is correct that xcache can also be installed or be configured as part of lampp?..

  9. Vladimir says:

    Does this automaticaly caches the compiled php script? Or we need to tell it what scripts it should cache?

  10. kashyap says:

    I am getting below error :
    Error: php-xcache conflicts with php-pecl-apc-3.1.9-2.el6.x86_64
    plz help

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.