doushi9376 2015-04-06 10:41
浏览 82


When I try to run laravel app using XAMPP localhost, it gives me a white screen of death. However, when I use artisan serve, the app works fine.

Here are the steps that I did: 1. I installed composer globally. 2. Install laravel using the zip file and also through composer. Through zip file, I ran composer install.

When I run localhost/my_app/public, it gives me blank white screen.

Seeing previous answers, I did some things

Added this to bash_profile:

export PATH=/Applications/XAMPP/xamppfiles/bin:$PATH

On running which php, I get this:


Not able to figure out what would be the exact issue.

  • 写回答

3条回答 默认 最新

  • dongma7725 2015-04-06 13:18

    I think there is a problem with the storage directory access rights. You can change it's mod to 777 or assign the user(with which apache runs in XAMPP) the ownership of the storage directory.

    Here is an example of the command to use:

    sudo chmod -R 777 storage

    Similarly, for assigning ownership:

    sudo chown storage [user]:[group]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
  • donglun2010 2015-04-06 13:18

    have u tried pointing to htdocs and run ?

     composer create-project laravel/laravel myproject --prefer-dist
  • dongxun1244 2016-05-20 06:14

    Try: php artisan cache:clear

    then chmod -R 777 your_laravel_folder_path/storage

    finally php artisan dump-autoload

    If you trying in XAMPP then your_laravel_folder_path will /Applications/XAMPP/htdocs/YOUR_PROJECT_FOLDER . That folder contains storage directory.

    Thanks in advance.




  • ¥15 求局部放电案例库,用于预测局部放电类型
  • ¥100 QT Open62541
  • ¥15 stata合并季度数据和日度数据
  • ¥15 c语言练习:统计词频
  • ¥15 谁能提供rabbitmq,erlang,socat压缩包,记住版本要对应
  • ¥15 Vue3 中使用 `vue-router` 只能跳转到主页面?
  • ¥15 用QT,进行QGIS二次开发,如何在添加栅格图层时,将黑白的矢量图渲染成彩色
  • ¥50 监控摄像头 乐橙和家亲版 保存sd卡的文件怎么打开?视频怎么播放?
  • ¥15 Python的Py-QT扩展库开发GUI
  • ¥60 提问一下周期性信信号的问题