How to have a single upload directory for a multiple sugarcrm instance on a differenct server sharing only one common databases?

Hello everyone, we are using multiple SugarCRM instances on a multiple server, with only one common database. Now, I want to have a single 'upload' directory across my all CRM instances, so anyone can access attachments without any issues. Kindly guide me on this, if it possible or you can suggest me some alternate options for this. Any help appreciated. Thank you all.
  • Hi Tony, We had a similar requirement, and we implemented by mounting a shared Network File System on the upload directory.
  • Hello Tony Montana,

    Paramesh is correct in his assessment. The best bet is to create a NAS and then mount that directory as the upload directory on the various servers. You can usually edit your /etc/fstab to automatically map and mount that directory. 

    Kind Regards, 

    Jason Smith
  • You can update the value for  $sugar_config['upload_dir'] in the config_override.php to point a location of your choosing.
  • Thanks for solution, guys. I'll definitely try it.
  • Hey jeff, suppose my crm is on '172.26.154.33' IP. So, is it possible if I insert following line in the config_override.php file to access the upload directoy which is located on a different server.
    $sugar_config['upload_dir'] = '172.26.154.34/.../'
    will it work?
  • I believe that with the settings you have above would not work. The directory would need to be accessible by the server.   examples

    $sugar_config['upload_dir'] = '/mnt/s3/upload'
    or
    $sugar_config['upload_dir'] = 'd:/sugarcrm/upload'