简体   繁体   English

仅使用FTP部署Laravel应用程序

[英]Deploy Laravel application only using FTP

I have finished a Laravel application and uploaded it using FTP but can't get it to work even after following multiple tutorials. 我已经完成了Laravel应用程序,并使用FTP上传了它,但是即使遵循了多个教程,也无法使它正常工作。

I can access the frontpage but when i go deeper like /login it gives an 500 internal server error. 我可以访问首页,但是当我更深入地使用/ login时,它会显示500个内部服务器错误。 I can access /index.php/login but without css and bootstrap. 我可以访问/index.php/login但没有CSS和引导程序。

I have.. 我有..

  • Laravel public folder in public_html. Laravel公共文件夹位于public_html中。
  • The rest in an folder called app on the same level as public_html. 其余部分位于与public_html相同级别的名为app的文件夹中。
  • Changed the bootstrap paths in index.php. 更改了index.php中的引导路径。
  • Edited the .env file. 编辑了.env文件。
  • Permission 755 for app/storage folder 应用程序/存储文件夹的权限755

Would appreciate if someone know what i'm doing wrong or a fix! 如果有人知道我在做什么错或解决问题,将不胜感激!

if you are using apache webserver you should enable mod_rewrite module . 如果您使用的是Apache Web服务器,则应启用mod_rewrite模块。 in the .htaccess 在.htaccess中

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

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

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