Search code examples
phplaravellaravel-valet

Laravel valet park shows XAMPP main page


I am currently learning PHP Laravel. I am in the process of setting up valet. However, I encountered a problem. Whenever I type (filename).dev, it shows the XAMPP main page instead of the Laravel initial project page. Can someone explain why this is happening?


Solution

  • The original answer can be found here.

    • Remove valet completely (some reason valet uninstall does nothing) so to get the latest version (v1.1.3 at the time)
    • Stop Apache: apachectl stop
    • Update Valet: composer global require laravel/valet
    • Install Valet: valet install
    • Restart Valet: valet restart

    With some others, it might be a good option to try and simply turn-off/stop your locally running Apache, as this as others might find is only the issue that fixes it.