your ssh command line in cpanel could be running a different php version
check that first with php - V
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have created a Laravel 9 project and tried to run php artisan tinker command on local, it is working fine, but same project deployed on cPanel, the same command doesn't return anything.
It got exited without any error.
Here is the composer.json looks like:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^8.1",
"doctrine/dbal": "^3.4.1",
"fruitcake/laravel-cors": "^3.0",
"guzzlehttp/guzzle": "^7.4.5",
"laravel/framework": "^9.0",
"laravel/tinker": "^2.8",
"laravel/ui": "^4.0",
},
"require-dev": {
"spatie/laravel-ignition": "^1.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
}
...
}
Found issue with my memory limit, error got logs in application root folder with file name error_log. After increasing it is working fine. Thanks.
Please or to participate in this conversation.