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

Not able to view my laravel project on the browser

我已经在一个新的 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..任何帮助将不胜感激。

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

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