doutui2883 2019-07-31 03:33 采纳率: 100%
浏览 143

Laravel 5.8错误500上传到共享主机cpanel

I uploaded a laravel-5.8 project to a shared hosting cpanel. The problem is when I access index.php it gives me an error 500.

Here is my project directory

I didn't transfer the public folder yet. but it should work when access. stage.example.com/public/ instead it displays error 500.

  • I changed the database credentials.
  • I haven't changed the path in index.php since I didn't move the public folder yet. path:index.php
  • I tried putting phpinfo.php in the root folder to check the requirements for laravel 5.8 all of this was met, except for the PHP version, according to phpinfo, PHP version is 5.6. but when I checked under myphpadmin>web server the PHP version is 7.2.7.
  • PHP >= 7.1.3
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

I hope someone can help I wanted to run my laravel5.8 project in Cpanel.

  • 写回答

3条回答 默认 最新

  • dowe98261 2019-07-31 19:45
    关注

    I have answered this question in another post. Have a look at it and see if helps: What is the easiest and quickest method to deploy a Laravel web application live?

    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序