无法在浏览器上查看我的laravel项目

时间:2017-07-26 06:45:18

标签: php apache apache2

我在新的EC2实例上安装了laravel,我确保我的php,Mysql和apache2都在运行

我的Laravel版本是5.2.45

我的000-default.conf如下

<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        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.任何帮助将受到高度赞赏。

1 个答案:

答案 0 :(得分:1)

根据我的经验,授予日志文件权限:

sudo chmod 777 -R /var/www/html/testing/storage/
相关问题