Zubrag.com
May 22, 2012, 08:08:52 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Question about Base_Dir setting in Plesk  (Read 2122 times)
clicky
Newbie
*
Posts: 2


« on: May 11, 2010, 01:21:14 pm »

I am using a VPS with Plesk installed which seems to automatically set the 'BASE_DIR' to /var/www/vhosts/oursite.com/httpdocs/. For security reasons, I want to store the downloadable files outside of the publicly accessible directories, but the program will not then allow me to then access them using Smart File Download to do so. The program works fine using Smart File Download based on /var/www/vhosts/oursite.com/httpdocs/ and below. Any pointers on how I can change the Base_Dir so that I can store and access the files outisde of the publicly accessible areas ?

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: May 12, 2010, 04:41:48 am »

have you tried to set absolute (from the root) path in smart file download?
like below, and place your downloadable files there
define('BASE_DIR', '/var/www/vhosts/oursite.com/');
Logged
clicky
Newbie
*
Posts: 2


« Reply #2 on: May 13, 2010, 11:22:38 am »

Yes, I have tried moving the files up a directory and resetting the absolute path from root define('BASE_DIR', '/var/www/vhosts/*****.com/'); and changed relevant permissions but it still gives me a 404 file not found error even though the files are definately there.

I would be grateful for any other ideas as to how to achieve this - thanks
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #3 on: May 14, 2010, 03:00:54 am »

Which url results in 404?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC