Reputation: 1883
I just finish my laravel project on my local machine, I want to upload to my server to become live api, okay, I searched, youtubed, googled, or etc.. and found some solution for upload, I just upload my whole project, without vendor
, and composer.lock
, not set database config yet. after upload, I run:
composer install
it give me some error about php version:
Problem 1 - laravel/framework v6.9.0 requires php ^7.2 -> your PHP version (7.1.33) overridden by "config.platform.php" version (5.5.9) does not satisfy that requirement.
But my php version is:
PHP Version 7.3.13
How can I fix this?
Upvotes: 0
Views: 880
Reputation: 16575
Check your .bash_profile
on ~
root and add this lines:
PATH="/usr/local/php73/bin:$PATH" // make sure your path to php73
export PATH
then:
php -v
-> reboot
-> php -v
Upvotes: 1