简体   繁体   中英

Laravel deployment to VPS server not working

First things first: I'm a huge noob with Laravel, Git(hub) and Linux, but I want to get a good workflow so I'm forcing myself to learn to do things right the first time.

Now then. I made a small simple website with Laravel homestead. It's working on my desktop, it's all ready for deployment. I've rented a VPS at OVH and I've used SSH to get into it. I set up apache and I cloned the files to my /var/www/html. However, as you can see on www.somentus.nl, it's not working. Rather than showing the website, all it does is show the folder structure. Can someone explain me what I'm doing wrong?

Thanks in advance for the help and my apologies for being such a noob :P

*Edit: great, my VPS crashed :D I'll try out the suggestion of switching to nginx when it's back up, hopefully tomorrow! :)

Homestead doesn't use apache, they use a Ubuntu list with a nginx setup. What you're using on your VPS?

You can find here everything that the homestead machine installs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM