Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

symfony

My symfony2 application works fine on my laptop which is my development machine. But when I uploded it to hosting provider I get the error stating

Warning: file_put_contents(): Exclusive locks are not supported for this stream in /somepath/vendor/doctrine/lib/Doctrine/ORM/Proxy/ProxyFactory.php line 155

How can I solve this?

like image 571
adityap Avatar asked Dec 28 '22 02:12

adityap


1 Answers

Try this in your vagrant:

config.vm.synced_folder ".", "/vagrant", id: "v-root", mount_options: ["rw", "tcp", "nolock", "noacl", "async"], type: "nfs", nfs_udp: false
like image 101
Approach Avatar answered Jan 05 '23 10:01

Approach