Jona
Jona

Reputation: 406

How to run laravel 5.4 websites on a server with PHP version 5.0 to 5.4?

I wrote a small content management system using laravel 5.4 version. But the web hosting company uses PHP 5.3 version. When I upload my website, I got errors. Is there any way to run laravel 5.4 applications on servers with the PHP version 5.0 to 5.4? Changing the web hosting company is not a choice.

Thank you for your help in advance!

Upvotes: 1

Views: 445

Answers (2)

Andy
Andy

Reputation: 2603

Best option in this case is to upgrade your PHP on your Web Host if that is an option.

(1) If your host is running Windows you can find the PHP install info here.Also check here.

(2) If your web host is running Debian GNU based Linux then just run following command:

apt-get install php5-common libapache2-mod-php5 php5-cli

Upvotes: 1

jgile
jgile

Reputation: 231

There is no way around minimum PHP requirements. You would have to change providers or get your provider to update PHP version (which they should do).

Upvotes: 2

Related Questions