Can you explain how did you change the PHP version?
PHP Dependency Error in cPanel: Laravel 9
Hi guys, i am new to Laravel and working in a project where i have used Laravel 9 with PHP 8.1.0. In localhost it works fine, i have used most common packages and payment gateways. Everything seems fine. I have deployed this in client hosting (from Namecheap) with and used common php 8.1 from cPanel PHP manager. It seems working good.
The problem is when i deployed same project in my personal hosting, i have found that it only have option upto PHP 8.0. It's showing PHP dependency error that i need to upgrade it in 8.1 or greater. I communicated with hosting support, they suggested to use Multi PHP Manager app and use 8.1/8.2 PHP version for that single subdomain.
Which i did but whenever i applied the setting, it's showing 'Page not working' or 'Forbidden 403' error. I tried uploading files multiple times, uploaded .env or .htaccess again but same. If i select PHP 8.0 or lower from multi PHP manager, it's showing same old PHP dependency error. I have checked/searched for common solutions like changing composer.json to ignore checking PHP version or changing version directly or tried downgrading php dependency from terminal/Git. But none seems to be working from cPanel. Can you please help me finding the issue or how to overcome this?
Note: I have used stripe and other compulsory packages that needs PHP 8.1 at least. If i downgrade PHP it would crash and i cannot take the chance. Is there any guideline about this, so that i can have the full idea? Thanks in advance.
Please or to participate in this conversation.