2017-07-26 94 views
0

我已經安裝上了新的EC2實例laravel,我已確保我的PHP,MySQL和Apache2的全部運行無法查看

瀏覽器我laravel項目

我Laravel的版本是45年2月5日

我的000-default.conf如下

<VirtualHost *:80> 

     ServerAdmin [email protected] 
     DocumentRoot /var/www/html/testing/public 

     ErrorLog ${APACHE_LOG_DIR}/error.log 
     CustomLog ${APACHE_LOG_DIR}/access.log combined 

</VirtualHost> 

我的apache2.conf文件如下

<Directory /> 
     Options FollowSymLinks 
     AllowOverride None 
     Require all denied 
</Directory> 

<Directory /usr/share> 
     AllowOverride None 
     Require all granted 
</Directory> 

<Directory /var/www/html/testing/public> 
     Options Indexes FollowSymLinks 
     AllowOverride None 
     Require all granted 
</Directory> 

我的文件夾結構是/ var/www/html/testing

但是我試圖打ip時遇到了500.任何幫助都將不勝感激。

+0

你運行'PHP工匠serve' – C2486

+0

是的,但那麼它不工作,我有我的EC2上的項目和服務給了我一個本地主機檢查我的代碼 –

+0

您是否啓用aws ec2設置中的安全組中的端口 – Jabaa

回答

1

從我的經驗,授予權限,以你的日誌文件:

sudo chmod 777 -R /var/www/html/testing/storage/ 
+0

I我得到一個錯誤... file_put_contents(/var/www/html/testing/storage/framework/views/5b6b8c386effa98dcb94bc25d798a39157716c4b.php):faile d打開流:權限被拒絕 –

+0

我從結尾刪除日誌,並chmod整個存儲目錄,並得到Laravel屏幕 –

+0

抱歉,我寫錯了路徑,已經更新它。 –