Can anyone help me

Hi y’all! I don’t understand the problem, i have a Laravel 7 propject, the php version inside is
“php”: “^7.2.5”,
“fideloper/proxy”: “^4.2”,
“fruitcake/laravel-cors”: “^1.0”,
“guzzlehttp/guzzle”: “^6.3”,
“laravel/framework”: “^7.0”,
“laravel/tinker”: “^2.0”,
“laravel/ui”: “2.4”
},

  • we need to know your netlify site name.
    spontaneous-swan-80dc78.netlify.app
  • DNS issues
    9:48:37 AM: build-image version: 6c82004ef0368b3a0232c6837cead23188bb347e (focal)
    9:48:37 AM: buildbot version: 0dfbdb6e6e614fd26450cfc6bacb47c4c6fd9626
    9:48:37 AM: Fetching cached dependencies
    9:48:37 AM: Failed to fetch cache, continuing with build
    9:48:37 AM: Starting to prepare the repo for build
    9:48:38 AM: No cached dependencies found. Cloning fresh repo
    9:48:38 AM: git clone --filter=blob:none GitHub - MarcoPerta/All-Well-Back-end-Front-end-test
    9:48:38 AM: Preparing Git Reference refs/heads/main
    9:48:38 AM: Parsing package.json dependencies
    9:48:40 AM: Starting to install dependencies
    9:48:40 AM: Python version set to 3.8
    9:48:40 AM: Attempting Ruby version 2.7.2, read from environment
    9:48:41 AM: Using Ruby version 2.7.2
    9:48:41 AM: Using PHP version 8.0
    9:48:41 AM: Started restoring cached composer dependencies
    9:48:41 AM: Finished restoring cached composer dependencies
    9:48:42 AM: Installing dependencies from lock file (including require-dev)
    9:48:42 AM: Verifying lock file contents can be installed on current platform.
    9:48:42 AM: Your lock file does not contain a compatible set of packages. Please run composer update.
    9:48:42 AM: Problem 1
    9:48:42 AM: - Root composer.json requires php ^7.2.5 but your php version (8.0.28) does not satisfy that requirement.
    9:48:42 AM: Failed during stage ‘Install dependencies’: dependency_installation script returned non-zero exit code: 2
    9:48:42 AM: Problem 2
    9:48:42 AM: - laravel/ui is locked to version v2.4.0 and an update of this package was not requested.
    9:48:42 AM: - laravel/ui v2.4.0 requires php ^7.2.5 → your php version (8.0.28) does not satisfy that requirement.
    9:48:42 AM: Build failed due to a user error: dependency_installation script returned non-zero exit code: 2
    9:48:42 AM: Failing build: Failed to install dependencies
    9:48:42 AM: Finished processing build request in 4.797s
    .
    Thank a lot for anyone help!

@lostinspace You can use PHP for a build that produces static output, but Netlify doesn’t provide runtime PHP hosting.

See:

1 Like

Hi @lostinspace nathan is right. Please let us know if you have any other questions/