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.

Info reguarding of different Apache modules used in combination

Discussion in 'Workarounds and Optimization' started by joomla, Sep 23, 2014.

  1. joomla

    joomla Well-Known Member

    Jul 23, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    I am setting dedicated server for shared hosting. I read official cPanel, Apache and CloudLinux documentation, and Igor Seletski blog, and I set server like bellow settings. I am bothering does those setting are compatibile, or I made somwhere some error. I do please for ansfer. Thanks in advance! :)

    Server CPU e3-1246 v3, 4 cores (2 logical per), under cPanel I see 8 proccessors with 3500 Ghz, and because of EIST technology it shows actual uses.
    32 GB RAM DDR3.
    2x2 TB Disk, Software Raid 1, I/O 6Gb/s.
    Server is connected on 200 mib/s.

    I use this configuration:

    Default PHP version 5
    PHP Hendler FastCgi
    Suexec on
    Mod Ruid2 off
    Apache settings:
    All settings are PCI reccomended
    Start servers 36
    Min spare servers 36
    Max spare servers 72
    Server limit 512
    Max clients 500
    Keep alive on
    Keep alive timeout 5
    Max request per child 10000
    Keep alive requests 120
    Timeout 60
    Eaccelerator enabled
    I included this settings under Pre Virtual Host include:
    <IfModule mod_fcgid.c>
        FcgidMaxRequestLen 1073741824
        FcgidMinProcessesPerClass 0 
        FcgidMaxProcessesPerClass 10 
        FcgidMaxProcesses 512
        FcgidIdleTimeout 60 
        FcgidProcessLifeTime 120 
        FcgidIdleScanInterval 30
    # Cache Control Settings for one hour cache
    <FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
    Header set Cache-Control "max-age=3600, public"
    <FilesMatch ".(xml|txt)$">
    Header set Cache-Control "max-age=3600, public, must-revalidate"
    <FilesMatch ".(html|htm)$">
    Header set Cache-Control "max-age=3600, must-revalidate"
    # Mod Deflate performs data compression
    <IfModule mod_deflate.c>
    <FilesMatch ".(js|css|html|php|xml|jpg|png|gif)$">
    SetOutputFilter DEFLATE
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch bMSIE no-gzip
    Thanks for your time and any suggestion. Primarly I bother is there some error I do not know, or is there some incompatibility with mod_expire, mod_deflate, Eaccelerator and mod fcgid used together.

    Many thanks for answer! :)

    Best regards!
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

Share This Page