Skip to content

Commit

Permalink
Update php
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshort committed Jul 19, 2012
1 parent ce6eff7 commit a5dac2f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions php
@@ -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

0 comments on commit a5dac2f

Please sign in to comment.