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

fabianhenzler's avatar

Laravel Valet - .php file not found

Installation of Laravel Valet went great and it serves .html. But whenever I want a .php like index.php to be served, it says "File not found."

0 likes
4 replies
mendomedia's avatar
Level 2

Found a fix. For me it was adjusting the PATH.

export PATH=$PATH:~/.composer/vendor/bin

Then uninstall valet, install valet and park your Sites directory again.

1 like
fabianhenzler's avatar

sadly this doesn't work with my environment :( any other ideas? PATH Variable is set correctly

fabianhenzler's avatar

is there something like a .htaccess that could be responsible?

Please or to participate in this conversation.