// automatically assign base_path and base_url
if($base_path==""||$base_url=="") {
$a = explode("/manager",str_replace("\\","/",dirname($_SERVER["PHP_SELF"])));
if(count($a)>1) array_pop($a);
$url = implode("manager",$a); reset($a);
$a = explode("manager",str_replace("\\","/",dirname(__FILE__)));
if(count($a)>1) array_pop($a);
$pth = implode("manager",$a); unset($a);
$base_url = $url.(substr($url,-1)!="/"? "/":"");
$base_path = $pth.(substr($pth,-1)!="/" && substr($pth,-1)!="\\"? "/":"");
$site_url = (!isset($_SERVER[’HTTPS’]) || strtolower($_SERVER[’HTTPS’]) != ’on’)? ’http://’ : ’https://’;
$site_url .= $_SERVER[’HTTP_HOST’];
if($_SERVER[’SERVER_PORT’]!=80) $site_url = str_replace(’:’.$_SERVER[’SERVER_PORT’],’’,$site_url); // remove port from HTTP_HOST
$site_url .= ($_SERVER[’SERVER_PORT’]==80 || isset($_SERVER[’HTTPS’]) || strtolower($_SERVER[’HTTPS’])==’on’)? ’’:’:’.$_SERVER[’SERVER_PORT’];
$site_url .= $base_url;
}
I requested write permissions for the three folder’s, and am checking into what exactly the virtual directory setup does, if it might allow for write permissions and scripts that are exectuable, I can set one of those up for the cache folder... I pasted the techies at my host the whole forum answer, we’ll see if they can come up with something, not holding my breath though...
Well officially the directories that should be writeable are:
So your first step is to try setting those as writeable and see what happens (although you should still be able to run MODx with some limitations without making images or export writeable).
- /assets/cache (and its files)
- /assets/export and
- /assets/images
The only question hanging there is due the fact that your host insists that a writeable directory can’t also be executable. So this means that the cache files will not be executable, and I don’t know if that matters or not. If it does matter, you can turn off caching of documents but I’m not sure what would happen with the publishing cache file in that case (anyone?).