Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

palla451's avatar

Laravel 9 installation via composer

Hi all, i'm trying to install laravel 9 in homestead, i have php8.0.1 but when i try to install via composer i get this error:

Problem 1 - laravel/framework[v9.0.0-beta.1, ..., 9.x-dev] require php ^8.0.2 -> your php version (8.0.1) does not satisfy that requirement. - Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.0.0-beta.1, ..., 9.x-dev].

Someone has happened to this problem and how they solved it.

Thank you.

0 likes
7 replies
Nakov's avatar

The error itself says right? You need php 8.0.2 at least, and you have 8.0.1. So upgrade your PHP first.

palla451's avatar

@Nakov ok, but it's possible the problem is a minor version 8.0.2 of php? Laravel 9 require php8.

And in ubuntu as I update from 8.0.1 to 8.0.2, i have exec sudo apt-get update but don't update to 8.0.2

Nakov's avatar
Nakov
Best Answer
Level 73

@palla451 that's what the error says, so yes 8.0.2 must be installed. And apt-get update updates only the package lists. To actually upgrade the packages you have to run: sudo apt-get upgrade or sudo apt-get dist-upgrade and you can try to be specific with: sudo apt-get install php8.0.2

aurelianspodarec's avatar

@Nakov I'm on windows and using Laragon, and I just installed the 8.1 version, however on a new project it says the same thing.

I'm bit confused. This is the Laragon PHP version https://i.imgur.com/aT0IRjs.png (8.1.4)

  Problem 1
    - laravel/framework[v9.0.0-beta.1, ..., 9.x-dev] require php ^8.0.2 -> your php version (8.0.1) does not satisfy that requirement.
    - Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.0.0-beta.1, ..., 9.x-dev].

While executing this command composer create-project laravel/laravel project-name

I did restart my computer as well

Even on my local domain.test says this without any laravel installed

Apache/2.4.47 (Win64) OpenSSL/1.1.1m PHP/8.1.4
PHP version: 8.1.4 info
Document Root: C:/laragon/www

But yet I still have the error that i got 8.0.1 version

Rozeena's avatar

@Nakov Is there a way to install laravel 9 without having php 8 on your machine with docker. I am not able to install laravel 9 on my machine through docker.

Please or to participate in this conversation.