Skip to content

Commit f80a126

Browse files
committed
Updated PHP5.4 with configurations
1 parent 268905b commit f80a126

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

5.4/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
php:
2+
build: .
3+
working_dir: /var/www/app
4+
environment:
5+
PHP_FPM_USER: root
6+
PHP_FPM_PORT: 9000
7+
PHP_ERROR_REPORTING: E_ALL
8+
ENVIRONMENT: staging

5.4/run.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
variables=( "PHP_FPM_USER" "PHP_FPM_PORT" "PHP_ERROR_REPORTING" "ENVIRONMENT" )
4+
5+
for var in "${variables[@]}"
6+
do
7+
:
8+
sed -i "s|%$var%|${!var}|g" /etc/php5/fpm/pool.d/www.conf
9+
done
10+
11+
/usr/sbin/php5-fpm --allow-to-run-as-root -c /etc/php5/fpm --nodaemonize

0 commit comments

Comments
 (0)