File tree 4 files changed +8
-1
lines changed
4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ If you have improvements or suggestions please open an issue or pull request on
10
10
### Versioning
11
11
| Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version |
12
12
| -----| -------| -----| --------| --------|
13
- | latest/2.0.2 | Master Branch | 1.21.6 | 8.1.3 | 3.15 |
13
+ | latest/2.0.3 | Master Branch | 1.21.6 | 8.1.3 | 3.15 |
14
14
15
15
For other tags please see: [ versioning] ( https://github.com/richarvey/nginx-php-fpm/blob/master/docs/versioning.md )
16
16
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ The following flags are a list of all the currently supported options that can b
20
20
21
21
| Name | Description |
22
22
| -------------------------| ----------------------------------------------------------------------------------------------------------------|
23
+ | OPcache | Set to 1 to disable opcache (enabled by default)
24
+ |
23
25
| WEBROOT | Change the default webroot directory from ` /var/www/html ` to your own setting |
24
26
| ERRORS | Set to 1 to display PHP Errors in the browser |
25
27
| HIDE_NGINX_HEADERS | Disable by setting to 0, default behaviour is to hide nginx + php version in headers |
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ The latest tag will always follow the master branch in git. the other versions w
17
17
18
18
| Docker Tag | PHP Version | Nginx Version | Alpine Version | Container Scripts | Notes |
19
19
| -----| -------| -----| --------| --------| ----------|
20
+ | 2.0.3 | 8.1.3 | 1.21.6 | 3.15 | 0.3.15 | added disable flag for opcache |
20
21
| 2.0.2 | 8.1.3 | 1.21.6 | 3.15 | 0.3.14 | fix gd and opcache extentions |
21
22
| 2.0.1 | 8.1.3 | 1.21.6 | 3.15 | 0.3.14 | upgrade to PHP 8.1.3 |
22
23
| 2.0.0 | 8.1.2 | 1.21.6 | 3.15 | 0.3.14 | upgrade to PHP 8 |
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ if [ ! -z "$PHP_CATCHALL" ]; then
29
29
sed -i ' s#try_files $uri $uri/ =404;#try_files $uri $uri/ /index.php?$args;#g' /etc/nginx/sites-available/default.conf
30
30
fi
31
31
32
+ # Disable opcache
33
+ if [ ! -z " $OPcache " ]; then
34
+ sed -i ' s#zend_extension=opcache#;zend_extension=opcache#g' /usr/local/etc/php/php.ini
35
+ fi
32
36
33
37
# Setup git variables
34
38
if [ ! -z " $GIT_EMAIL " ]; then
You can’t perform that action at this time.
0 commit comments