2

I am using Laravel. In XAMPP's htdocs folder my laravel root folder name is sh. I ran the following code

php artisan serve

and found that

 Laravel development server started: <http://127.0.0.1:8000>

In Browser Address Bar I wrote

localhost:8000

now

waiting for localhost...

never ends.

I ran this code

C:\>netstat -a

in a long list I found that

TCP    127.0.0.1:8000         ommited-PC:0            LISTENING
TCP    127.0.0.1:8000         ommited-PC:49674        ESTABLISHED

In Browser's address bar I wrote

http://localhost/sh/public/

the site opens correctly.

This is my observation. I don't know why localhost waits for ever and what should I do.

Md. Harun Or Rashid
  • 2,000
  • 4
  • 21
  • 37

2 Answers2

2

Solved

This was because of Avast Antivirus. By mistake Avast treated server.php file as a threat. I make an exception following this link

https://support.avast.com/en-ww/article/Antivirus-scan-exclusions

then the problem has been solved.

Md. Harun Or Rashid
  • 2,000
  • 4
  • 21
  • 37
0
  • Try to run in different port. Check this thread for further detail... Click here
Wajid
  • 26
  • 1
  • 1
  • 8