Laravel Application is not working after uploading to the server

前端 未结 4 1294
暗喜
暗喜 2020-12-04 02:46

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

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 03:13

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

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

    chmod -R 775 storage
    

    And try to clear all cache:

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

提交回复
热议问题