Fix error Apache2 debian 9 server

vask0

New Member
Joined
Dec 28, 2018
Messages
1
Reaction score
0
Credits
0
hi guys,
how can i fix this?


Code:
sudo systemctl status apache2.service
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: [COLOR="red"]failed[/COLOR] (Result: exit-code) since Thu 2019-07-18 21:14:35 EEST; 36s ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 3668 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Jul 18 21:14:35 softi systemd[1]: Starting The Apache HTTP Server...
Jul 18 21:14:35 softi apachectl[3668]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/geoip.load: Cannot loa
Jul 18 21:14:35 softi apachectl[3668]: Action 'start' failed.
Jul 18 21:14:35 softi apachectl[3668]: The Apache error log may have more information.
Jul 18 21:14:35 softi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jul 18 21:14:35 softi systemd[1]: apache2.service: Failed with result 'exit-code'.
Jul 18 21:14:35 softi systemd[1]: [COLOR="Red"]Failed to start The Apache HTTP Server.[/COLOR]



Code:
service apache2 start
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.


Code:
/etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
 [COLOR="Red"]failed![/COLOR]
 


Hey there @vask0,

The error listed in your error message is:
Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/geoip.load

So you should look in those two places to see what's there.. also, if you do the journalctl -xe when you try the restart (easiest if you open a 2nd terminal) you should get some error(s).
 

Members online


Latest posts

Top