forked from winglian/heroku-buildpack-php
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pedro Belo
committed
Jan 23, 2012
1 parent
104941c
commit 517516e
Showing
1 changed file
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Apache+PHP language pack | ||
======================== | ||
|
||
This is a language pack bundling PHP and Apache for Heroku apps. | ||
|
||
Configuration | ||
------------- | ||
|
||
The config files are bundled with the LP itself: | ||
|
||
* conf/httpd.conf | ||
* conf/php.ini | ||
|
||
|
||
Pre-compiling binaries | ||
---------------------- | ||
|
||
mkdir /app | ||
wget http://apache.cyberuse.com//httpd/httpd-2.2.19.tar.gz | ||
tar xvzf httpd-2.2.19.tar.gz | ||
cd httpd-2.2.19 | ||
./configure --prefix=/app/apache --enable-rewrite | ||
make | ||
make install | ||
tar -zcvf /app/apache.tar.gz /app/apache | ||
|
||
wget http://us2.php.net/get/php-5.3.6.tar.gz/from/us.php.net/mirror | ||
mv mirror php.tar.gz | ||
tar xzvf php.tar.gz | ||
cd php-5.3.6/ | ||
./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-config-file-path=/app/php | ||
make | ||
make install | ||
|
||
cd /app | ||
echo '2.2.19' > apache/VERSION | ||
tar -zcvf apache.tar.gz apache | ||
echo '5.3.6' > php/VERSION | ||
tar -zcvf php.tar.gz php |