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

salvador98's avatar

php version

hi .. my host php version is 7.1 - Will I have a problem with installing Laravel? Because Server Requirements in laravel site is 7.1.3

0 likes
9 replies
bashy's avatar

You will. If Laravel says >= 7.1.3 that's what it needs.

jlrdw's avatar

Use ver 5.5, it is LTS version.

Nash's avatar

Check the exact version by running php -v on your server or ask your hosting provider if you don't have shell access.

Laravel 5.6 requires >= 7.1.3. Laravel 5.5 (the latest LTS) will work with >= 7.0.0, so you could always use that one.

salvador98's avatar

my project finish in laravel 5.6 -- how change to 5.5 ?

rin4ik's avatar

@blackrose The best way to do this is by changing the value of the Laravel version inside the composer.json file to "laravel/framework": "5.5.*",. delete vendor folder and run composer install

Cronix's avatar

@spekkionu He's using 5.6 already. He's trying to downgrade to 5.5 so it will work with his current php version.

jlrdw's avatar

Or just up your php version, choice is yours.

spekkionu's avatar

I guess for downgrading you can just follow the same steps in reverse.

Really though you are better off upgrading php. There should not be any issues if you stay within the 7.1 branch and Laravel 5.6 works great in 7.2 so upgrading should be an easy process unless you have some older applications on the server as well. PHP should be kept up to date within the minor branch or you will miss out on any security fixes in each release.

Please or to participate in this conversation.