laravel file_put_contents(): Exclusive locks are not supported for this stream

后端 未结 5 2148
無奈伤痛
無奈伤痛 2021-01-07 12:08

I tried to upload my site to laravel to host and be configured but I couldn\'t load the project. The error is as follows:

file_put_contents(): Exclusi

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-07 12:50

    I had the same error, while using NFS to share my code from my developer machine to my Centos server. The problem seems to be that the server tried to access my NFS-shared files using NLM locking by default, so I had to disable locking in my settings. This is done by adding nolock in the NFS options in /etc/fstab

    This fixed the issue for me

提交回复
热议问题