Reputation: 24472
I am trying to access my API and I get error 500 after uploading it to my FTP.
Laravel located at: MYDOMAIN.COM/v2/api
no error logs are generated.
My public index.php
is the default one. Tried to play with it, but the paths seem fine.
What could have gone wrong?
For the reminder, it is a different domain. I do edit the config/app.php
Upvotes: 2
Views: 272
Reputation: 173
Some things i experienced:
chown -R www-data.www-data /var/www/laravel
$ chmod -R 755 /var/www/laravel
$ chmod -R 777 /var/www/laravel/app/storage
assad ServerName laravel.example.com
DocumentRoot /var/www/laravel/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/laravel>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Credit: http://tecadmin.net/install-laravel-framework-on-ubuntu/#
Upvotes: 1