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

maulanazh15's avatar

Laravel Debugbar Showing Incorrect PHP Version with Octane (8.4 vs. 8.2)


Hello everyone,

I'm currently facing an issue with my Laravel application that uses Laravel Octane (with FrankenPHP as the web server). My VPS is running PHP version 8.2, but when I access my application and check the Laravel Debugbar, it's showing PHP version 8.4.

Here’s a brief overview of my setup:

  • VPS PHP Version: 8.2 (confirmed via php -v command in the terminal)
  • Laravel Version: 11
  • Laravel Octane Version: 2.8
  • Web Server: FrankenPHP

What I've Tried:

  1. Confirmed the PHP version in CLI and the php version is 8.2.28
  2. Created a route to display the PHP version being used in the application (phpversion()) and the version is php 8.4.5.
  3. I use apache as reverse proxy.
  4. Restarted the Octane server using php artisan octane:start.

Despite these steps, I still see that Debugbar is reporting an incorrect PHP version.

Questions:

  • Has anyone else encountered this issue with Laravel Debugbar?
  • Are there specific configurations in Octane or FrankenPHP that I might be missing?
  • What steps can I take to align the PHP version correctly across my application environment?

Any insights or suggestions would be greatly appreciated!

Thank you!


0 likes
4 replies
JussiMannisto's avatar

Laravel Debugbar, it's showing PHP version 8.4.

Created a route to display the PHP version being used in the application (phpversion()) and the version is php 8.4.5.

Debugbar is reporting an incorrect PHP version.

Sounds to me like Debugbar is showing the correct PHP version (8.4) and you're running a different PHP version (8.2) from the CLI.

1 like
maulanazh15's avatar

@JussiMannisto But why it show a different php version, i am running this project in the same vps, in my vps i just have php 8.2 version, i did not have php 8.4 version, i did not install it yet, how do i check that i have two different version of php on my vps, my vps is using ubuntu os.

JussiMannisto's avatar
Level 50

@maulanazh15 You said you're using FrankenPHP as the application server. It includes a custom build of PHP that's independent of the system-installed versions. Try running these commands and compare the output:

php -v
frankenphp -v

Please or to participate in this conversation.