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.

Migrating from suphp to fastcgi

Discussion in 'Workarounds and Optimization' started by lbeachmike, Sep 25, 2011.

  1. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Is it correct that I can simply change any of my server's php handler from suphp to fastcgi without any other configuration changes, permission changes, etc?

    Can I simply change back and forth between the two seamlessly? I would like to trial running fastcgi with ecellerator or xcache.

    Thanks.

    Mike
     
  2. gnutoolbox

    gnutoolbox Member

    Joined:
    Sep 25, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    FastCGI (aka: mod_fcgid) is a high performance alternative to CGI. It has the security/ownership benefits of suPHP in that PHP scripts will run as the actual cPanel user as opposed to ‘nobody’. The difference with FastCGI is that it can drastically save on CPU performance and give speeds close to that of DSO. It can also be used with an opcode cacher like eAccelerator or APC, which can help further speed the loading of pages.

    The drawback is FastCGI has a high memory usage. If you like the security/ownership benefits of suPHP and you can afford a major increase in memory usage (meaning you already have a low average memory usage), you may wish to consider using FastCGI
     
  3. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Yes - I have read this summary previously - it appears to be an exact quote of a previous post. However, it does not answer the question that I asked.

    My question is whether or not I can change between suphp and fastcgi without changing anything else on the server. I realize that the explanations provided suggest that this is indeed the case, but I would rather get an explicit answer rather leave something to a potentially incorrect interpretation.

    Thanks.

    Mike
     
  4. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Anybody have an answer to this?
     
  5. MrL22

    MrL22 Active Member

    Joined:
    Jul 11, 2003
    Messages:
    34
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Tamworth, United Kingdom
    I have a few test servers which run clones of a large custom php/mysql site (280Gb) and some wordpress sites which I also host on a live server, I have changed from SuPHP to FastCGI and its seems to be running smoothly but this may be different in your case, I guess its all down to the machine and what is running on it. FastCGI was quite slow at first but speeded up over time, I imagine it was creating a cache...
     
    #5 MrL22, Sep 30, 2011
    Last edited: Sep 30, 2011
  6. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Thanks. My actual question here is essentially this -

    If you migrate from DSO to suphp, there is a very specific migration procedure.

    Is that procedure exactly the same for migrating from DSO to FastCGI?

    Thanks.

    Mike
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Normally, FastCGI uses the same file permissions and ownership and suPHP, but I cannot state it would be seamless as sometimes the user runs into PHP coding issues or FastCGI functioning issues with using that handler.

    As any handler switch, you would want to perform it during a slow time for your users and tail the Apache error log at /usr/local/apache/logs/error_log location to see if any errors are outputting from sites upon the switch. You would also probably want to have a list of important sites and visit them in a browser to check they are functioning properly.
     
  8. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Thanks - that's exactly what I would plan to do. From your experience with other users who have moved to FCGI, does it seem to be a smooth transition that is usually glitch-free?
     
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Since my experience is in the ticket system when something goes wrong, it wouldn't be indicative of what normally occurs. I only see when it doesn't work out right :)
     
  10. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    A fine point :) Well then, when I do get to giving this a try, I will be certain to report back if it is indeed glitch-free (or not.)

    Thanks!

    mrk
     
  11. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    I would like to know what the outcome of your tests are, if you don't mind.
     
  12. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Sure - though I may not get to this for a while.

    I've seen a lot of other people refer to having switched to FCGI - any feedback from anybody else?

    mrk
     
  13. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    How did your switchover from suphp to fastcgi go? Did you run into any problems? Was the switchover seamless and transparent (to the end-user's websites)?
     
Loading...

Share This Page