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

moez123's avatar

Xampp server download index.php instead of displaying it

I tried to open my laravel project in xampp server when I give the path of project and public folder where it belongs index.php the browser download it instead of displaying the site my system is linux the version of php is 5.6 . When it starts to download it shows application\httpd I tried to add types in httpd but it didn't work and thenks for helping

0 likes
2 replies
edwardpalen's avatar

Hi @moez123.

Can you show where your autoloader is pointed in the index.php file and can you see where the project address is pointing in the host file?

Please or to participate in this conversation.