Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update php

  • Loading branch information...
commit a5dac2f78e1e3baf2ad9a20aa35939b34fb1cff6 1 parent ce6eff7
Anthony Short authored July 19, 2012

Showing 1 changed file with 16 additions and 6 deletions. Show diff stats Hide diff stats

  1. 22  php
22  php
... ...
@@ -1,12 +1,22 @@
1 1
 echo "Installing PHP with Apache and MySQL..."
2  
-  curl -O https://raw.github.com/ampt/homebrew/php/Library/Formula/php.rb
3  
-  mv php.rb `brew --prefix`/Library/Formula
4  
-  brew install php --with-intl --with-readline --with-mysql --with-apache
5  
-  echo 'export PATH='`brew --prefix php`'/bin:$PATH' >> .bash_profile
  2
+  brew tap josegonzalez/homebrew-php
  3
+  brew install php53
  4
+  #curl -O https://raw.github.com/ampt/homebrew/php/Library/Formula/php.rb
  5
+  #mv php.rb `brew --prefix`/Library/Formula
  6
+  #brew install php --with-intl --with-readline --with-mysql --with-apache
  7
+  #echo 'export PATH='`brew --prefix php`'/bin:$PATH' >> .bash_profile
6 8
 
7 9
 #echo "Installing XDebug..."
8 10
 #  brew install xdebug
9 11
 
10 12
 #echo "Installing Composer (PHP package manager)..."
11  
-#  brew tap josegonzalez/homebrew-php
12  
-#  brew install josegonzalez/php/composer
  13
+#  
  14
+#  brew install josegonzalez/php/composer
  15
+
  16
+echo "Updating httpd.conf..."
  17
+  /usr/bin/env ruby <<-EORUBY
  18
+  file_name = '/etc/apache2/httpd.conf'
  19
+  text = File.read(file_name)
  20
+  replace = text.gsub!(/#?LoadModule\s+php5_module.*?$/, 'LoadModule php5_module /usr/local/Cellar/php53/5.3.14/libexec/apache2/libphp5.so')
  21
+  File.open(file_name, "w") { |file| file.puts replace }
  22
+  EORUBY

0 notes on commit a5dac2f

Please sign in to comment.
Something went wrong with that request. Please try again.