title: Get localhost running on mac OS X Yosemite
body: <p>I have updated my OS to Yosemite and the only issue I have is that my localhost is not working anymore. Please excuse if the questions sounds dumb but I have limited knowledge about servers.</p>
  
  <p>with Mavericks I was able to use <code>localhost</code> and <code>customdomain.dev</code> right after a system start. Also my MySQL server has been started without any actions</p>
  
  <p>Now Google Chrome throws an <code>ERR_CONNECTION_REFUSED</code> error when using localhost.</p>
  
  <p>I run</p>
  
  <pre><code>apachectl configtest
  </code></pre>
  
  <p>which returns</p>
  
  <pre><code>httpd: Syntax error on line 58 of /private/etc/apache2/httpd.conf: Cannot load libexec/apache2/mod_authn_default.so into server: dlopen(/usr/libexec/apache2/mod_authn_default.so, 10): image not found
  </code></pre>
  
  <p>if I comment out this line it continues with other modules. When I comment out all modules which causes this syntax error I get</p>
  
  <pre><code>AH00526: Syntax error on line 131 of /private/etc/apache2/httpd.conf:
  Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration
  </code></pre>
  
  <p>I'm using the <code>httpd.conf</code> file from Mavericks (where everything worked fine)</p>
  
  <p>I have no idea what I should do next</p>