Hi, I’m trying to start apache2, inside the Parrot terminal of the VM in HTB Viewer After I installed apache2 with sudo apt install apache2 -y I entered this command: systemctl start apache2.service But i got “Job for apache2.service failed” and when I check the status it says Active: failed (Result: exit-code) systemctl start apache2.service ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to start ‘apache2.service’. Authenticating as: , (user283623) Password: ==== AUTHENTICATION COMPLETE === Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details. ┌─[✗]─[user283623@htb-zdt33xtkjk]─[~] └──╼ $sudo systemctl status apache2.service ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; disabled; vendor pres> Active: failed (Result: exit-code) since Wed 2021-09-15 22:28:46 UTC; 24s > Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4 Process: 4487 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FA> CPU: 23ms lines 1-6/6 (END) Can you help me understand why it’s Active:failed ? Thanks for your answers
Also I have this error in the logs [Thu Sep 16 08:58:56.583514 2021] [core:warn] [pid 6026] AH00111: Config variable ${APACHE_RUN_DIR} is not defined apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot