简体   繁体   English

在Amazon AWS EC2上发布Laravel 5.5 App

[英]publish laravel 5.5 app on amazon aws ec2

I have deploy laravel app on amazon aws but it's not working. 我已经在Amazon AWS上部署了laravel应用,但无法正常工作。 When i visit url it says 'This site can't be reached'. 当我访问url时说“无法访问此网站”。 Can anybody help me solve the issue? 有人可以帮我解决问题吗? I have already uploaded code and setup database on amazon aws ec2. 我已经在Amazon AWS EC2上上传了代码和设置数据库。 Also changed DocumentRoot "/var/www/public" in httpd.conf. 还更改了httpd.conf中的DocumentRoot“ / var / www / public”。

Have you tried running composer install ? 您是否尝试过运行composer install This could be the issue. 这可能是问题所在。 Also, have you checked your Apache for enabling ReWrite? 另外,您是否检查过Apache启用了ReWrite? Try this for Apache sudo a2enmod rewrite . 尝试使用此sudo a2enmod rewrite进行Apache sudo a2enmod rewrite

If all that fails, try changing permissions for Laravel Files. 如果全部失败,请尝试更改Laravel文件的权限。 The following commands will work for you: 以下命令将为您工作:

sudo chmod -R 755 storage/ bootstrap/

Thank you. 谢谢。

Failure point with the info you've given thus far could be in any number of places. 到目前为止,您提供的信息的失败点可能在任何地方。 So start with the basics and go from there. 因此,从基础开始,然后从那里开始。

First thing I would do is see if your requests are actually getting to the server. 我要做的第一件事是查看您的请求是否真正到达服务器。 If you can ssh in to the server and take a look at your access logs, that's a start so you can make sure it is at least getting that far. 如果您可以进入服务器并查看访问日志,那么这是一个开始,因此您可以确保它至少可以走得那么远。

Then you can look further from there. 然后,您可以从那里进一步看。 Check error logs, etc. 检查错误日志等

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

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