如何在PHP 5.0到5.4的服务器上运行laravel 5.4网站?

如何在PHP 5.0到5.4的服务器上运行laravel 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!

我使用laravel 5.4版本编写了一个小型内容管理系统。 但网络托管公司使用PHP 5.3版本。 当我上传我的网站时,我遇到了错误。 有没有办法在PHP版本5.0到5.4的服务器上运行laravel 5.4应用程序? 改变网络托管公司不是一个选择。 p>

提前感谢您的帮助! p> div>

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).

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