Author Topic: Apache Failed to Restart after Recompilation  (Read 10523 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apache Failed to Restart after Recompilation
« on: March 14, 2019, 08:32:55 PM »
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


Offline
*
Re: Apache Failed to Restart after Recompilation
« Reply #1 on: March 14, 2019, 08:47:49 PM »
This would fix it:

Code: [Select]
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.

Offline
*
Re: Apache Failed to Restart after Recompilation
« Reply #2 on: March 14, 2019, 09:12:34 PM »
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


Offline
*
Re: Apache Failed to Restart after Recompilation
« Reply #3 on: March 15, 2019, 10:08:57 AM »
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.