If you are using Rails and Passenger and upgrade to mountain lion, you’ll need to do a bit of tweaking to get them playing nicely again. Here’s what I did:

Passenger & Apache

The Mountain Lion installer will replace your http.conf file in /etc/apache2/ with a new one. After doing a diff and discovering no important differences, I simply put my old one back (marked by Apple as httpd.conf.old in the same directory). However, I had to comment out this line:

# LoadModule bonjour_module     libexec/apache2/mod_bonjour.so

Because that module no longer exists in 10.8.  As noted here, Apple have removed the sharing toggle for Web Sharing (Apache) so, use these commands to start:

sudo apachectl restart
sudo apachectl stop
sudo apachectl start
and /var/log/apache2/error_log to debug other problems.


Somehow, my upgrade to 10.8 introduced/changed my root mySQL password. I don’t have one, for development purposes, so I had to find a way to remove it again. For that I did the following:

1. Stop MySQL

2. Run sudo /usr/local/mysql/bin/mysqld_safe –skip-grant-tables

3. Run /usr/local/mysql/bin/mysql mysql
 and execute the following query:
WHERE Host=’localhost’ AND User=’root’;
4. Restart MySQL


Where did SVN go? I don’t know, but it wasn’t in its usual /usr/bin/ position after I installed 10.8. Nowadays, you can install the command line developer tools independently of the gigantic 3gb Xcode package. Installing that small package bought me back a latest version of SVN, as well as GCC and a number of other useful tools. You can download it here after logging in with your Apple ID.

Please note, the 4.4 version of the command line tools will not be available there until after the official launch of 10.8 Mountain lion.

  1. Hello,

    I have been struggling for two weeks actually trying to get Apache, Ruby on Rails, MySQL and Passenger working correctly on a fresh install of Mountain Lion. Can you provide me with some guidelines or suggestions to get them to work?

    Thank you. I am new to the rails environment and have not been able to get it going.

Leave a Reply...