#config:cache absolute path problem

3 messages · Page 1 of 1 (latest)

midnight stag
#

I deploy my very first Laravel app on production server.

When I run the artisan config:cache, I receive the following error:

is_dir(): open_basedir restriction in effect. File(/web/resources/views/vendor/notifications) is not within the allowed path(s): (/var/www/clients/client4/web8/web:/var/www/clients/client4/web8/private:/var/www/clients/client4/web8/tmp:/var/www/ezevent.hu/web:/srv/www/ezevent.hu/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom) in /var/www/clients/client4/web8/web/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:198

I have checked the bootstrap/cache/config.php file, and it contains many absolute paths:

'file' =>
array (
'driver' => 'file',
'path' => '/web/storage/framework/cache/data',
'lock_path' => '/web/storage/framework/cache/data',
),

What should I do to have relative paths (to the index.php I suppose)

lethal flax
midnight stag
#

hello Robert,
Thank you for your response, but I think the problem is not this.

As you can see the error message, the app tries to check the existence of /web/resources/views/vendor/notifications - which is coming from the config.

But this path is not correct, because it should be either web/resource... (without the starting / ) or
/var/www/clients/client4/web8/web/resource... which is the full absolute path on the server.

Note: this app is deployed on a LAMP server with Ispconfig