<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
Hi,
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have Apache 2.4.6-93 running on a CentOS 7.8.2003 that is not starting using Systemd.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
If I do: <i>systemctl start httpd</i>, I get the following error:</div>
<blockquote style="margin-top:0px; margin-bottom:0px">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Nov 22 20:14:11 localhost systemd[1]: Failed to start The Apache HTTP Server.
<div>-- Subject: Unit httpd.service has failed</div>
<div>-- Defined-By: systemd</div>
<div>-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel</div>
<div>--</div>
<div>-- Unit httpd.service has failed.</div>
<div>--</div>
-- The result is failed.</div>
</blockquote>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
However, running 'httpd -k start' works!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
/usr/lib/systemd/system/httpd.service:</div>
<blockquote style="margin-top:0px; margin-bottom:0px">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
[Unit]
<div>Description=The Apache HTTP Server</div>
<div>After=network.target remote-fs.target nss-lookup.target</div>
<div>Documentation=man:httpd(8)</div>
<div>Documentation=man:apachectl(8)</div>
<div><br>
</div>
<div>[Service]</div>
<div>Type=notify</div>
<div>EnvironmentFile=/etc/sysconfig/httpd</div>
<div>ExecStart=/usr/sbin/httpd $OPTIONS -k start</div>
<div>ExecReload=/usr/sbin/httpd $OPTIONS -k graceful</div>
<div>ExecStop=/bin/kill -WINCH ${MAINPID}</div>
KillSignal=SIGCONT
<div>PrivateTmp=true</div>
<div><br>
</div>
<div>[Install]</div>
WantedBy=multi-user.target<br>
</div>
</blockquote>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
What could it be?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Lucas<br>
</div>
</div>
</body>
</html>