4 months ago

Visiting my Laravel website hosted on Synology downloads a file

Posted 4 months ago by timyboy12345

Hi there,

I want to host a Laravel website on my Synology NAS. I have everything set up, and working. I've downloaded composer, created a project, forwarded all ports and it all works. But when I visit my website (laravel.something.nl) instead of seeing the correct page, my computer downloads the public/index.php file.

I did create a virtual host and point it to the /public directory, but this is correct (right?)

It seems to me it isn't executing the php script, but just printing the code. Windows downloads a file to my PC, with the PHP code, while my iPhone shows my the raw PHP code in the browser.

If anyone could help me, I would appreciate it!

Please sign in or create an account to participate in this conversation.