Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SSL cert throw /usr/sbin/httpd error

Discussion in 'Security' started by Malagana1, Dec 11, 2016.

  1. Malagana1

    Malagana1 Member

    Joined:
    Nov 25, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Hi, I just was triying to install a SSL cert for a domain and when I clicked install, I got the following error message, but I dont know where to look to fix it. It seems that something is wrong with the httpd.conf file but if checked with httpd -t it seems ok. Any idea?

    Code:
    The “/usr/sbin/httpd” command (process 28892) reported error number 1 when it ended.
    
    [Sun Dec 11 22:53:35.122542 2016] [so:warn] [pid 28892] AH01574: module mpm_prefork_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122569 2016] [so:warn] [pid 28892] AH01574: module cgi_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122582 2016] [so:warn] [pid 28892] AH01574: module access_compat_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122594 2016] [so:warn] [pid 28892] AH01574: module actions_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122609 2016] [so:warn] [pid 28892] AH01574: module alias_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122620 2016] [so:warn] [pid 28892] AH01574: module auth_basic_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122631 2016] [so:warn] [pid 28892] AH01574: module authn_core_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122642 2016] [so:warn] [pid 28892] AH01574: module authn_file_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122656 2016] [so:warn] [pid 28892] AH01574: module authz_core_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122667 2016] [so:warn] [pid 28892] AH01574: module authz_groupfile_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122677 2016] [so:warn] [pid 28892] AH01574: module authz_host_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122688 2016] [so:warn] [pid 28892] AH01574: module authz_user_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122702 2016] [so:warn] [pid 28892] AH01574: module autoindex_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122713 2016] [so:warn] [pid 28892] AH01574: module deflate_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122728 2016] [so:warn] [pid 28892] AH01574: module dir_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122742 2016] [so:warn] [pid 28892] AH01574: module expires_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122759 2016] [so:warn] [pid 28892] AH01574: module filter_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122773 2016] [so:warn] [pid 28892] AH01574: module headers_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122787 2016] [so:warn] [pid 28892] AH01574: module include_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122801 2016] [so:warn] [pid 28892] AH01574: module log_config_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122818 2016] [so:warn] [pid 28892] AH01574: module logio_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122832 2016] [so:warn] [pid 28892] AH01574: module mime_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122846 2016] [so:warn] [pid 28892] AH01574: module negotiation_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122860 2016] [so:warn] [pid 28892] AH01574: module proxy_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122876 2016] [so:warn] [pid 28892] AH01574: module proxy_fcgi_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122890 2016] [so:warn] [pid 28892] AH01574: module proxy_http_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122903 2016] [so:warn] [pid 28892] AH01574: module rewrite_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122918 2016] [so:warn] [pid 28892] AH01574: module setenvif_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122936 2016] [so:warn] [pid 28892] AH01574: module slotmem_shm_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122951 2016] [so:warn] [pid 28892] AH01574: module socache_dbm_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122964 2016] [so:warn] [pid 28892] AH01574: module socache_shmcb_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122978 2016] [so:warn] [pid 28892] AH01574: module status_module is already loaded, skipping
    [Sun Dec 11 22:53:35.122994 2016] [so:warn] [pid 28892] AH01574: module unique_id_module is already loaded, skipping
    [Sun Dec 11 22:53:35.123008 2016] [so:warn] [pid 28892] AH01574: module unixd_module is already loaded, skipping
    [Sun Dec 11 22:53:35.123021 2016] [so:warn] [pid 28892] AH01574: module userdir_module is already loaded, skipping
    [Sun Dec 11 22:53:35.123035 2016] [so:warn] [pid 28892] AH01574: module version_module is already loaded, skipping
    [Sun Dec 11 22:53:35.123070 2016] [so:warn] [pid 28892] AH01574: module pagespeed_module is already loaded, skipping
    [Sun Dec 11 22:53:35.123180 2016] [so:warn] [pid 28892] AH01574: module ssl_module is already loaded, skipping
    [Sun Dec 11 22:53:35.123198 2016] [so:warn] [pid 28892] AH01574: module bwlimited_module is already loaded, skipping
    [Sun Dec 11 22:53:35.123221 2016] [so:warn] [pid 28892] AH01574: module security2_module is already loaded, skipping
    [Sun Dec 11 22:53:35.123241 2016] [so:warn] [pid 28892] AH01574: module ruid2_module is already loaded, skipping
    AH00526: Syntax error on line 73 of [Test Configuration File]:
    Cache named /var/mod_pagespeed/cache/ already exists.
    If I do a /scripts/rebuildhttpdconf

    Code:
    [root@chrome conf]#  /scripts/rebuildhttpdconf
    info [rebuildhttpdconf] Missing IP for domain chrome.example.com, using 167.114.172.172
    info [rebuildhttpdconf] Missing ServerName for domain chrome.example.com, using chrome.example.com
    info [rebuildhttpdconf] Missing port for domain chrome.example.com, using 80
    info [rebuildhttpdconf] Missing user for domain chrome.example.com, using nobody
    info [rebuildhttpdconf] Missing owner for domain chrome.example.com, force lookup to root
    info [rebuildhttpdconf] Missing group for domain chrome.example.com, using nobody
    Initial configuration generation failed with the following message:
    
    The “/usr/sbin/httpd” command (process 27201) reported error number 1 when it ended.
    
    Rebuilding configuration without any local modifications.
    
    info [rebuildhttpdconf] Missing IP for domain chrome.example.com, using 167.114.172.172
    info [rebuildhttpdconf] Missing ServerName for domain chrome.example.com, using chrome.example.com
    info [rebuildhttpdconf] Missing port for domain chrome.example.com, using 80
    info [rebuildhttpdconf] Missing user for domain chrome.example.com, using nobody
    info [rebuildhttpdconf] Missing owner for domain chrome.example.com, force lookup to root
    info [rebuildhttpdconf] Missing group for domain chrome.example.com, using nobody
    Failed to generate a syntactically correct Apache configuration.
    Bad configuration file located at /etc/apache2/conf/httpd.conf.work.ZDxAxqM4
    Error:
    The “/usr/sbin/httpd” command (process 27204) reported error number 1 when it ended.
    And if I tried to open WHM -> Apache Configuration -> Include Editor the following messages appears:
    Code:
    Sorry, you cannot update the include files at this time. Your Apache configuration file currently has a syntax error.
    Error:
    
    The “/usr/sbin/httpd” command (process 2671) reported error number 1 when it ended.
     
    #1 Malagana1, Dec 11, 2016
    Last edited by a moderator: Dec 12, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify if this system is using EasyApache 3, or EasyApache 4? Also, you can review the include files in the following directory (assuming the system uses EA4) to see if you've added any custom changes:

    /etc/apache2/conf.d/includes/

    Could you let us know the contents of those files if they are populated with custom entries?

    Thank you.
     
  3. LoganHrth

    LoganHrth Registered

    Joined:
    Dec 28, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Washington
    cPanel Access Level:
    Root Administrator
    Hi Malagana1, et al.,

    I ran into this exact same error (mod_pagespeed installed), and our system is using EasyApache 4.
    Reviewing /etc/apache2/conf.d/includes, it contains the following files:
    • account_suspensions.conf
    • errordocument.conf
    • post_virtualhost_2.conf
    • pre_main_1.conf
    • pre_main_global.conf
    • pre_virtualhost_2.conf
    • post_virtualhost_1.conf
    • post_virtualhost_global.conf
    • pre_main_2.conf
    • pre_virtualhost_1.conf
    • pre_virtualhost_global.conf
    It appears they are all empty, except for account_suspensions.conf, which says:
    Code:
    # This include file is automatically generated by
    # /usr/local/cpanel/scripts/generate_account_suspension_include
    # Any manual edits inside this file will be lost whenever account
    # suspensions are updated.
    
    RewriteEngine On
    As well, errordocument.conf has configs for error codes:
    Code:
    # 400 - Bad Request
    ErrorDocument 400 /400.shtml
    
    # 401 - Unauthorized
    ErrorDocument 401 /401.shtml
    
    # 402 - Payment Required
    ErrorDocument 402 /402.shtml
    
    # 403 - Forbidden
    ErrorDocument 403 /403.shtml
    
    # 404 - Not Found
    ErrorDocument 404 /404.shtml
    
    # 405 - Method Not Allowed
    ErrorDocument 405 /405.shtml
    
    # 406 - Not Acceptable
    ErrorDocument 406 /406.shtml
    
    # 407 - Proxy Authentication Required
    ErrorDocument 407 /407.shtml
    
    # 408 - Request Timeout
    ErrorDocument 408 /408.shtml
    
    # 409 - Conflict
    ErrorDocument 409 /409.shtml
    
    # 410 - Gone
    ErrorDocument 410 /410.shtml
    
    # 411 - Length Required
    ErrorDocument 411 /411.shtml
    
    # 412 - Precondition Failed
    ErrorDocument 412 /412.shtml
    
    # 413 - Request Entity Too Large
    ErrorDocument 413 /413.shtml
    
    # 414 - Request-URI Too Large
    ErrorDocument 414 /414.shtml
    
    # 415 - Unsupported Media Type
    ErrorDocument 415 /415.shtml
    
    # 416 - Request Range Not Satisfiable
    ErrorDocument 416 /416.shtml
    
    # 417 - Expectation Failed
    ErrorDocument 417 /417.shtml
    
    # 422 - Unprocessable Entity
    ErrorDocument 422 /422.shtml
    
    # 423 - Locked
    ErrorDocument 423 /423.shtml
    
    # 424 - Failed Dependency
    ErrorDocument 424 /424.shtml
    
    # 500 - Internal Server Error
    ErrorDocument 500 /500.shtml
    
    # 501 - Not Implemented
    ErrorDocument 501 /501.shtml
    
    # 502 - Bad Gateway
    ErrorDocument 502 /502.shtml
    
    # 503 - Service Unavailable
    ErrorDocument 503 /503.shtml
    
    # 504 - Gateway Timeout
    ErrorDocument 504 /504.shtml
    
    # 505 - HTTP Version Not Supported
    ErrorDocument 505 /505.shtml
    
    # 506 - Variant Also Negotiates
    ErrorDocument 506 /506.shtml
    
    # 507 - Insufficient Storage
    ErrorDocument 507 /507.shtml
    
    # 510 - Not Extended
    ErrorDocument 510 /510.shtml
    
    
    I was just wondering what the solution was.
    What did you figure out?

    Thanks in advance,

    ~Logan
     
    #3 LoganHrth, Dec 28, 2016
    Last edited by a moderator: Dec 28, 2016
  4. bertelschmitt

    bertelschmitt Member

    Joined:
    Jun 5, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am having the same problem. When installing a new cert on a domain, it throws:

    The “/usr/sbin/httpd” command (process 11479) reported error number 1 when it ended. AH00526: Syntax error on line 28 of [Test Configuration File]: Cache named /var/cache/mod_pagespeed/ already exists.

    Happens both in WHM and in the Cpanel of the respective account. Mod_pagespeed is installed, Easyapache4. I tried disabling mod_pagespeed, no change. The completeky strange part is that /var/cache/mod_pagespeed/ does NOT exist. I created it, just in case, no change. I am unable to install the cert at this time
     
  5. bertelschmitt

    bertelschmitt Member

    Joined:
    Jun 5, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have filed a ticket on this.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    To update, it was determined to be an issue in the /etc/apache2/conf.modules.d/456_pagespeed.conf file where the cache directory was trying to be set, but already existed:

    This was resulting in Apache failing to rebuild or restart correctly. The issue was fixed once this line was removed.

    Thank you.
     
Loading...

Share This Page