Gabriel Biacotti
Gabriel Biacotti

Reputation: 37

What is it missing/wrong with my new website not showing up?

Here's the steps I took: 1) Command Prompt

2) path file

3) error found

For some reason I'm not able to figure out, this is not working. I'm a novice and I'm currently stuck here. Any help will be much appreciated! Thank you in advance, Gabriel

Upvotes: 1

Views: 55

Answers (3)

Quentin
Quentin

Reputation: 943979

You are running php -S in the wrong directory.

The www directory is inside a directory called php somewhere inside your One Drive directory, but you are running php -S from a directory called i346241.

The server started by php -S takes the current directory to be the root of the development server.

Upvotes: 2

Irfan
Irfan

Reputation: 156

Create a new folder and then go to it in cmd using cd command. And move the file into it. Then start the php server again and acces it using this link: localhost:4000/site.php

Or install apache server as @mshahien said. You can use xampp.

Upvotes: 2

mshahien
mshahien

Reputation: 63

you should consider installing apache webserver and setup the host file in your pc Apache : https://knowledgebase.progress.com/articles/Article/How-to-install-Apache-HTTP-Server-on-Windows-Server

Set Hosts file in win : https://docs.serverpress.com/article/176-windows-10-and-localhost-is-blank

Upvotes: 2

Related Questions