Page 1 of 1

Apache Problem

Posted: Mon Sep 25, 2017 9:11 pm
by gcastbr
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.

Re: Apache Problem

Posted: Tue Sep 26, 2017 3:56 am
by TheBananaTurtle
Yes, I have this exact same issue. I too installed from Bare Metal.
Not much of a Linux person, so thanks for posting how to restart apache, that enables me to log in once I restart it.

Re: Apache Problem

Posted: Tue Sep 26, 2017 8:06 am
by ramindia
TheBananaTurtle wrote:
Tue Sep 26, 2017 3:56 am
Yes, I have this exact same issue. I too installed from Bare Metal.
Not much of a Linux person, so thanks for posting how to restart apache, that enables me to log in once I restart it.
Use below command to start automatically after reboot also.
systemctl enable apache2
R!

Re: Apache Problem

Posted: Sat Oct 07, 2017 4:15 pm
by gcastbr
Hi,

I tried if "enable" but even that, every time that I start my eve I need to start the apace2 manually.

Is there any solution?

Re: Apache Problem

Posted: Sun Oct 08, 2017 7:40 am
by ramindia
gcastbr wrote:
Sat Oct 07, 2017 4:15 pm
Hi,

I tried if "enable" but even that, every time that I start my eve I need to start the apace2 manually.

Is there any solution?
Looks like v81 released and have fix for this issue as per the change log, worth upgrading to v81.

make sure you proceed with steps as mentioned in the document.

R!

Re: Apache Problem

Posted: Fri Oct 13, 2017 7:10 pm
by gcastbr
Hi, Thanks for this feedback. After upgrade everything is going well.

Regards