Dhaval Chheda Dhaval Chheda - 3 years ago 87
PHP Question

Not able to view my laravel project on the browser

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.

Answer Source

From my experience, give permissions to your logs files:

sudo chmod 777 -R /var/www/html/testing/storage/
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download