Skip to content

Commit

Permalink
Updated "README.md" and "compile" for PHP 5.3.14
Browse files Browse the repository at this point in the history
Also, I switched "wget" commands to "curl" since "wget" does not exist
on Heroku instances, where I did my compile steps (to assure binary
compatibility).
  • Loading branch information
brandon-rhodes committed Jun 25, 2012
1 parent e5d228a commit aeef209
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -17,7 +17,7 @@ Pre-compiling binaries

# apache
mkdir /app
wget http://apache.cyberuse.com/httpd/httpd-2.2.22.tar.gz
curl -O http://apache.cyberuse.com/httpd/httpd-2.2.22.tar.gz
tar xvzf httpd-2.2.22.tar.gz
cd httpd-2.2.22
./configure --prefix=/app/apache --enable-rewrite --enable-proxy --enable-proxy-http
Expand All @@ -26,18 +26,18 @@ Pre-compiling binaries
cd ..

# php
wget http://us2.php.net/get/php-5.3.6.tar.gz/from/us.php.net/mirror
curl -LO http://us2.php.net/get/php-5.3.14.tar.gz/from/us.php.net/mirror
mv mirror php.tar.gz
tar xzvf php.tar.gz
cd php-5.3.6/
cd php-5.3.14/
./configure --prefix=/app/php --with-apxs2=/app/apache/bin/apxs --with-mysql --with-pdo-mysql --with-pgsql --with-pdo-pgsql --with-iconv --with-gd --with-curl=/usr/lib --with-config-file-path=/app/php --enable-soap=shared --with-openssl
make
make install
cd ..

# php extensions
mkdir /app/php/ext
cp /usr/lib/libmysqlclient.so.15 /app/php/ext/
cp /usr/lib/libmysqlclient.so.16 /app/php/ext/

# pear
apt-get install php5-dev php-pear
Expand All @@ -52,7 +52,7 @@ Pre-compiling binaries
cd /app
echo '2.2.22' > apache/VERSION
tar -zcvf apache.tar.gz apache
echo '5.3.6' > php/VERSION
echo '5.3.14' > php/VERSION
tar -zcvf php.tar.gz php


Expand Down
4 changes: 2 additions & 2 deletions bin/compile
Expand Up @@ -7,7 +7,7 @@ set -e
# config
APACHE_VERSION="2.2.22"
APACHE_PATH="apache"
PHP_VERSION="5.3.10"
PHP_VERSION="5.3.14"
PHP_PATH="php"

BIN_DIR=$(dirname $0)
Expand All @@ -34,7 +34,7 @@ APACHE_URL="https://s3.amazonaws.com/rhodesmill/apache-$APACHE_VERSION.tar.gz"
echo "-----> Bundling Apache version $APACHE_VERSION"
curl --silent --max-time 60 --location "$APACHE_URL" | tar xz

PHP_URL="https://s3.amazonaws.com/php-lp/php-$PHP_VERSION.tar.gz"
PHP_URL="https://s3.amazonaws.com/rhodesmill/php-$PHP_VERSION.tar.gz"
echo "-----> Bundling PHP version $PHP_VERSION"
curl --silent --max-time 60 --location "$PHP_URL" | tar xz

Expand Down
2 changes: 1 addition & 1 deletion conf/httpd.conf
Expand Up @@ -54,7 +54,7 @@ ListenBackLog 1024
#
# Example:
# LoadModule foo_module modules/mod_foo.so
# LoadModule php5_module modules/libphp5.so
LoadModule php5_module modules/libphp5.so
#

<IfModule !mpm_netware_module>
Expand Down

0 comments on commit aeef209

Please sign in to comment.