WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Need Advice on APC Installation for WordPress (7 posts)

  1. rockyfp2
    Member
    Posted 2 years ago #

    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.

  2. 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.

  3. rockyfp2
    Member
    Posted 2 years ago #

    Thanks DrewAPicture

  4. @rockyfp2,

    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.

  5. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Great advice as always @c3mdigital!

  6. Tevya
    Member
    Posted 1 year ago #

    @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?

  7. polorumpus
    Member
    Posted 1 year ago #

    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 pthakkar.com. 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)http://stevejenkins.com/blog/2011/08/how-to-install-apc-alternative-php-cache-on-centos-5-6/
    (2)http://tentblogger.com/w3-total-cache/
    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic