question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with XAMPP, Laravel & Virtual Hosts

See original GitHub issue

I’ve used the Live Server extension for VS Code with HTML and CSS files previously, and it’s worked great.

I’m now trying to get it to work for php using Laravel, and it’s not working.

I’m using Ubuntu, and have setup virtual hosts, so I can access my site through either testapp.local or 127.0.0.5.

My Laravel installation is in ~/sites/testapp

If I run Live Server from VS Code it takes me to 127.0.0.1:5500 and loads the root directory of my project. When I click on a php file, it downloads. screenshot from 2018-03-29 10-02-02

I have installed the Live Server Extension for Google Chrome.

When have then visited testapp.local and clicked on the extension icon. Checked the box that says “I don’t want proxy setup” and entered the address from the live server, and my url screenshot from 2018-03-29 10-03-55

Then reloading the page as instructed.

Nothing seems to reload however, and I still have to manually refresh.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
Ginger-Stonecommented, Dec 14, 2018

So, I had the same problem just a few minutes ago but I have managed to sort it out by changing the proxy settings

vscodeproxysetting vscodeproxysetting It just required me to change the live server proxy settings

**Read the comments on the second image to get what I changed

1reaction
Mikael-Sundstromcommented, Mar 30, 2018

Hello, in the “Live Server Address” field, fill in the address as the VS Code Live Server extension opens to you http://127.0.0.1:5500/. And the “Actual Server Address” is the address where you run your XAMPP server.

“Live Server” is the name of the VS code extension and it is the name that is referred to the extension address, not the preprocessing server in XAMPP.

Try to put http://127.0.0.1:5500/ in the Live Server Address.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Laravel virtual host on Xampp does not work properly
php - Laravel virtual host on Xampp does not work properly - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing ......
Read more >
Configure a virtual host for Laravel Project in Xampp ... - Medium
2. Configure Virtual Host. The entry point of a laravel application is the index.php inside the public folder, so the desired directory ...
Read more >
Icons are not showing after creating virtual Host on Xampp for ...
Hi, I have installed Platform 4.0 by Cartalyst. it was working okay on localhost/dev/public but would like to access it via app.dev I...
Read more >
How to Create Virtual Host for Laravel Project on Xampp in ...
Step 2 :- Just Copy and Paste the Below Code but and write your project directory url and remember that, if your Laravel...
Read more >
Laravel practical guide for using XAMPP - Factory.hr
Virtual hosts. After XAMMP is downloaded next thing to do would be to set up a virtual host on XAMPP. On the internet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found