Skip to content

Instantly share code, notes, and snippets.

@chris-ramon
Created March 24, 2014 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-ramon/9748340 to your computer and use it in GitHub Desktop.
Save chris-ramon/9748340 to your computer and use it in GitHub Desktop.
php config
# htdocs on mac
# defined within
/etc/apache2/httpd.conf
<IfDefine WEBSHARING_ON>
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Library/WebServer/Documents"
# or place dirs and files within
/Users/USERNAME/Sites
# for accessing with
localhost/~USERNAME
# to enable php
Edit your /etc/apache2/httpd.conf and make sure the line:
LoadModule php5_module libexec/apache2/libphp5.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment