1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache is not restarting on VPS

Discussion in 'Web Hosting' started by hmk20009, Apr 4, 2018.

  1. #1
    [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.


    [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: 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: 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: 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: 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)



    any help will be appreciated
     
    hmk20009, Apr 4, 2018 IP
  2. Chiedo

    Chiedo Member

    Messages:
    30
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    25
    #2
    You're probably going to need to add more details. What changed? What led you to run the "systemctl restart httpd.service" command in the first place? Were you changing Apache configs? Did the server crash on it's own? or

    If you changed server configs, change them back and try to restart it

    If the server crashed on it's own. Look at /var/log/syslog (that's where it is in Ubuntu) and look for any errors that may have caused the crash.

    Ultimately, it's extremely hard to debug without WAY more info :)
     
    Chiedo, Apr 4, 2018 IP
  3. hmk20009

    hmk20009 Active Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #3
    i think server crashed, vps is centos and cpanel.

    I tried restarting apache, update apache scripts, rebuild config etc nothing helped me.
     
    hmk20009, Apr 4, 2018 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    Hello,

    Check to make sure that you are not having disk issues. Can you write to the disk?

    Regards,
    Chris
     
    RHS-Chris, Apr 4, 2018 IP
  5. hmk20009

    hmk20009 Active Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #5
    yes, i can write to the disk
     
    hmk20009, Apr 4, 2018 IP
  6. hmk20009

    hmk20009 Active Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #6
    https://blog.cpanel.com/problem-with-recent-easyapache-update/ (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 ~]#
     
    hmk20009, Apr 4, 2018 IP
  7. RomanEpo

    RomanEpo Active Member

    Messages:
    127
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    78
    #7
    This is something wrong you config file. how you configure this service ? auto script installation or manually configured service.Check service status and error log.
     
    RomanEpo, Apr 5, 2018 IP
  8. hmk20009

    hmk20009 Active Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #8
    update to EasyApache4 wherein after the update was installed Apache service is not working or failing to restart properly.

    following commands didn't solve the issue

    yum clean all
    yum -y update

    /usr/local/cpanel/bin/rebuild_phpconf --current

    /usr/local/cpanel/bin/rebuild_phpconf --ea-php55=cgi --ea-php56=suphp
     
    hmk20009, Apr 5, 2018 IP
  9. Chiedo

    Chiedo Member

    Messages:
    30
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    25
    #9
    If you updated Apache, you need to do a Google search and find the Apache 4 default Apache config. Switch that out with your current config. And update all your sites-available with the new versions of their configs and you'll be good to go. If none of that made sense to you, you've got a long journey ahead of you as far as server administration goes. I'm great at it but I rarely waste my time doing it because it's such a black hole of time unless you're doing it at scale.
     
    Chiedo, Apr 5, 2018 IP
  10. hmk20009

    hmk20009 Active Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #10
    i have managed to solve the issue myself for my server.
     
    hmk20009, Apr 5, 2018 IP
  11. dts-net

    dts-net Well-Known Member

    Messages:
    71
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    175
    #11
    was the vps using to many inodes
     
    dts-net, May 31, 2018 IP