Skip to content

Instantly share code, notes, and snippets.

@nonword
Created July 14, 2014 00:01
Show Gist options
  • Save nonword/272e9dc376de8a95f55e to your computer and use it in GitHub Desktop.
Save nonword/272e9dc376de8a95f55e to your computer and use it in GitHub Desktop.
Get apache and fuelphp working after Mavericks upgrade
# Note: This should follow repairing brew (https://gist.github.com/nonword/8ccb2b50727120f24c45 )
# After upgrading to Mavericks, Apple seems to have reset /etc/apache2/httpd.conf
# and removed "personal web sharing" from System Preferences, so:
# Edit httpd.conf:
# 1. Re-enable inclusion of /etc/apache2/extra/httpd-vhosts.conf to re-enable vhosts
# 2. Re-enable inclusion of php handler
sudo vim /etc/apache2/httpd.conf
# Set default timezone (cause Fuelphp complains):
sudo cp /private/etc/php.ini.default /etc/php.ini
# Add date.timezone = 'America/New_York'
sudo vim /etc/php.ini
# Fuel was failing to connect to local db, so change 'localhost' to '127.0.0.1' in db conf:
sudo vim ~/Sites/sonicunion/tools.sonicunion.com/fuel/app/config/development/db.php
# Restart:
sudo apachectl stop; sudo apachectl start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment