Support » Plugin: W3 Total Cache » Need Advice on APC Installation for WordPress

  • Resolved rockyfp2


    Came across a few posts that recommends APC with Total Cache plugin for WordPress. But, I was told by hostgator “Our default cPanel installation uses suPHP with the “event” MPM…please be advised that suPHP is not compatible with the APC opcode cache. “.

    And, they also said, “we could try switching php to DSO instead of suphp. The advantage of suphp is better security. Moving to DSO would require that permissions on files be updated and some files would require 777 or 666 permissions in order for them to work properly.”

    I have very little knowledge about server or coding; need some advice on (1) whether hostgator’s recommendation is good for installing APC on hostgator VPS server (2) if it is, after switching to DSO, can file permission update be easily done, and bad consequences for wordpress sites?

    Thanks a lot for your time and help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Drew Jaynes


    WordPress Core Developer

    No expert here, but suPHP is the better option of the two, which means you’d need to find a different cache plugin like WP Total Cache or others. It sounds like with DSO you’ll have to leave part of your WP install wide open with 777 permissions, something that is generally avoided with best-practice server administration.

    In short, your best option is to find a different caching plugin that’s compatible with suPHP.

    Thanks DrewAPicture


    Hostgator is wrong and does not understand how anything works except for suPHP because it keeps users safe on their SHARED hosting accounts.

    If you are on a VPS or dedicated server without other users there is no point in running suPHP. You need to have them recompile Apache to run as DSO without suExec or suPHP. You can also do this yourself using EasyApache in WHM and install APC using the W3 Total Cache instructions.

    For cPanel DSO your public_html folder has to be owned by the user with group set to nobody. Any file that WordPress needs to write to (wp-content dir) needs ownership set to nobody:nobody with 755 for folders and 644 for files.

    @drewapicture There are no opcode or object cache plugins compatible with suPHP.

    Plugin Author Frederick Townes


    Great advice as always @c3mdigital!

    @chris Olbekson when you say “without other users” help me understand what you mean. I have a VPS with multiple cPanel accounts running on it. That kind of user? Or something else? I’d really like to speed up WP’s admin on my VPS, and somebody suggested APC. I’m just wondering if I can copy/paste what you said to Hostgator’s support, or if it doesn’t apply because I have multiple cPanel’s?

    I am new here but like to add my two cents here as I have gone thru pain to setup APC. I have bare-bone CentOS VPS which had PHP5.1 so I needed to upgrade to PHP 5.3 which I did and created blog for at I installed W3 Total Cache (kudos to Fred for such an amazing plugin) and as per tentblogger’s advice, installed APC. That installation was painful as my VPS lacked lot of dev tools,even c-compiler. But I got good help in two different blogs which were really helpful and would like to share with you all as it might be helpful.(1)
    Using W3 Total cache, Google page speed for my blog website jumped from 49 to 97 as per last check.
    BTW, I am cheap enough to not have cPanel and brave enough to do things using linux command prompt for all my installation work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Need Advice on APC Installation for WordPress’ is closed to new replies.