I have two sites on the same machine - demo and dev.
They are served from their respective home directories.
I've set up private files on both. All the settings seem to be exactly the same. However, on dev, private files work perfectly, but on demo, they don't. When you upload a file it gives no indication of error in the GUI, but when you try to access it you get a 404. The dblog says "The file permissions could not be set on private://2018-04/foo.txt." Searching for it on the command line shows that it has been saved to
<webroot>/private:/2018-04/foo.txt instead of to
Although, strangely, it does in fact create the subdirectory
/home/demo/private-files/2018-04/ ! It just does not put the file in there.
On both sites the private file paths are set :
And the permissions are exactly the same:
There is no difference between the .htaccess in either directory:
What am I missing?