php - Laravel Project Folder Location Apache -


i created new laravel project in /var/www/html/project with:

cd /var/www/html laravel new project 

my apache config file has following:

documentroot "/var/www/html/project/public" ... <directory "/var/www/html/project/public"> 

when go website homepage don't see welcome page. shouldn't default route /var/www/html/project/app/http/routes.php return welcome page? missing in apache config file?

route::get('/', function () {     return view('welcome'); }); 

you need give files permission

directory permissions after installing laravel, may need configure permissions. directories within storage , bootstrap/cache directories should writable web server or laravel not run. if using homestead virtual machine, these permissions should set. #laravel installation

you need give storage writable permissions.

sudo chgrp www-data -r bootstrap/cache storage sudo chmod g+w -r bootstrap/cache storage 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -