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 restarting on VPS

Discussion in 'EasyApache' started by hmk, Apr 4, 2018.

  1. hmk

    hmk Member

    Joined:
    Aug 15, 2017
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    kiev
    cPanel Access Level:
    Root Administrator
    [root@dns ~]# systemctl restart httpd.service
    Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

    Code:
    [root@dns ~]# journalctl -xe
    -- The result is failed.
    Apr 04 15:12:27 dns.mysite.eu systemd[1]: Unit httpd.service entered fail
    Apr 04 15:12:27 dns.mysite.eu systemd[1]: httpd.service failed.
    Apr 04 15:12:27 dns.mysite.eu polkitd[618]: Unregistered Authentication A
    Apr 04 15:12:46 dns.mysite.eu spamd[1328]: prefork: killing failed child
    Apr 04 15:12:46 dns.mysite.eu spamd[1328]: prefork: killed child 8114
    Apr 04 15:14:44 dns.mysite.eu kernel: Firewall: *TCP_IN Blocked* IN=eth0
    Apr 04 15:14:55 dns.mysite.eu kernel: Firewall: *TCP_IN Blocked* IN=eth0
    Apr 04 15:15:01 dns.mysite.eu systemd[1]: Started Session 64 of user root
    -- Subject: Unit session-64.scope has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit session-64.scope has finished starting up.
    --
    -- The start-up result is done.
    Apr 04 15:15:01 dns.mysite.eu systemd[1]: Starting Session 64 of user roo
    -- Subject: Unit session-64.scope has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit session-64.scope has begun starting up.
    Apr 04 15:15:01 dns.mysite.eu CROND[8468]: (root) CMD (/usr/local/cpanel/
    lines 1975-1997/1997 (END)
    -- The result is failed.
    Apr 04 15:12:27 dns.mysite.eu systemd[1]: Unit httpd.service entered failed state.
    Apr 04 15:12:27 dns.mysite.eu systemd[1]: httpd.service failed.
    Apr 04 15:12:27 dns.mysite.eu polkitd[618]: Unregistered Authentication Agent for unix-pro
    Apr 04 15:12:46 dns.mysite.eu spamd[1328]: prefork: killing failed child 8114 fd=7 at /usr
    Apr 04 15:12:46 dns.mysite.eu spamd[1328]: prefork: killed child 8114
    Apr 04 15:14:44 dns.mysite.eu kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:50:56
    Apr 04 15:14:55 dns.mysite.eu kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=00:50:56
    Apr 04 15:15:01 dns.mysite.eu systemd[1]: Started Session 64 of user root.
    -- Subject: Unit session-64.scope has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit session-64.scope has finished starting up.
    --
    -- The start-up result is done.
    Apr 04 15:15:01 dns.mysite.eu systemd[1]: Starting Session 64 of user root.
    -- Subject: Unit session-64.scope has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit session-64.scope has begun starting up.
    Apr 04 15:15:01 dns.mysite.eu CROND[8468]: (root) CMD (/usr/local/cpanel/scripts/dcpumon-w
    lines 1975-1997/1997 (END)
     
    #1 hmk, Apr 4, 2018
    Last edited by a moderator: Apr 4, 2018
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Can you provide:

    Code:
    tail -50 /etc/apache2/logs/error_log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 @hmk

    I moderated your post due to a large number of IP's and identifying information, could you please repost once more with the following:

    -CODE tags (you can find a quick link for these in the toolbar under the + sign for include)
    -Remove any actual IP's and Domains
    -tail -10 rather than tail -50 might also be better in this instance as well.

    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. hmk

    hmk Member

    Joined:
    Aug 15, 2017
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    kiev
    cPanel Access Level:
    Root Administrator
    Code:
    [root@dns ~]# tail -10 /etc/apache2/logs/error_log
    [Wed Apr 04 00:56:26.937538 2018] [:error] [pid 14434] [client IP REMOVED:53520] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SHOW FULL COLUMNS FROM `dx_sitemeta` made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, rltdpstsplgn_plugin_init, bws_include_init, update_site_option, update_network_option, add_network_option
    [Wed Apr 04 00:56:50.237842 2018] [:error] [pid 16426] [client  IP REMOVED:58246] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SELECT meta_key, meta_value FROM dx_sitemeta WHERE meta_key IN ('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled', 'ms_files_rewriting') AND site_id = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), require('wp-includes/ms-settings.php'), wp_load_core_site_options
    [Wed Apr 04 00:56:50.238467 2018] [:error] [pid 16426] [client  IP REMOVED:58246] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SELECT meta_value FROM dx_sitemeta WHERE meta_key = 'site_name' AND site_id = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), require('wp-includes/ms-settings.php'), WP_Network->__construct, WP_Network->_set_site_name, get_network_option
    [Wed Apr 04 00:56:50.238889 2018] [:error] [pid 16426] [client  IP REMOVED:58246] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SELECT meta_value FROM dx_sitemeta WHERE meta_key = 'ms_files_rewriting' AND site_id = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), require('wp-includes/ms-settings.php'), ms_upload_constants, get_site_option, get_network_option
    [Wed Apr 04 00:56:50.370129 2018] [:error] [pid 16426] [client  IP REMOVED:58246] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SELECT meta_value FROM dx_sitemeta WHERE meta_key = 'active_sitewide_plugins' AND site_id = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), wp_get_active_network_plugins, get_site_option, get_network_option
    [Wed Apr 04 00:56:50.370602 2018] [:error] [pid 16426] [client  IP REMOVED:58246] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SELECT meta_value FROM dx_sitemeta WHERE meta_key = 'siteurl' AND site_id = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), wp_cookie_constants, get_site_option, get_network_option
    [Wed Apr 04 00:56:50.450636 2018] [:error] [pid 16426] [client  IP REMOVED:58246] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SELECT meta_value FROM dx_sitemeta WHERE meta_key = 'bstwbsftwppdtplgns_options' AND site_id = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, rltdpstsplgn_plugin_init, bws_include_init, get_site_option, get_network_option
    [Wed Apr 04 00:56:50.451867 2018] [:error] [pid 16426] [client  IP REMOVED:58246] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SHOW FULL COLUMNS FROM `dx_sitemeta` made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, rltdpstsplgn_plugin_init, bws_include_init, add_site_option, add_network_option
    [Wed Apr 04 00:56:50.452802 2018] [:error] [pid 16426] [client  IP REMOVED:58246] WordPress database error Table './mysite_ueu/dx_sitemeta' is marked as crashed and should be repaired for query SHOW FULL COLUMNS FROM `dx_sitemeta` made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, rltdpstsplgn_plugin_init, bws_include_init, update_site_option, update_network_option, add_network_option
    [Wed Apr 04 00:56:53.831521 2018] [mpm_prefork:notice] [pid 10236] AH00169: caught SIGTERM, shutting down
     
    #4 hmk, Apr 4, 2018
    Last edited by a moderator: Apr 4, 2018
  5. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    What happens if you

    Code:
    /scripts/rebuildhttpdconf
    /scripts/restartsrv_apache
    I would also repair that database table if you haven't already.

    Code:
    mysqlcheck -r mysite_ueu dx_sitemeta
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. hmk

    hmk Member

    Joined:
    Aug 15, 2017
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    kiev
    cPanel Access Level:
    Root Administrator
    [root@dns ~]# /scripts/rebuildhttpdconf
    /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
    /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
    /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
    warn [rebuildhttpdconf] Invalid Apache Config File, /usr/sbin/httpd
    /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
    /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
    warn [rebuildhttpdconf] Invalid Apache Config File, /usr/sbin/httpd
    warn [rebuildhttpdconf] Unable to detect Apache version from binary
    Can't use string ("Unable to detect Apache version "...) as a HASH ref while "strict refs" in use at /usr/local/cpanel/Cpanel/AdvConfig.pm line 68.

    Problem with Recent EasyApache Update | cPanel Blog (problem not solved with that patch)

    [root@dns ~]# ldd /usr/sbin/httpd
    linux-vdso.so.1 => (0x00007fffbede6000)
    libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f271cbb0000)
    libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f271c988000)
    libaprutil-1.so.0 => not found
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f271c751000)
    libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f271c526000)
    libdb-5.3.so => /lib64/libdb-5.3.so (0x00007f271c167000)
    libapr-1.so.0 => not found
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f271bf4a000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f271bd46000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f271b983000)
    /lib64/ld-linux-x86-64.so.2 (0x0000557cf2405000)
    libfreebl3.so => /lib64/libfreebl3.so (0x00007f271b77f000)


    [root@dns ~]# /opt/cpanel/ea-apr16/lib64/libapr-1.so.0
    Segmentation fault (core dumped)
    [root@dns ~]# /opt/cpanel/ea-apr16/lib64/libaprutil-1.so.0
    Segmentation fault (core dumped)
    [root@dns ~]#
     
    #6 hmk, Apr 4, 2018
    Last edited by a moderator: Apr 5, 2018
  7. 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 @hmk

    Can you please open a ticket so that we can take a closer look? Once the ticket is open please add the ticket number here so we can track it as well.


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. hmk

    hmk Member

    Joined:
    Aug 15, 2017
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    kiev
    cPanel Access Level:
    Root Administrator
    i managed to solve this issue myself thanks
     
  9. 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 @hmk

    Thank you for the update I'm happy to hear that the issue is resolved. If you can, please post the steps taken to resolve the issue here so that they may help someone else experiencing the issue.


    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