mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
PHP version selection ignored during Laravel 11 site creation — always defaults to PHP 8.4 #89
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Alexxlml on 5/15/2025
CloudPanel version(s) affected
2.5.1
Description
When creating a new PHP site using the Laravel 11 template, CloudPanel assigns PHP 8.4 regardless of the selected version. Even after changing the PHP version in the site settings, the actual PHP version in use remains 8.4.
This causes compatibility issues with projects that require specific versions such as PHP 8.2 or 8.3.
For example, a Laravel 9 project throws multiple errors under PHP 8.4 because it requires PHP 8.2 to function properly.
How to reproduce
cd htdocs/site-namecomposer create-project --prefer-dist laravel/laravel:^11 -n .Then run:
php artisan aboutphp artisan about— PHP 8.4 is still shown.Possible Solution
No response
Additional Context
In my case, I installed an application developed with Laravel 9 that requires PHP 8.2, so far it works fine but you should be able to use the version you select when creating the site.
I used the Laravel 11 template because it was the closest fit, and the VHost is correctly configured to use Laravel, so this issue is based on using the template for that version.
I hope you can help me find an alternative to forcing the use of a specific PHP version in case another Laravel or WordPress site requires it, and I hope to find out if this will be fixed in a future release.
Thank you for all your work.