dttphb59319
2017-09-29 02:39
浏览 55
已采纳

如何在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!

图片转代码服务由CSDN问答提供 功能建议

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

提前感谢您的帮助!

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • douchang6770 2017-09-29 02:42
    已采纳

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

    已采纳该答案
    打赏 评论
  • dongxia8656 2017-09-29 03:55

    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

    打赏 评论

相关推荐 更多相似问题