[英]500 internal error on laravel app on aws ec2
I am trying to deploy laravel app on aws instance .both server & mysql are in the same db.db shows connected .When I hit aws public ip/controllername it gives internal error .In local environment it was working fine.我正在尝试在 aws 实例上部署 laravel 应用程序。服务器和 mysql 都在同一个 db.db 中显示已连接。当我点击 aws 公共 ip/controllername 时,它给出了内部错误。在本地环境中,它工作正常。 here is my apache virtual host conf这是我的 apache 虚拟主机配置
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/marine-cargo-module/public
Options +FollowSymlinks
AllowOverride
All Require all granted
I also have .htaccess file on the laravelapp/public folder like below我在 laravelapp/public 文件夹上也有 .htaccess 文件,如下所示
Options -MultiViews -Indexes RewriteEngine On
Handle Authorization Header
RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301]
Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]
kindly help me to get the application working请帮助我使应用程序正常工作
Make sure you have writtable
permission to storage
& bootstrap
folder.确保您对storage
和bootstrap
文件夹具有可writtable
权限。
Check the appache error logs for more details.查看 appache 错误日志以获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.