我正在尝试使用 Envoyer 将我的 Laravel 5 站点部署到我的 VPS。我将站点的 Apache 设置中的文档根更改为/current/public
(下面的设置),当我这样做时,我收到一个通用的 Apache 500 错误。如果我使用旧public
目录,一切都会正确加载。
我也试过chmod 777 -R storage
了,没有运气。Laravel 日志中没有日志条目,一切都部署得很好,没有错误。
我确实注意到,如果我创建一个纯 HTML 文档并通过 Envoyer 部署它,我可以直接使用/current/public
文档根目录访问它,与 Laravel 相关的任何内容(并且仅使用current/public
)都会导致 500。
想法?符号链接会是一个可能的解决方案吗?奇怪的是,我在另一个 Envoyer 站点上的 Forge 配置将文档根设置为public
,但current/public
我看不到任何符号链接。由于某种原因,它可能被设置为current/public
并且只是不显示。
customlog:
-
format: combined
target: /usr/local/apache/domlogs/mydomain.org
-
format: "\"%{%s}t %I .\\n%{%s}t %O .\""
target: /usr/local/apache/domlogs/mydomain.org-bytes_log
documentroot: /home/eyf/current/public
group: eyf
hascgi: 1
homedir: /home/eyf
ifmoduleconcurrentphpc: {}
ifmodulemodsuphpc:
group: eyf
ip: MY.IP.ADDR
owner: root
phpopenbasedirprotect: 1
port: 80
scriptalias:
-
path: /home/eyf/public/cgi-bin
url: /cgi-bin/
-
path: /home/eyf/public/cgi-bin/
url: /cgi-bin/
serveradmin: webmaster@mydomain.org
serveralias: www.mydomain.org
servername: mydomain.org
usecanonicalname: 'Off'
user: eyf
userdirprotect: ''