Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1862fda

Browse files
committed
changes to supervisor and start scripts
1 parent 18947e1 commit 1862fda

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

‎conf/supervisord.conf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
2121
[supervisorctl]
2222
serverurl=unix:///dev/shm/supervisor.sock ; use a unix:// URL for a unix socket
2323

24-
[program:php-fpm]
25-
command = /usr/bin/php-fpm -c /etc/php
24+
[program:php-fpm7]
25+
command = /usr/sbin/php-fpm7 --nodaemonize --fpm-config /etc/php7/php-fpm.d/www.conf
2626
autostart=true
2727
autorestart=true
2828
priority=5

‎scripts/start.sh‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,38 +44,38 @@ fi
4444

4545
# Display PHP error's or not
4646
if [[ "$ERRORS" != "1" ]] ; then
47-
echo php_flag[display_errors] = off >> /etc/php5/php-fpm.conf
47+
echo php_flag[display_errors] = off >> /etc/php7/php-fpm.conf
4848
else
49-
echo php_flag[display_errors] = on >> /etc/php5/php-fpm.conf
49+
echo php_flag[display_errors] = on >> /etc/php7/php-fpm.conf
5050
fi
5151

5252
# Enable PHP short tag or not
5353
if [[ "$SHORT_TAG" != "1" ]] ; then
54-
echo php_flag[short_open_tag] = off >> /etc/php5/php-fpm.conf
54+
echo php_flag[short_open_tag] = off >> /etc/php7/php-fpm.conf
5555
else
56-
echo php_flag[short_open_tag] = on >> /etc/php5/php-fpm.conf
56+
echo php_flag[short_open_tag] = on >> /etc/php7/php-fpm.conf
5757
fi
5858

5959
# Display Version Details or not
6060
if [[ "$HIDE_NGINX_HEADERS" == "0" ]] ; then
6161
sed -i "s/server_tokens off;/server_tokens on;/g" /etc/nginx/nginx.conf
6262
else
63-
sed -i "s/expose_php = On/expose_php = Off/g" /etc/php5/conf.d/php.ini
63+
sed -i "s/expose_php = On/expose_php = Off/g" /etc/php7/conf.d/php.ini
6464
fi
6565

6666
# Increase the memory_limit
6767
if [ ! -z "$PHP_MEM_LIMIT" ]; then
68-
sed -i "s/memory_limit = 128M/memory_limit = ${PHP_MEM_LIMIT}M/g" /etc/php5/conf.d/php.ini
68+
sed -i "s/memory_limit = 128M/memory_limit = ${PHP_MEM_LIMIT}M/g" /etc/php7/conf.d/php.ini
6969
fi
7070

7171
# Increase the post_max_size
7272
if [ ! -z "$PHP_POST_MAX_SIZE" ]; then
73-
sed -i "s/post_max_size = 100M/post_max_size = ${PHP_POST_MAX_SIZE}M/g" /etc/php5/conf.d/php.ini
73+
sed -i "s/post_max_size = 100M/post_max_size = ${PHP_POST_MAX_SIZE}M/g" /etc/php7/conf.d/php.ini
7474
fi
7575

7676
# Increase the upload_max_filesize
7777
if [ ! -z "$PHP_UPLOAD_MAX_FILESIZE" ]; then
78-
sed -i "s/upload_max_filesize = 100M/upload_max_filesize= ${PHP_UPLOAD_MAX_FILESIZE}M/g" /etc/php5/conf.d/php.ini
78+
sed -i "s/upload_max_filesize = 100M/upload_max_filesize= ${PHP_UPLOAD_MAX_FILESIZE}M/g" /etc/php7/conf.d/php.ini
7979
fi
8080

8181
# Always chown webroot for better mounting

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /