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

dwen's avatar
Level 3

Laravel 10 has problem deploying to live site on Ubuntu 20 LTS

I can work Laravel 10 on my Windows 11 Pro with Laragon, but when I tried to deploy Laravel 10 project to live site with Ubuntu 20 LTS Apache2 just feels it only supports Laravel 8 at this stage. Anyone had same issues?

$ composer install

  Problem 1
    - Installation request for laravel/framework v10.20.0 -> satisfiable by laravel/framework[v10.20.0].
    - laravel/framework v10.20.0 requires composer-runtime-api ^2.2 -> no matching package found.
  Problem 2
    - laravel/framework v10.20.0 requires composer-runtime-api ^2.2 -> no matching package found.
    - spatie/laravel-ignition 2.3.0 requires illuminate/support ^10.0 -> satisfiable by laravel/framework[v10.20.0].
    - Installation request for spatie/laravel-ignition 2.3.0 -> satisfiable by spatie/laravel-ignition[2.3.0].

I tried the following:

composer self-update
composer update
composer self-update --2

just could not fix them!

$composer --version
Composer 1.10.1 2020-03-13 20:34:27
0 likes
5 replies
dwen's avatar
Level 3

@Tray2 thanks for your message, I will look into it.

dwen's avatar
Level 3

Now, narrow down to my laravel 10 php is version 8.1.22, but the /var/log/php/error.log showing=> [php7:error] [pid 1356094] [client 34.79.162.186:38810] PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /var/www/laravelapp/vendor/laravel/prompts/src/helpers.php on line 11

dwen's avatar
Level 3

just run

sudo apt-get remove --purge php7.*

I got the site up and running on the live production URL. Thanks all the comments!

Please or to participate in this conversation.