systemd timeout - httpd.service always fails
systemd timeout - httpd.service always fails
Hi,
httpd.service always fails to start in server.
When we manually start httpd everything works perfectly.
b ~]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2017-05-11 02:35:34 IST; 1h 3min ago
Process: 5954 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS)
Main PID: 6539 (httpd)
CGroup: /system.slice/httpd.service
├─ 6539 /usr/sbin/httpd -k start
├─ 6541 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
├─13637 /usr/sbin/httpd -k start
├─13973 /usr/sbin/httpd -k start
├─14730 /usr/sbin/httpd -k start
├─14737 /usr/sbin/httpd -k start
├─14738 /usr/sbin/httpd -k start
├─16759 /usr/sbin/httpd -k start
├─17209 /usr/sbin/httpd -k start
├─17253 /usr/sbin/httpd -k start
├─17449 /usr/sbin/httpd -k start
├─17693 /usr/sbin/httpd -k start
└─17695 /usr/sbin/httpd -k start
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/myassign/public_html/home/moneyinfo/public_html/m] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/newstudentstudie/public_html/newstudent.newstudentstudi...ot exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/nikitisco/public_html/mailer.nikitis.co.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/tajsoft1/public_html/store.tajsoftexporters.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/majitappaadiwasifoundation.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/meharcharitablesociety.com] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/meharcharitablesociety.org] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/shivgramodayschool.in] does not exist
May 11 02:35:32 chenab.serverforhost.com systemd[1]: PID file /run/apache2/httpd.pid not readable (yet?) after start.
May 11 02:35:34 chenab.serverforhost.com systemd[1]: Started Apache web server managed by cPanel EasyApache.
Hint: Some lines were ellipsized, use -l to show in full.
[root@chenab ~]# systemctl --version
systemd 233
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS -ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS -KMOD +IDN default-hierarchy=hybrid
[root@chenab ~]#
Please let me know if there is anything else that I can provide in order to diagnose this problem.
httpd.service always fails to start in server.
When we manually start httpd everything works perfectly.
b ~]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2017-05-11 02:35:34 IST; 1h 3min ago
Process: 5954 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS)
Main PID: 6539 (httpd)
CGroup: /system.slice/httpd.service
├─ 6539 /usr/sbin/httpd -k start
├─ 6541 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
├─13637 /usr/sbin/httpd -k start
├─13973 /usr/sbin/httpd -k start
├─14730 /usr/sbin/httpd -k start
├─14737 /usr/sbin/httpd -k start
├─14738 /usr/sbin/httpd -k start
├─16759 /usr/sbin/httpd -k start
├─17209 /usr/sbin/httpd -k start
├─17253 /usr/sbin/httpd -k start
├─17449 /usr/sbin/httpd -k start
├─17693 /usr/sbin/httpd -k start
└─17695 /usr/sbin/httpd -k start
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/myassign/public_html/home/moneyinfo/public_html/m] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/newstudentstudie/public_html/newstudent.newstudentstudi...ot exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/nikitisco/public_html/mailer.nikitis.co.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/tajsoft1/public_html/store.tajsoftexporters.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/majitappaadiwasifoundation.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/meharcharitablesociety.com] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/meharcharitablesociety.org] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/shivgramodayschool.in] does not exist
May 11 02:35:32 chenab.serverforhost.com systemd[1]: PID file /run/apache2/httpd.pid not readable (yet?) after start.
May 11 02:35:34 chenab.serverforhost.com systemd[1]: Started Apache web server managed by cPanel EasyApache.
Hint: Some lines were ellipsized, use -l to show in full.
[root@chenab ~]# systemctl --version
systemd 233
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS -ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS -KMOD +IDN default-hierarchy=hybrid
[root@chenab ~]#
Please let me know if there is anything else that I can provide in order to diagnose this problem.
Re: systemd timeout - httpd.service always fails
It's a cpanel system, you need to ask them for support.├─ 6541 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: systemd timeout - httpd.service always fails
Isn't systemd and httpd part of centos? You copied/quoted only one thing from cPanel which just happened to be apart of that group. The issue is still with systemd isn't it?
Re: systemd timeout - httpd.service always fails
No, the issue is with your cpanel supplied httpd. Once you put cpanel on a machine it ceases to be CentOS and becomes cpanel.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: systemd timeout - httpd.service always fails
@TrevorH Systemd is a core component of all Redhat based Operating systems. It is not under the control of cPanel or cPanel's bundled software. Can you explain how this is cPanel related?
Re: systemd timeout - httpd.service always fails
CPanel replaces and modifies many standard CentOS packages. For example your httpd package has been adapted and replaced as you can see from your httpd.service file, where ExecStart is using a CPanel specific script.
The modifications by CPanel are so extensive that you really need to seek advise from CPanel support or forums.# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2017-05-11 02:35:34 IST; 1h 3min ago
Process: 5954 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS)
Re: systemd timeout - httpd.service always fails
This is not a systemd problem, it's an Apache httpd problem and the copy of that that you are running is cpanel's.Can you explain how this is cPanel related?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: systemd timeout - httpd.service always fails
systemd is causing high load though all the time. It ends up getting so high after 12-24 hours that the server locks up. cPanel states that cPanel doesn't ship with systemd nor modifies it so who am I supposed to go to for support about this? Everyone is pointing the finger at the other guy.
Re: systemd timeout - httpd.service always fails
Disclaimer: I have never worked with cPanel. According to https://blog.cpanel.com/the-future-is-n ... -centos-7/ cPanel comes with systemd.