Search code examples
phpwindowslaravelvirtualhosthttp-status-code-500

Giving HTTP 500 error, Windows Laravel 5.7


Using php artisan serve and the virtual host of Wamp64 both give HTML Error.
If I use the laravel in the www folder of Wamp64 it works. However, I'd like to use a Virtual Host of my Project that I can have in c:/Projects/myProject.
My Laravel Project is the default after the laravel new blog command.


Solution

  • Remember you need a server(Apache/Nginx)to run php webpages, so i would suggest you move your Projects folder to your Wamp ROOT folder(www in your case), then run your php artisan serve command from within the laravel project folder.