title: "Job for httpd.service failed because the control process exited with error code." How do I fix this?
body: <p>After installing SSL certificates via Certbot, my website came up with the error message "too many redirects". After some research I thought I must have a redirect from HTTPS -> HTTP somewhere, so I tried to fix it but it seems that I made it worse, and Apache won't start anymore. I'm a total beginner, so I'm struggling to understand what is wrong.</p>
  
  <p>I'm setting up a VPS with CentOS7 accessed over SSH to host a simple html website. I set up the basics (relevant ones might be UFW Firewall, Cloudflare as DNS, Apache 2.4.6) and managed to display a test page on my domain. </p>
  
  <p>I then went on to setting up my virtual host with this tutorial: <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-7" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-7</a> 
  Followed by this tutorial to set up letsencrypt: <a href="https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-centos-7" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-centos-7</a></p>
  
  <p>After this, I initially got the error message "too many redirects" when trying to access my domain, which had previously worked normally. Whilst trying to fix this for four hours straight, I've now screwed things up to the point where Apache doesn't seem to start.</p>
  
  <p>Now when I do <code>$ sudo systemctl restart httpd</code> I get the error message "Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details."</p>
  
  <pre><code>[USER@host ~]$ sudo systemctl status httpd.service
  * httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Wed 2019-01-23 00:57:39 UTC; 20s ago
       Docs: man:httpd(8)
             man:apachectl(8)
    Process: 26023 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
    Process: 24468 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
    Process: 26021 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
   Main PID: 26021 (code=exited, status=1/FAILURE)
  
  Jan 23 00:57:39 host systemd[1]: Starting The Apache HTTP Server...
  Jan 23 00:57:39 host systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  Jan 23 00:57:39 host kill[26023]: kill: cannot find process ""
  Jan 23 00:57:39 host systemd[1]: httpd.service: control process exited, code=exited status=1
  Jan 23 00:57:39 host systemd[1]: Failed to start The Apache HTTP Server.
  Jan 23 00:57:39 host systemd[1]: Unit httpd.service entered failed state.
  Jan 23 00:57:39 host systemd[1]: httpd.service failed.
  </code></pre>
  
  <p>The only change I made to <code>/etc/httpd/conf/httpd.conf</code> was changing <code>IncludeOptional conf.d/*.conf</code> at the bottom to <code>IncludeOptional sites-enabled/*.conf</code></p>
  
  <p>My Virtual Host setup is currently as follows:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName www.example.com
      DocumentRoot /var/www/example.com/public_html
      Redirect / https://www.example.com/
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost _default_:443&gt;
      ServerName www.example.com
      ServerAlias example.com
      DocumentRoot /var/www/example.com/public_html
      ErrorLog /var/www/example.com/error.log
      CustomLog /var/www/example.com/requests.log combined
      SSLEngine on
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Would appreciate any pointers as to what might be wrong.</p>