I am new to centos. I have installed apache and php 7. I have also installed all php extensions required for laravel.
I have an laravel app working fine on windows.I have just transferred my code from windows to centos 7.The problem is now it shows 500 internal error in console on every route. I have changed .htaccess code as explained here:
https://laravel.com/docs/5.0/configuration#pretty-urls
folder rights to storage and bootstrap is set to 777, also enabled mod_rewrite.
Also when I installed fresh laravel its not working. When i am updating the main route in web.php from
Route::get('/', function () {
return view('welcome');
});
to
Route::get('/', function () {
return 'welcome';
});
It shows welcome message but for
Route::get('/', function () {
return view('welcome');
});
getting 500 internal error in console and blank page appears.