Author Topic: After updates 11.14.20 Apache failed to start  (Read 8677 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
After updates 11.14.20 Apache failed to start
« on: November 14, 2020, 05:53:17 PM »
I just did the most recent updates a few minutes ago, and after they completed successfully, Apache failed to start. I tried command line, but that attempt failed to restart Apache also. What's the answer to restart Apache? Log files says this:

httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2020-11-14 11:44:24 CST; 2min 43s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 31934 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 18391 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 18391 (code=exited, status=1/FAILURE)

Offline
*
Re: After updates 11.14.20 Apache failed to start
« Reply #1 on: November 16, 2020, 11:28:37 AM »
you need to check the service status and logs
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: After updates 11.14.20 Apache failed to start
« Reply #2 on: November 18, 2020, 07:30:22 PM »
I did read server logs. What I finally had to do after 3 hours troubleshooting was restore a complete backup. Now my control panel says there are 174 updates, but I don't want to install them and put down Apache again. What's the answer here?

Is there a good way the perform updates? Should I stop Apache and any other services before applying updates?

Offline
*
Re: After updates 11.14.20 Apache failed to start
« Reply #3 on: November 19, 2020, 09:42:29 AM »
I did read server logs. What I finally had to do after 3 hours troubleshooting was restore a complete backup. Now my control panel says there are 174 updates, but I don't want to install them and put down Apache again. What's the answer here?

Is there a good way the perform updates? Should I stop Apache and any other services before applying updates?

You can do the necessary updates with the yum -y update command.

You can also get a more detailed view with the service httpd status -l command. We can check if you share the mistakes you received.

Offline
*
Re: After updates 11.14.20 Apache failed to start
« Reply #4 on: November 19, 2020, 09:57:14 AM »
Happened to me also but did not have time to look for the cause and did a restore. Today 170 updates :-[

Offline
*
Re: After updates 11.14.20 Apache failed to start
« Reply #5 on: November 19, 2020, 10:02:05 AM »
I had the same problem this morning.

It seems that Apache is using the wrong conf file (not the CWP one) and that /etc/init.d/httpd is missing

Apache is using /etc/httpd/conf/httpd.conf and not /usr/local/apache/conf/httpd.conf
« Last Edit: November 19, 2020, 10:09:22 AM by dzseti »

Offline
*
Re: After updates 11.14.20 Apache failed to start
« Reply #6 on: November 19, 2020, 12:48:15 PM »
I've made updates this morning, and don't see any errors.
Hm..are this errors common thing after updates (I am new to CWP)?

Re: After updates 11.14.20 Apache failed to start
« Reply #7 on: November 19, 2020, 02:23:22 PM »
I've made updates this morning, and don't see any errors.
Hm..are this errors common thing after updates (I am new to CWP)?
No errors here.
Generally, yum updates are safe (unless someone has been messing about with settings).
Generally, CWP updates can be problematic.  :-X

Offline
*
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: After updates 11.14.20 Apache failed to start
« Reply #9 on: November 23, 2020, 03:38:06 PM »
It just happened again! There was an updates message inside of CWP saying there were 169 updates available. I did the updates, and Apache failed to load after the updates and all of my websites are down.

Bad coding developers!!! How does this happen? Why am I paying for CWP pro, to have problems like this?

When checking Apache status it says:

Syntax error on line 359 of /etc/httpd/conf/httpd.conf  (at the end of httpd.conf) the line reads - IncludeOptional conf.d/*.conf

What is the fix here?



Offline
*
Re: After updates 11.14.20 Apache failed to start
« Reply #10 on: November 23, 2020, 04:06:06 PM »
I've just ran the command - service httpd status (which said it was not running). The posts I've read talked about a different httpd.conf file location after a different update a few years ago. So I following the commands that fixed that person's problem.

I used the command - yum reinstall cwp-httpd (and it installed correctly). Then I tried to restart Apache and still won't start. What's this I read about two different file locations for httpd.conf? What's the fix? Do I have to move or edit a file?

Help would be greatly appreciated. All of my websites are down right now at 10:05 am central time US on 11.23.20.