question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Your Composer dependencies require a PHP version ">= 7.4.0

See original GitHub issue

Situation

I try to install grocy on virtual machine with virtualbox. The virtual machine runs this software:

I configure like it is described in the README.md. Only differences I have to make are the following:

  1. I change in the default language to german in the data/config.php.
  2. I change in the default currency to EUR in the data/config.php.
  3. 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
  4. Instead of index index.php (a typical default for php applications) I write index 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:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
berrndcommented, Feb 18, 2021

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…).

0reactions
daviewalescommented, Feb 18, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Your Composer dependencies require a PHP version “>= 7.4.0”.
Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.4.0”. There has been a critical error on this...
Read more >
Fatal Error: composer.lock was created for PHP version 7.4 or ...
Under your app folder, create a text file and type in 7.4 , then rename the file .
Read more >
Cannot log into Plesk: Composer detected issues in your ...
Cannot log into Plesk: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".
Read more >
Your Composer dependencies require a PHP version ">= 7.4.0".
0". So, I'm trying to deploy (FTP) my first laravel project in a shared host (Namecheap). I put the content of the public...
Read more >
Upgrading PHP version used by composer, dependency
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.25 I thought I had...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found