title: Phusion Passenger / Apache Not Running Correctly on Mac OSX Maverick
body: <p>After updating to OS X Maverick on my MacBook, my local dev environment was broken - <a href="https://stackoverflow.com/questions/19543094/apache-httpd-h-file-missing-on-macosx-after-mavericks-upgrade">Apache httpd.h file missing on MacOSX after Mavericks Upgrade (** Updated for Yosemite **)</a></p>
  
  <p>Now after resolving the issues I can't seem to run my local web server on port 80 (<code>localhost</code>).</p>
  
  <p>If I go to 'localhost' I see <code>It works!</code> which is the default apache page.</p>
  
  <p>If I run <code>passenger start</code> I can view my app at <code>localhost:3000</code> but that's a passenger standalone web server running, not apache.</p>
  
  <p>If I run <code>sudo passenger start -p 80 --user=martin</code> I get the message:</p>
  
  <pre><code>The address 0.0.0.0:80 is already in use by another process,
  perhaps another Phusion Passenger Standalone instance.
  
  If you want to run this Phusion Passenger Standalone instance on another port,
  use the -p option, like this:
  
  passenger start -p 81
  </code></pre>
  
  <p>I can't remember what I did when I first set up Rails on my laptop, I'm sure I ran <code>passenger start</code> at the very beginning and didn't need to do it after that and from reading more about it online, apache should run passenger automatically by itself but apache doesn't seem to be doing anything but show the default start page and I don't know why.</p>
  
  <p>I think Maverick created a new httpd.conf but I don't see much difference, I have made sure that the three extra lines running <code>passenger-install-apache2-module</code> returns is at the end of the config file.</p>
  
  <p>The passenger gem is the latest version, Rails version is 2.3.14 and ruby is 1.8.7 so quite old but shouldn't matter I don't think as it worked perfectly on <code>localhost</code> before without having to add port 3000 to the url so just hoping someone with a bit more experience of using Passenger can help.</p>
  
  <p>I've tried reading loads of other questions and forums and also the <a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html" rel="nofollow noreferrer">Phusion Apache documentation</a>.
  `</p>