The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Enable PHP optimisation for Magento site

Discussion in 'Workarounds and Optimization' started by regisit, Mar 7, 2014.

  1. regisit

    regisit Member

    Joined:
    Jul 31, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We have a dedicated server in default cPanel configuration (running suPHP). There is currently one cPanel account running a Magento store. The server may run additional WordPress sites at a later date, but all are owned by the same company - ie. no shared hosting with anyone else. The server has 32GB RAM.

    Magento is a massive beast with thousands of PHP files and the site speed needs improving. All indicators point to PHP optimsation as a good way to achieve this if we have the memory available for the caching - which we do. However, with suPHP there no scope for this. The site is live so no "try this and see if it works" options allowed! We need a 100% certified safe approach. This question is multi-fold:

    Should we switch to DSO or FCGI so that we can enable eAccelerate?
    I've read that switching to DSO can cause issues due to file permissions. Magento permissions are mostly 755/644 but DSO needs 777 apparently. Is FCGI the better option for a site that currently works fine with suPHP?

    Is eAccelerate like to result in a measurable improvement in response times for Magento
    Ideally looking here for comments from anyone who has actually done this and seen a marked improvement

    Is there a better alternative to eAccelerate supported on WHM/cPanel e.g. APC?
    Again, anyone used an alternative configuration on WHM/cPanel and seen marked improvements? If so, what are the steps to switch from suPHP with no optimisation to something else with, in a totally risk free way?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,694
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You may want to consider setting up a development environment to make sure any changes you make do not result in error messages on your website. While switching PHP handlers is straightforward for the most part, it is possible that some scripts may require different permissions on DSO compared to suPHP.

    Thank you.
     
  3. regisit

    regisit Member

    Joined:
    Jul 31, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes, that would be simpler to achieve if cPanel allowed us to set up a test server under the licensing terms. But I understand that cPanel has no such test/backup server licensing allowance.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Correct. If you need to have a 100% safe approach, you might want to pick up a VPS for 20 bucks somewhere and test there. That's how most Hosting Providers do this sort of thing.
     
Loading...

Share This Page