Robert F Schmitz
Well-known member
Is it possible to store attachments somewhere other than the hosting server? I have limited space but more on other servers.
How do I change the external data path from the default of data?
Edit the library/config.php file and add the following:
PHP:
$config['externalDataPath'] = 'new_external_data_path';
$config['externalDataUrl'] = 'new_external_data_url';
Change the paths to suit. Note that the path is a file path (it can be relative to the installation path) and the URL is how the data will be loaded by users. These values need to point to corresponding locations.
// PATH FOR internal_data DIRECTORY
$config['internalDataPath'] = 'internal_data';
/**
* Relative path to the thumbnails / avatars (etc.) directory from the base installation directory.
* Must be web accessible and server-writable.
* Examples 'data', 'foo/bar/data', '../path/to/thingy'.
*
* @var string
*/
$config['externalDataPath'] = 'data';
/**
* URL to the thumbnails /avatars (etc.) directory. Can be relative or absolute, but must
* point to the web-accessible location referred-to by $externalDataPath.
*
* @var string
*/
$config['externalDataUrl'] = 'data';
$config['internalDataPath'] = '../../../usr/local/apache2/xenforo/data/da';
$config['internalDataPath'] = 'usr/local/apache2/xenforo/data/da';
$config['internalDataPath'] = '/usr/local/apache2/xenforo/data/da';
PHP:$config['internalDataPath'] = 'usr/local/apache2/xenforo/data/da'; $config['internalDataPath'] = '/usr/local/apache2/xenforo/data/da';
Neither of these work as well. I set display_errors to true but still just got a blank white page across the entire site.
Any other ideas?
We use essential cookies to make this site work, and optional cookies to enhance your experience.