Skip to main content

optimize for WordPress

Comments

3 comments

  • cPanelMichael
    Hello, I've moved this thread to our "Optimization" forum. You can review some of the previous threads in this forum to get an idea of how other users are optimizing the server configuration and to see which applications are used for this purpose. Here's one recent thread you may find helpful: Server cache for shared hosting? Thank you.
    0
  • 0884094
    I ended up recompiling Apache with: disabled: suphp enabled: Mod FastCGI enabled: Opcache (Opcache was added recently as a core PHP module, which probably explains why Xcache and similar are all end-of-life but still mentioned in tons of older forum posts.) I set my PHP handler to fcgi and enabled Apache suexec. This makes PHP run under each customers' identity but it's insanely fast compared to what I had before. For hosting WordPress, I also enabled gzip compression for all text responses, set 1-hour cache lifetimes, and enabled HTTP keep-alives, all of which really helped since WordPress gets so fat with all the separate JS/CSS files from different plugins. Under Apache Configuration -> Pre Main Include, I used these lines to globally enable compression and caching on all websites: AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript # Cache Control Settings for one hour cache Header set Cache-Control "max-age=3600, public" Header set Cache-Control "max-age=3600, public, must-revalidate"
    0
  • cPanelMichael
    Hello, I'm happy to see you were able to receive positive results after making those changes. Thank you for taking the time to let us know the steps you took. WordPress installations are popular, so additional users are likely find the post helpful.
    0

Please sign in to leave a comment.