I have connected my server to an smb share, where all web files are stored. I also have lighttpd as webserver. The network drive is mounted and can be read by lighttpd. But when I try to write a file with file_put_content
, an empty file will be created. And there is also a warning in the error.log: "permission denied"
Where could be my mistake?
Check if the file is accessible to PHP (open_basedir). Here's what is probably causing the problem: http://php.net/manual/en/ini.core.php#ini.open-basedir