Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

agyson's avatar

Can't use Routing system without 'php -s localhost:8080'

I'm learning how to create a routing system with php in the "The Php practitioner" series, but I can not access the website without running php on a dedicated port. I can not access my website on 'localhost / test', but I can access it if it includes ports like 'localhost: 8080 / test'

0 likes
2 replies
agyson's avatar

When i tried to enter an url like www.test.com/login, it keeps returning to 404 not found

Snapey's avatar

What web server do you have installed and have you configured it to point to your Laravel's public folder?

Please or to participate in this conversation.