Hello,
When I do php artisan serve I see the welcome page. When I start apache and goto the same site I see a permission denied message on app/sessions.
Anyone a idea how to solve this ?
Roelof
Check your apache error log, by default its /var/log/apache2/error.log
Also make sure that /path/to/laravel/public
is the document root and not /path/to/laravel
Thanks,
Nothing can be found which points this error : The exact error that I see is this :
ErrorException (E_UNKNOWN)
file_put_contents(/var/www/html/cats/app/storage/sessions/dd412fdbc6afa42da845de509d0e356e08361b15): failed to open stream: Permission denied
Open: /var/www/html/cats/bootstrap/compiled.php
}
public function requireOnce($file)
{
require_once $file;
}
public function put($path, $contents)
{
return file_put_contents($path, $contents);
}
public function prepend($path, $data)
Roelof
You need to chmod app/storage to be writeable.
chmod -R 775 app/storage
Also done several times. If the app/storage is not 755 then php artisan serve would also not work,
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community