Monday, 6 May 2013

Setting up an apache account in Mountain Lion

  • Create this file
  • $ vi /etc/apache2/users/username.conf
    
  • Add this content
  • LoadModule php5_module libexec/apache2/libphp5.so
    
    <Directory "/Users/username/Sites/">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    
  • Start Apache
  • sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist