Bug: Your Composer dependencies require a PHP version ">= 7.4.0
See original GitHub issueSituation
I try to install grocy on virtual machine with virtualbox. The virtual machine runs this software:
- Debian Buster 10.7 (Package source: http://ftp.de.debian.org/debian/)
- nginx 1.14.2
- PHP 7.3.19
- sqlite3 3.27.2
- grocy 3.0.1
I configure like it is described in the README.md. Only differences I have to make are the following:
- I change in the default language to german in the data/config.php.
- I change in the default currency to EUR in the data/config.php.
- Instead of
try_files $uri /index.php$is_args$query_string;
(copy of the README.md) I writetry_files $uri /app.php$is_args$query_string;
in nginx configuration - Instead of
index index.php
(a typical default for php applications) I writeindex app.php
in nginx configuration.
The reason for changes 3 and 4 are the fact that there isn’t any index.php in the the latest release of grocy. (Is that maybe also a little bug in the README.md?)
Error
When I browse to this local grocy server, I get the following error.
- In the title of the browser tab
403 Forbidden
- In the content area:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".
Why PHP 7.3 isn’t enough? (It is stil a supported version.) The README.md says something different then the error.
Based on user reports, the minmimum required/working runtime is PHP 7.2 with SQLite 3.9.0 However, I don’t really care about supporting old runtime stuff, currently everything is only tested against (means 100 % works with) PHP 7.4 with SQLite 3.27.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
I run Debian stable and use deb.sury.org for PHP packages (and https://nginx.org/packages/mainline/debian/ for nginx, since I just don’t want to wait years to be able to use new features…).
Thanks @berrnd! Regarding Debian, are you installing newer versions of PHP via PPA? Or are you running a testing version of Debian? The latest PHP I can see in the repos for Debian Buster (10) is PHP 7.3.