Skip to content

Commit

Permalink
Add PHP 5.6 and include bzips. closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Oct 10, 2014
1 parent 50914a9 commit 1407653
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Expand Up @@ -44,6 +44,7 @@ RUN cd /phpfarm/src && \
./compile.sh 5.3.29 && \
./compile.sh 5.4.32 && \
./compile.sh 5.5.16 && \
./compile.sh 5.6.1 && \
rm -rf /phpfarm/src && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -54,14 +55,14 @@ RUN rm -rf /var/www/*
COPY var-www /var/www/
COPY apache /etc/apache2/

RUN a2ensite php-5.2 php-5.3 php-5.4 php-5.5
RUN a2ensite php-5.2 php-5.3 php-5.4 php-5.5 php-5.6
RUN a2enmod rewrite

# set path
ENV PATH /phpfarm/inst/bin/:/usr/sbin:/usr/bin:/sbin:/bin

# expose the ports
EXPOSE 8052 8053 8054 8055
EXPOSE 8052 8053 8054 8055 8056

# run it
COPY run.sh /run.sh
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -11,6 +11,7 @@ Port | PHP Version
8053 | 5.3.29
8054 | 5.4.32
8055 | 5.5.16
8056 | 5.6.1

Building the image
------------------
Expand Down Expand Up @@ -42,7 +43,7 @@ local machine. The current working directory will be used as the document root f
the Apache server and the server it self will run with the same user id as your current
user.

docker run --rm -t -i -e APACHE_UID=$UID -v $PWD:/var/www:rw -p 8052:8052 -p 8053:8053 -p 8054:8054 -p 8055:8055 splitbrain/phpfarm
docker run --rm -t -i -e APACHE_UID=$UID -v $PWD:/var/www:rw -p 8052:8052 -p 8053:8053 -p 8054:8054 -p 8055:8055 -p 8056:8056 splitbrain/phpfarm

Above command will also remove the container again when the process is aborted with
CTRL-C. While running the Apache and PHP error log is shown on STDOUT.
Expand Down
1 change: 1 addition & 0 deletions apache/conf.d/phpfarm
Expand Up @@ -8,3 +8,4 @@ Listen 8052
Listen 8053
Listen 8054
Listen 8055
Listen 8056
23 changes: 23 additions & 0 deletions apache/sites-available/php-5.6
@@ -0,0 +1,23 @@
<VirtualHost *:8056>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
allow from all
</Directory>


FCGIWrapper /phpfarm/inst/php-5.6.1/bin/php-cgi .php
AddHandler fcgid-script .php

LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Binary file added phpfarm/bzips/php-5.2.17.tar.bz2
Binary file not shown.
Binary file added phpfarm/bzips/php-5.3.29.tar.bz2
Binary file not shown.
Binary file added phpfarm/bzips/php-5.4.32.tar.bz2
Binary file not shown.
Binary file added phpfarm/bzips/php-5.5.16.tar.bz2
Binary file not shown.
Binary file added phpfarm/bzips/php-5.6.1.tar.bz2
Binary file not shown.

0 comments on commit 1407653

Please sign in to comment.