Laragon + Visual Studio Php Server & Live Server + Live Server Web Extension Not Auto-Reloading Together
Asked 7/12/2025Viewed 0 times1 answer
1
0
I’m attempting to set up a development environment where I can edit PHP files stored under C:\laragon\www\, and have the browser automatically reload when I save changes. I am using Laragon to run the PHP and database servers, and I want to use the Live Server extension in Visual Studio Code to facilitate live reloading.
What works:
Static files in the project directory load correctly at http://127.0.0.1:5500/ with Live Server.
Laragon is running smoothly, providing database access, and the PHP server is accessible at http://localhost:3000/laragon/www/.
My virtual hosts are active, with the document root set to C:\laragon\www.
What doesn’t work:
When I make changes to PHP files, the Live Server extension does not automatically reload the page.
Reloading only works for static files, not PHP pages served by Laragon.
Setup details:
Web server: Laragon PHP server at http://localhost:3000/laragon/www/
Static files: load at http://127.0.0.1:5500/ with Live Server
Ports: Apache at 8080 (with SSL at 443), PHP at 3000
Files are saved within C:\laragon\www\
Attempts made:
Accessed PHP pages via localhost:8080, localhost:3000, and 192.168.131.1:8080/3000
Tried various URL paths and directory configurations.
Checked configurations and tried to configure Live Server to proxy or watch PHP files (though I understand Live Server is primarily for static content).
Questions:
Has anyone managed to get Live Server or similar tools to automatically reload PHP pages served through Laragon?
Are there specific configurations, extensions, or alternative tools recommended for live reloading PHP files?
Are there known limitations or best practices for PHP development with live reload integrations?
Thanks in advance for any guidance or experiences. I appreciate your help!
asked 7/12/2025
B
blueadarsh
Adarsh Gupta
1 Answer
0
hello this is test answer
answered 7/12/2025
B
blueadarsh
Adarsh Gupta
You must be logged in to post an answer.