Laravel应用程序在上传到服务器后无法正常工作 [英] Laravel Application is not working after uploading to the server

查看:108
本文介绍了Laravel应用程序在上传到服务器后无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的laravel应用程序在本地服务器上运行良好.但是,当我将其上传到服务器后,它无法正常工作.下图显示了我的应用程序的目录结构:

My laravel Application was working perfect on the local server. But After I uploaded it to my server it is not working. The directory structure of my application is shown in the following image:

我遇到了以下问题.它会自动重定向到不显示任何内容的环回地址

And I am getting the following problem. It is automatically redirected to loopback address showing nothing

这是服务器中我的php版本

Here is my php version in the server

推荐答案

请确保您具有正确的Web服务器配置.您应该将Web服务器指向public目录,然后重新启动它.

Make sure you have correct web server configuration. You should point web server to a public directory and restart it.

此外,请确保您已在storage目录上设置了正确的权限:

Also, make sure you've set correct permissions on a storage directory:

chmod -R 775 storage

并尝试清除所有缓存:

php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
php artisan clear-compiled

这篇关于Laravel应用程序在上传到服务器后无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆