title: Apache Server: Editing httpd.conf file (permission denied)
body: <p>So I just recently downloaded Apache server with all of its files (httpd, apr, apr-util, pcre) following the instructions dictated here: <a href="http://httpd.apache.org/docs/2.4/install.html" rel="noreferrer">http://httpd.apache.org/docs/2.4/install.html</a></p>
  
  <p>However, after set-up, when I tried to start my Apache server, which is located in my usr/local/bin/, I was prompted with this message:</p>
  
  <pre><code>[allen@allen-lnx ~]$ /usr/local/bin/apachectl start
  (13)Permission denied: AH00091: httpd: could not open error log file /usr/local/logs/error_log.
  AH00015: Unable to open logs
  </code></pre>
  
  <p>After some research, I have found that I need to edit my httpd.conf file, which I did so earlier to allow for the correct ServerName and Listen options.  However, I am unsure as to how to edit my conf file to allow for access to the "logs" directory.</p>
  
  <p>Notably, the command will run when I use the "sudo" command, but I would prefer to not always use that since it seems like a work around.</p>
  
  <p>Any help would appreciated. Thanks!</p>
  
  <p><strong>Edit:</strong> I've actually noticed that I may have two httpd.conf files, which is proving to be a little troublesome.  The other one is located in my root /etc/ directory (etc/httpd/conf/httpd.conf).  I think my modified question now is... which one should I be keeping?  Is the /etc/ version the one that is built in, as indicated by faff's comment below?</p>
  
  <p><strong>Current Solution:</strong> I figured I would just accept the fact that I need to use sudo when editing this file since I need to be root.  I might change it later so that I'm always running as root, but for now, <code>sudo</code> will suffice.</p>