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!

Apache is not starting - apr_stat_fd

Discussion in 'EasyApache' started by Nandulal, Apr 5, 2018.

  1. Nandulal

    Nandulal Registered

    Joined:
    Apr 5, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    My apache service is not starting.
    Please see the error:
    CT-26494-bash-4.1# service httpd start
    Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_stat_fd
    [FAILED]

    I have removed the apr and apr-util and installed again using yum command.
    But the error still persists when starting apache.

    I have manually removed old libraries of apr and reinstall the latest version.

    Then the error becomes:

    CT-26494-bash-4.1# httpd -t
    httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory.

    I'm using easyapace4.

    Kindly help me to overcome this issue.
     
  2. rarod

    rarod Active Member

    Joined:
    Apr 20, 2017
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
  3. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,212
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Nandulal

    This does sound like the thread linked by @rarod and related to our internal case EA-7366 - updates for this were pushed last night

    If Apache is still down please do the following and let us know the results:


    Code:
    yum clean all
    yum update ea-*
    
    Once that's done ensure that ea-apr-util is >=1.6 you can do this with:

    Code:
    rpm -qi ea-apr-util
    Then, check to ensure all PHP versions have a handler set:

    Code:
    /usr/local/cpanel/bin/rebuild_phpconf --current
    If the output here is none there is an autofixer for this now:
    Code:
    /usr/local/cpanel/scripts/autorepair resolve_all_php_handlers_being_none
    
    
    Please let us know if this resolves the issue.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Nandulal

    Nandulal Registered

    Joined:
    Apr 5, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    Thank you for your help.

    There are no php handlers present.

    Also "yum update ea-*" result in errors:
    ---
    [Wed Apr 04 01:12:27.769550 2018] [alias:warn] [pid 523] AH00671: The Alias directive in /etc/apache2/conf/httpd.conf at line 7552 will probably never match because it overlaps an earlier Alias.

    ---

    Waiting for “httpd” to start ……warn [restartsrv_httpd] The system encountered an error while starting the “httpd” service with the command “/usr/sbin/apachectl start”: The subprocess reported error number 127 when it ended.
    …warn [restartsrv_httpd] The system encountered an error while starting the “httpd” service with the command “/usr/sbin/apachectl start”: The subprocess reported error number 127 when it ended.
    ---

    Failed:
    ea-apache24.x86_64 0:2.4.29-1.1.2.cpanel ea-apache24.x86_64 0:2.4.33-4.4.1.cpanel
    ea-apache24-config-runtime.noarch 0:1.0-119.119.7.cpanel ea-apache24-config-runtime.noarch 0:1.0-128.128.2.cpanel

    ---

    # /usr/local/cpanel/scripts/autorepair resolve_all_php_handlers_being_none

    httpd has failed. Contact your system administrator if the service does not automagically recover.
    !! PHP handlers are still all `none`!!
    This probably means there is a problem w/ an EA4 RPM. Once that is fixed run this script manually or configure the PHP handlers via WHM or /usr/local/cpanel/bin/rebuild_phpconf

    ---

    Kindly help me to know fix this issue.
     
  5. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,212
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,


    It looks like the two RPM's that are causing the issue are:

    Code:
    ea-apache24.x86_64 0:2.4.29-1.1.2.cpanel 
    ea-apache24-config-runtime.noarch 0:1.0-119.119.7.cpanel
    which are the older versions

    If you execute the following command:

    Code:
    rpm -qa |grep ea-apache24
    Can you post the output you get?

    Ultimately if apache is still down on this server, I'd advise opening a ticket to ensure the issue is resolved more quickly

    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice