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.

Missing fcgid.c

Discussion in 'General Discussion' started by OooLong, May 1, 2014.

  1. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    I recently start using fcgid by selecting fcgi in Service Configuration, but whenusing httpd -l, it doesn't list fcgid.c as installed. Why is it not showing up?

    Code:
    root@superm [/usr/local/apache/bin]# ./apachectl -M
    Loaded Modules:
     core_module (static)
     authn_file_module (static)
     authn_core_module (static)
     authz_host_module (static)
     authz_groupfile_module (static)
     authz_user_module (static)
     authz_core_module (static)
     access_compat_module (static)
     auth_basic_module (static)
     socache_shmcb_module (static)
     socache_dbm_module (static)
     so_module (static)
     include_module (static)
     filter_module (static)
     http_module (static)
     mime_module (static)
     log_config_module (static)
     logio_module (static)
     expires_module (static)
     headers_module (static)
     setenvif_module (static)
     proxy_module (static)
     proxy_connect_module (static)
     proxy_http_module (static)
     slotmem_shm_module (static)
     ssl_module (static)
     mpm_prefork_module (static)
     unixd_module (static)
     status_module (static)
     autoindex_module (static)
     info_module (static)
     suexec_module (static)
     cgi_module (static)
     negotiation_module (static)
     dir_module (static)
     actions_module (static)
     userdir_module (static)
     alias_module (static)
     rewrite_module (static)
     bwlimited_module (shared)
     fcgid_module (shared)
    
    root@superm [/usr/local/apache/bin]# ./httpd  -l
    Compiled in modules:
      core.c
      mod_authn_file.c
      mod_authn_core.c
      mod_authz_host.c
      mod_authz_groupfile.c
      mod_authz_user.c
      mod_authz_core.c
      mod_access_compat.c
      mod_auth_basic.c
      mod_socache_shmcb.c
      mod_socache_dbm.c
      mod_so.c
      mod_include.c
      mod_filter.c
      http_core.c
      mod_mime.c
      mod_log_config.c
      mod_logio.c
      mod_expires.c
      mod_headers.c
      mod_setenvif.c
      mod_proxy.c
      mod_proxy_connect.c
      mod_proxy_http.c
      mod_slotmem_shm.c
      mod_ssl.c
      prefork.c
      mod_unixd.c
      mod_status.c
      mod_autoindex.c
      mod_info.c
      mod_suexec.c
      mod_cgi.c
      mod_negotiation.c
      mod_dir.c
      mod_actions.c
      mod_userdir.c
      mod_alias.c
      mod_rewrite.c
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can use the following command to see if it's used as your PHP handler:

    Code:
    /usr/local/cpanel/bin/rebuild_phpconf --current
    Thank you.
     
  3. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Michael,

    The reason I'm asking this is because if it is currently using fcgi handler. Does this directives still work? If there is no mod_fcgid.c found from httpd -l? Thanks.

    <IfModule mod_fcgid.c>
    FcgidBusyScanInterval 90
    FcgidBusyTimeout 600
    FcgidErrorScanInterval 3
    FcgidFixPathinfo 1
    FcgidIdleScanInterval 70
    FcgidIdleTimeout 360
    FcgidIOTimeout 1000
    FcgidMaxProcesses 1000
    FcgidMaxProcessesPerClass 100
    FcgidMaxRequestInMem 268435456
    FcgidMaxRequestLen 1073741824
    FcgidMaxRequestsPerProcess 0
    FcgidMinProcessesPerClass 3
    FcgidOutputBufferSize 1048576
    FcgidPassHeader HTTP_AUTHORIZATION
    FcgidProcessLifeTime 3600
    FcgidSpawnScore 1
    FcgidSpawnScoreUpLimit 10
    FcgidTerminationScore 2
    FcgidTimeScore 2
    FcgidZombieScanInterval 3
    </IfModule>
     
    #3 OooLong, May 1, 2014
    Last edited: May 1, 2014
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    So this line is still valid <IfModule mod_fcgid.c> even when mod_fcgid.c is not list in httpd -l?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, as long as you have enabled FastCGI support for the Apache web server via EasyApache. Note that it's normal to not see that module listed when using "httpd -l".

    Thank you.
     
  7. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Last question. Here is my out put for /usr/local/cpanel/bin/rebuild_phpconf --current

    Code:
    Available handlers: suphp fcgi cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: none
    PHP5 SAPI: fcgi
    SUEXEC: enabled
    RUID2: not installed
    Here is my httpd -l:

    Code:
    Compiled in modules:
      core.c
      mod_authn_file.c
      mod_authn_core.c
      mod_authz_host.c
      mod_authz_groupfile.c
      mod_authz_user.c
      mod_authz_core.c
      mod_access_compat.c
      mod_auth_basic.c
      mod_socache_shmcb.c
      mod_socache_dbm.c
      mod_so.c
      mod_include.c
      mod_filter.c
      http_core.c
      mod_mime.c
      mod_log_config.c
      mod_logio.c
      mod_expires.c
      mod_headers.c
      mod_setenvif.c
      mod_proxy.c
      mod_proxy_connect.c
      mod_proxy_http.c
      mod_slotmem_shm.c
      mod_ssl.c
      worker.c
      mod_unixd.c
      mod_status.c
      mod_autoindex.c
      mod_info.c
      mod_suexec.c
      mod_cgi.c
      mod_negotiation.c
      mod_dir.c
      mod_actions.c
      mod_userdir.c
      mod_alias.c
      mod_rewrite.c
    I double checked and FastCGI is enabled via EasyApache. Any idea why it is not listed? does it still work 100% as is?
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, as mentioned, it's normal to not see that module listed when using "httpd -l" because it's compiled into the source. You could run "service httpd status" and look for the "mod_fcgid" under the "Server Status" information.

    Thank you.
     
Loading...

Share This Page