Using absolute file paths on Linux in config files

  •  03-29-2009, 4:47 PM

    Using absolute file paths on Linux in config files

    Does anybody know if it is possible to use absolute file paths for the document upload configuration instead of file paths relative to the site root?  For instance, the config file for the FilesGalleryPath would look like:
     
    <security name="FilesGalleryPath">/var/www/vhosts/mysite.com/httpdocs/uploads</security>
     
    instead of the relative path:
     
    <security name="FilesGalleryPath">/uploads</security>
     
     
    The reason I need to do this is the Cute HTML editor is stored in a different physical location on the server from where the file uploads directory is located, but it's the same site/domain name.  I tried the above configuration and it didn't work, but I was hoping there was a workaround.
     
    I have also tried setting the path in the PHP code directly:
     
    $editor->ConfigurationPath="'/var/www/vhosts/mysite.com/httpdocs/CuteEditor/Configuration/Articles.config";
     
    Again, using an absolute path here did not work either.
View Complete Thread