Php 连接到绝对路径的Laravel存储/日志

Php 连接到绝对路径的Laravel存储/日志,php,laravel,Php,Laravel,我想将我的laravel应用程序部署到Web服务器。我收到以下错误消息: is_dir(): open_basedir restriction in effect. File(/my/local/path/storage/logs) is not within the allowed path(s) 如何将存储/日志设置为相对路径 我跑 它说: The [/my/local/path/public/storage] link has been connected to [/my/local/p

我想将我的laravel应用程序部署到Web服务器。我收到以下错误消息:

is_dir(): open_basedir restriction in effect. File(/my/local/path/storage/logs) is not within the allowed path(s)
如何将存储/日志设置为相对路径

我跑

它说:

The [/my/local/path/public/storage] link has been connected to [/my/local/path/storage/app/public].
The links have been created.

您是否尝试更改存储文件夹权限

chmod -R 755 storage

权限是正确的。如错误消息所示,它在本地计算机绝对路径中搜索存储/日志。我想将其更改为在服务器中搜索相对路径。
chmod -R 755 storage