2

Bad mistake this morning. I uninstalled WAMP Server which deleted the Wamp folder and all its projects.

I restored the wamp folder from backup. WAMP is up and running on upgraded PHP and settings as before, however:

Laravel projects won't start - getting blank whoops pages on any Laravel project. When I cd into any project folder and try to run php artisan, I get:

Unable to load the "app" configuration file.

The 'config/app.php' does indeed exist. And, all the restored files appear correct.

As a test, I installed a new Laravel project and it works correctly. I also am able to clone a project from a Git repo, npm update & composer install, and that works. So, I don't think the problem is with the WAMP stack.

I need some direction troubleshooting this. Thanks!

Leo
  • 7,274
  • 5
  • 26
  • 48
STWilson
  • 1,538
  • 2
  • 16
  • 26

2 Answers2

0

The problem is that Windows changes the case of some file names during restore. What a drag. There seems to be no reasonable answer except make the switch to Apple.

For example, in the Laravel config folder, Windows restored these files with proper case, App.php, Auth.php, Queue.php, and View.php. Everything else was left lowercase as they need to be.

Correcting the case of these files fixed the problem for now (until I find other mis-cased files).

STWilson
  • 1,538
  • 2
  • 16
  • 26
-1

Make sure this file exist

config/app.php
MUHINDO
  • 788
  • 6
  • 10