Apache and easy build options for better php performance

Discussion in 'Site & Server Administration' started by ASTRAPI, Apr 25, 2011.

  1. #1
    Hello

    I want to ask what do you recommend me to check on easy apache build to get the best php performance possible?

    The server is dedicated and very powerfull and it has only one account in it.

    I am using cpanel and Centos.

    Is it better to use DSO or Fcgi ?

    At the moment i have check for build the:

    Asis
    Cache
    Disk cache
    Env
    Expires
    Mod fcgid
    File cache
    File protect
    Headers
    Mpm prefork
    proxy
    version
    Bcmath
    CGI
    Curl
    Ftp
    GD
    Iconv
    Imap
    Magic Quotes
    Mbregex
    Mysql
    Mysql of the system
    POSIX
    Path Info Check
    Pear
    Sockets
    TTF
    Zip
    Zlib


    So what do you think i must add or remove to get the maximum performance for php from Apache and php?

    Some users recommend me to use mod_php and some fast cgi and i don't know what are those and which is better and how to get them run using the easy apache build :(

    Please help me.

    Thank you
     
    ASTRAPI, Apr 25, 2011 IP
  2. VinCme

    VinCme Well-Known Member

    Messages:
    325
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Fastcgi is preferrable, you will gain a noticeable increase in performance.
     
    VinCme, Apr 25, 2011 IP
  3. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok i will wait for a few more opinions and recomandations :)

    fast cgi is the fcgid in php handler options?

    What do you think that i must remove or add from the above list on easy apache build?

    Thank you
     
    ASTRAPI, Apr 25, 2011 IP
  4. VinCme

    VinCme Well-Known Member

    Messages:
    325
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #4
    yes fast cgi is mod_fcgid,

    If you are going to use fastcgi as php handler, than yes you should add it before compiling easyapache.

    However there are some other thoughts regarding to fastcgi + eaccelerator vs dso + eaccelerator. fastcgi + eaccelerator can be used with mpm_worker, which is preferrable for high traffic website. On the other hand, dso + eaccelerator have better speed in php handling but can only be used with mpm_prefork.

    And if you are going to use either of them in shared environment, mod_security with custom ruleset is a must! or else your server will be unsecure.
     
    VinCme, Apr 25, 2011 IP
  5. saqib889

    saqib889 Peon

    Messages:
    1,291
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    GD, Fastcgi, ioncube and zend is recommended.
     
    saqib889, Apr 25, 2011 IP