Apache Failed to Restart after Recompilation

Started by halimzhz, March 14, 2019, 08:32:55 PM

Previous topic - Next topic

halimzhz

Dear All,

I just do the recompilation on Apache and after finish it, my apache wont restart with error:

● httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2019-03-15 04:25:42 +08; 5min ago
  Process: 15017 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 27408 (code=exited, status=0/SUCCESS)

Mar 15 04:25:42 cwp.fpl.com.my systemd[1]: Starting Web server Apache...
Mar 15 04:25:42 cwp.fpl.com.my apachectl[15017]: AH00526: Syntax error on line 13 of /usr/local/apache/conf/sharedip.conf:
Mar 15 04:25:42 cwp.fpl.com.my apachectl[15017]: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Mar 15 04:25:42 cwp.fpl.com.my systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 15 04:25:42 cwp.fpl.com.my systemd[1]: Failed to start Web server Apache.
Mar 15 04:25:42 cwp.fpl.com.my systemd[1]: Unit httpd.service entered failed state.
Mar 15 04:25:42 cwp.fpl.com.my systemd[1]: httpd.service failed.

Please help. TQ


studio4host

This would fix it:

rm -f /usr/local/apache/conf/httpd.conf
yum reinstall cwp-httpd
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.

halimzhz

Dear studio4host

TQ so much, its work, this is make me so scare to do any update, can you tell me what the safe way to compile apache ? Maybe via command line ?

TQ so much


studio4host

you have rebuild option in cwp, but why do you need rebuild?
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.