Apache Problem
Posted: Mon Sep 25, 2017 9:11 pm
Hi guys, my apache doesn't start in my eve-ng. I've done a bare metal installation, I followed all necessary steps, funnily, everything is working normal, but I have to start manually the apache process. Has someone got this problem?
root@eve-ng:~# dpkg -l eve-ng
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================-==================-==================-============================================================
ii eve-ng 2.0.3-77 amd64 A new generation software for networking labs.
root@eve-ng:~# systemctl status apache2
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead) since Mon 2017-09-25 15:01:00 BRT; 3h 9min ago
Docs: man:systemd-sysv-generator(8)
Process: 4327 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 4153 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Sep 25 15:00:58 eve-ng systemd[1]: Starting LSB: Apache2 web server...
Sep 25 15:00:59 eve-ng apache2[4153]: * Starting Apache httpd web server apache2
Sep 25 15:00:59 eve-ng apache2[4153]: *
Sep 25 15:00:59 eve-ng apache2[4327]: * Stopping Apache httpd web server apache2
Sep 25 15:01:00 eve-ng apache2[4327]: *
Sep 25 15:01:00 eve-ng systemd[1]: Started LSB: Apache2 web server.
############after restart
root@eve-ng:~# systemctl restart apache2
root@eve-ng:~# systemctl status apache2
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Mon 2017-09-25 18:11:08 BRT; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 4327 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 11460 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Tasks: 6
Memory: 20.9M
CPU: 96ms
CGroup: /system.slice/apache2.service
├─11487 /usr/sbin/apache2 -k start
├─11492 /usr/sbin/apache2 -k start
├─11493 /usr/sbin/apache2 -k start
├─11495 /usr/sbin/apache2 -k start
├─11496 /usr/sbin/apache2 -k start
└─11497 /usr/sbin/apache2 -k start
Sep 25 18:11:07 eve-ng systemd[1]: Starting LSB: Apache2 web server...
Sep 25 18:11:07 eve-ng apache2[11460]: * Starting Apache httpd web server apache2
Sep 25 18:11:08 eve-ng apache2[11460]: *
Sep 25 18:11:08 eve-ng systemd[1]: Started LSB: Apache2 web server.
root@eve-ng:~# dpkg -l eve-ng
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================-==================-==================-============================================================
ii eve-ng 2.0.3-77 amd64 A new generation software for networking labs.
root@eve-ng:~# systemctl status apache2
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead) since Mon 2017-09-25 15:01:00 BRT; 3h 9min ago
Docs: man:systemd-sysv-generator(8)
Process: 4327 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 4153 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Sep 25 15:00:58 eve-ng systemd[1]: Starting LSB: Apache2 web server...
Sep 25 15:00:59 eve-ng apache2[4153]: * Starting Apache httpd web server apache2
Sep 25 15:00:59 eve-ng apache2[4153]: *
Sep 25 15:00:59 eve-ng apache2[4327]: * Stopping Apache httpd web server apache2
Sep 25 15:01:00 eve-ng apache2[4327]: *
Sep 25 15:01:00 eve-ng systemd[1]: Started LSB: Apache2 web server.
############after restart
root@eve-ng:~# systemctl restart apache2
root@eve-ng:~# systemctl status apache2
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Mon 2017-09-25 18:11:08 BRT; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 4327 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 11460 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Tasks: 6
Memory: 20.9M
CPU: 96ms
CGroup: /system.slice/apache2.service
├─11487 /usr/sbin/apache2 -k start
├─11492 /usr/sbin/apache2 -k start
├─11493 /usr/sbin/apache2 -k start
├─11495 /usr/sbin/apache2 -k start
├─11496 /usr/sbin/apache2 -k start
└─11497 /usr/sbin/apache2 -k start
Sep 25 18:11:07 eve-ng systemd[1]: Starting LSB: Apache2 web server...
Sep 25 18:11:07 eve-ng apache2[11460]: * Starting Apache httpd web server apache2
Sep 25 18:11:08 eve-ng apache2[11460]: *
Sep 25 18:11:08 eve-ng systemd[1]: Started LSB: Apache2 web server.