I am trying to create a load balanced Drupal installation. My setup has a shared storage that all the webservers can read write to. At the moment I’m having trouble setting up the Drupal configuration at {mydomain}/admin/config/media/file-system/ to save our content to the correct file path.

The file path on the operating system that I’m trying to write content to is of the form:


When I place this in the public file path I get the content written to the local path:


However I know the PHP has rights to write modify content on the shared storage because when I try the same path in private file path the content is written to the shared storage:


Which is what we require.

How can I configure the public file path to write to the same location?

P.S. I think it is something due to the fact that the Drupal config page itself specifies "This directory must be relative to the Drupal installation directory and be accessible over the web." for public path and "* It should be writable by Drupal and not accessible over the web.*" for Private.


  • a symbolic link did the trick. Sep 1, 2015 at 12:00
  • Great! I made it an answer for other users.
    – Shawn Conn
    Sep 1, 2015 at 16:32

1 Answer 1


In a Linux environment, this is done for NFS drives by creating a symbolic link under your Drupal webroot.

In the Windows environment, you can also create a symlink to a network drive path (e.g. \xx.xx.xx.xx\my\content\folder ).

  • Drupal won't save files into a symlinked location. I am trying to solve a very similar issue when saving a file attached to a node. Jan 4, 2016 at 2:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.