View project - PHP

Asked

Viewed 108 times

-1

I’m starting in PHP language and would like to know how I view my project, since when using localhost the error "404" appears with the message "Not Found".

The directory of my file . php is this:

C: xampp htdocs shop

The localhost I try to access is this:

http://localhost/store/index.php

I’m doing something wrong?

  • And is the Apache server on? If so, what are the latest logs in the log file ?

  • 11:17:22 [Apache] Error: Apache shutdown unexpectedly. 11:17:22 [Apache] This may be due to a blocked port, Missing dependencies, 11:17:22 [Apache] Improper privileges, a crash, or a shutdown by Another method.

  • Look if you are not using another service that is using the same port as Xampp, or if you have not configured any port other than standard... Looking like this should be working, apparently php and apache are running

  • If you are using VS Code Live-Serve, leave it off while you test with Xampp, I do not know if this can be it, but it is worth the test

2 answers

1


From the error you posted in the comments, I notice that Apache is not starting due to port or settings problems. If this is the case, completely reinstall your Xampp, if the problem still continues, check the release of ports 80 and 443, both in your Firewall and I your router if use. If you use a router between the modem and the computer, try calling directly on the main modem of your internet and see if it works, if it works is some block by default on your router.

I await further details after these procedures.

1

Solved, the problem was port related, I decided to access Xampp > Apache > Conf > httpd.conf, when opening the file by notepad I changed Listen 80 to another port number and it worked. To view the project after that I only had to add the :85 after the host location, thus:

https://localhost:85/store/index.php

Browser other questions tagged

You are not signed in. Login or sign up in order to post.