Unable to access grav start page on Windows 10 local site

I just started with adding IIS to my Windows machine then added PHP 7.4.15 and downloaded grav-admin package. I ran a script “php -S localhost:8000 system/router.php in command prompt, it says “PHP 7.4.15 Development Server (http://localhost:8000) started (The issue is it does not say Listening on localhost:8000 etc.) . What am I missing? When I go to “http://localhost” I get the Microsoft default page. But with port 8000 I get error saying this site cannot be reached. Any help to get grav started will be appreciated. Thanking you in advance. AA

@aaajani, I have no experience with IIS, but will add my 2 cents anyway…

You are starting 2 webservers: IIS and the webserver started by php -S localhost:8000 system/router. My guess is that IIS takes precedence. IIS works fine on port 80, but throws an error on port 8000. Probably because that port has not be defined.

Anyway, its just a guess…

Suggestion:
In this post, someone shows step by step how IIS + PHP has been setup. After solving an initial error, things run fine.

Try to follow the steps and see if it works for you. If not you might try Laragon which is said to work fine too.

It might be a good idea anyway to run you development on Apache, because most hosters run Apache.

Another two cents; recently I tried using Grav’s built-in Web Server as described in the Grav blog post Using Grav’s new built-in Web Server.

Besides the super easy install that server is really blazing fast!

1 Like