Using absolute file paths on Linux in config files

Last post 04-05-2009, 4:16 PM by fl78al. 2 replies.
Sort Posts: Previous Next
  •  03-29-2009, 4:47 PM 50425

    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.
  •  03-30-2009, 2:26 PM 50474 in reply to 50425

    Re: Using absolute file paths on Linux in config files

    fl78al,

    Please try: 

    $editor->AbsoluteImageGalleryPath=""/var/www/vhosts/mysite.com/httpdocs/uploads";

    $editor->ImageGalleryPath = "/uploads";


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-05-2009, 4:16 PM 50790 in reply to 50474

    Re: Using absolute file paths on Linux in config files

    That worked - thanks very much!
View as RSS news feed in XML