I'm trying to set my the Private file system path to a folder above the site root, but I keep getting the message:

The directory /var/www/vhosts/mydomain/private exists but is not writable and could not be made writable

I think this is a server permission problem. Any pointers?

Comments

jaypan’s picture

You need to change the file permissions on that directory to 755.

Contact me to contract me for D7 -> D10/11 migrations.

tce’s picture

Thanks for the reply. Changing the permission on that directory doesn't work. Using the path ../private also doesn't work, which is the same thing but thought I'd mention it. It's a new server, other than the file permission on the directory, do you know what could be the problem?

tce’s picture

Got it working. I had to change the ownership of the directory.

chown -R apache:apache private

krisp1’s picture

Thanks for sharing this information. This command fixed issue for me also.