Skip to content

Instantly share code, notes, and snippets.

@abigwonderful
Created May 23, 2012 20:47
Show Gist options
  • Save abigwonderful/2777700 to your computer and use it in GitHub Desktop.
Save abigwonderful/2777700 to your computer and use it in GitHub Desktop.
brew info php
php 5.3.13
http://php.net
Depends on: gettext, jpeg, libxml2, mcrypt, readline
/usr/local/Cellar/php/5.3.13 (460 files, 27M) *
Installed with: --with-mssql
https://github.com/josegonzalez/homebrew-php/commits/master/Formula/php.rb
==> Caveats
For 10.5 and Apache:
Apache needs to run in 32-bit mode. You can either force Apache to start
in 32-bit mode or you can thin the Apache executable.
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php5_module /usr/local/Cellar/php/5.3.13/libexec/apache2/libphp5.so
The php.ini file can be found in:
/usr/local/etc/php.ini
Development and head builds will use libedit in place of readline.
If you have installed the formula with --with-fpm, to launch php-fpm on startup:
* If this is your first install:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/php/5.3.13/org.php-fpm.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.php-fpm.plist
* If this is an upgrade and you already have the org.php-fpm.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/org.php-fpm.plist
cp /usr/local/Cellar/php/5.3.13/org.php-fpm.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.php-fpm.plist
You may also need to edit the plist to use the correct "UserName".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment