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?
Laravel valet park shows XAMPP main page
2k views Asked by seulgibear At
2
There are 2 answers
0
On
I faced the same issue as I was running Xampp and Valet at the same time on my Windows Machine, try turning off the xampp/apache and run the page again.
Steps to install Valet on Windows..
- Install composer from https://getcomposer.org/download/
- Then run composer global require cretueusebiu/valet-windows
- Then run: "valet install"
- Open your Laravel project directory in cmd (administrator mode)
- Then run: "valet park"
- Then run: "valet link"
- Then run: "valet secure" (if you want your website to be secured by TLS)
- In the control panel/network and sharing center choose the active connection and in its properties enter 127.0.0.1 in TCP/IPv4 IPv4 settings
- In the control panel/network and sharing center choose the active connection and in its properties enter ::1 in TCP/IPv6 IPv6 settings
- Then run: "valet start"
- Enter the "projectname" followed by ".test" in the browser. For example: if your project name is demolaravel, then run demolaravel.test in the browser
The original answer can be found here.
apachectl stop
composer global require laravel/valet
valet install
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.