Control Web Panel
WebPanel => Updates => Topic started by: NetMonkey 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)
-
you need to check the service status and logs
-
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?
-
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.
-
Happened to me also but did not have time to look for the cause and did a restore. Today 170 updates :-[
-
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
-
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)?
-
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
-
http://forum.centos-webpanel.com/index.php?topic=9846.msg34493#msg34493
-
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?
-
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.