forked from thoughtbot/laptop
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce6eff7
commit a5dac2f
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
echo "Installing PHP with Apache and MySQL..." | ||
curl -O https://raw.github.com/ampt/homebrew/php/Library/Formula/php.rb | ||
mv php.rb `brew --prefix`/Library/Formula | ||
brew install php --with-intl --with-readline --with-mysql --with-apache | ||
echo 'export PATH='`brew --prefix php`'/bin:$PATH' >> .bash_profile | ||
brew tap josegonzalez/homebrew-php | ||
brew install php53 | ||
#curl -O https://raw.github.com/ampt/homebrew/php/Library/Formula/php.rb | ||
#mv php.rb `brew --prefix`/Library/Formula | ||
#brew install php --with-intl --with-readline --with-mysql --with-apache | ||
#echo 'export PATH='`brew --prefix php`'/bin:$PATH' >> .bash_profile | ||
|
||
#echo "Installing XDebug..." | ||
# brew install xdebug | ||
|
||
#echo "Installing Composer (PHP package manager)..." | ||
# brew tap josegonzalez/homebrew-php | ||
# brew install josegonzalez/php/composer | ||
# | ||
# brew install josegonzalez/php/composer | ||
|
||
echo "Updating httpd.conf..." | ||
/usr/bin/env ruby <<-EORUBY | ||
file_name = '/etc/apache2/httpd.conf' | ||
text = File.read(file_name) | ||
replace = text.gsub!(/#?LoadModule\s+php5_module.*?$/, 'LoadModule php5_module /usr/local/Cellar/php53/5.3.14/libexec/apache2/libphp5.so') | ||
File.open(file_name, "w") { |file| file.puts replace } | ||
EORUBY |