简体   繁体   English

Laravel部署到VPS服务器不起作用

[英]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. 首先,第一件事:我是Laravel,Git(hub)和Linux的入门者,但是我想获得一个好的工作流程,所以我不得不强迫自己第一次学习正确的方法。

Now then. 接着。 I made a small simple website with Laravel homestead. 我用Laravel宅基地做了一个小型的简单网站。 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. 我在OVH租了一个VPS,并使用SSH进入了它。 I set up apache and I cloned the files to my /var/www/html. 我设置了Apache,并将文件克隆到了/ var / www / html。 However, as you can see on www.somentus.nl, it's not working. 但是,正如您在www.somentus.nl上看到的那样,它不起作用。 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 在此先感谢您的帮助,也非常抱歉成为这样的菜鸟:P

*Edit: great, my VPS crashed :D I'll try out the suggestion of switching to nginx when it's back up, hopefully tomorrow! *编辑:太好了,我的VPS崩溃了:D我将尝试在备份时切换到nginx的建议,希望明天! :) :)

Homestead doesn't use apache, they use a Ubuntu list with a nginx setup. Homestead不使用apache,而是使用带有nginx设置的Ubuntu列表。 What you're using on your VPS? 您在VPS上使用的是什么?

You can find here everything that the homestead machine installs. 您可以在此处找到homestead机器安装的所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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