0

I have installed laravel on a new EC2 instance and I have ensured that my php, Mysql and apache2 are all running

My Laravel version is 5.2.45

my 000-default.conf is as follows

<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>

my apache2.conf file is as follows

<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>

my folder structure is /var/www/html/testing

But I am getting a 500 when trying to hit the ip..Any help will be highly appreciated.

Dhaval Chheda
  • 4,637
  • 5
  • 24
  • 44

1 Answers1

1

From my experience, give permissions to your logs files:

sudo chmod 777 -R /var/www/html/testing/storage/
Firas Rassas
  • 509
  • 4
  • 12