Skip to content

Commit

Permalink
Revert "merge in Redis, mod_expires, and mod_headers support from Phi…
Browse files Browse the repository at this point in the history
…ng buildpack"

This reverts commit 286bebe.
  • Loading branch information
ryanbrainard committed May 4, 2012
1 parent 57c6ead commit 8897934
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 10 additions & 3 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
set -e

# config
RESOURCE_BASE_URL="https://s3.amazonaws.com/heroku-php-buildpack"
APACHE_VERSION="2.2.22"
APACHE_PATH="apache"
PHP_VERSION="5.3.10"
PHP_PATH="php"
EXT_PATH="extensions"
REDIS_EXT="$EXT_PATH/redis.so"

BIN_DIR=$(dirname $0)
BUILD_DIR=$1
Expand All @@ -31,14 +32,20 @@ if [ -f www/Procfile ]; then
mv www/Procfile .
fi

APACHE_URL="$RESOUCE_BASE_URL/apache-$APACHE_VERSION.tar.gz"
APACHE_URL="https://s3.amazonaws.com/php-lp/apache-$APACHE_VERSION.tar.gz"
echo "-----> Bundling Apache version $APACHE_VERSION"
curl --silent --max-time 60 --location "$APACHE_URL" | tar xz

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


mkdir -p $(dirname $REDIS_EXT)
REDIS_EXT_URL="https://s3.amazonaws.com/rbrainard-public/redis.so"
echo "-----> Bundling Redis extension"
curl --silent --max-time 60 --location $REDIS_EXT_URL > $REDIS_EXT

# update config files
cp $LP_DIR/conf/httpd.conf $APACHE_PATH/conf
cp $LP_DIR/conf/php.ini php
Expand Down
2 changes: 0 additions & 2 deletions conf/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ ListenBackLog 1024
# Example:
# LoadModule foo_module modules/mod_foo.so
LoadModule php5_module modules/libphp5.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
#

<IfModule !mpm_netware_module>
Expand Down
2 changes: 1 addition & 1 deletion conf/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ default_socket_timeout = 60
; Be sure to appropriately set the extension_dir directive.
;
extension=soap.so
extension=redis.so
extension=/app/extensions/redis.so
extension=apc.so
;extension=php_bz2.dll
;extension=php_curl.dll
Expand Down

0 comments on commit 8897934

Please sign in to comment.