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 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))