ez.no / exponential / documentation / configuration / configuration / multi site
These documentation pages are no longer maintained. Please visit the new documentation site.
If you are setting up several sites with one Exponential 3 installation using site access, you might want to separate the cache and storage directory. This will make things less cluttered and easy to manage when having many sites per installation.
The default settings in Exponential 3 stores cache and files in a common directory for all sites. This can cause problems if you e.g. want to move one of the sites to another server in the future. This can be changed by setting some variables in your site.ini.append for each of your sites.
In this example we will separate storage files and cache for 'myfirst.ezpsite.com', 'admin.myfirst.ezpsite.com', 'mysecond.ezpsite.com' and 'admin.mysecond.ezpsite.com'. After setting up site access (which you can read more about here) we need to set some additional settings in the site.ini.append files.
file: settings/siteaccess/myfirst/site.ini.append [FileSettings] StorageDir=myfirst/storage CacheDir=myfirst/cache
file: settings/siteaccess/admin.myfirst/site.ini.append [FileSettings] StorageDir=myfirst/storage CacheDir=myfirst/cache
file: settings/siteaccess/mysecond/site.ini.append [FileSettings] StorageDir=mysecond/storage CacheDir=mysecond/cache
file: settings/siteaccess/admin.mysecond/site.ini.append [FileSettings] StorageDir=mysecond/storage CacheDir=mysecond/cache
Now we have told Exponential to store myfirsts cache in var/myfirst/cache and myfirsts files in var/mysecond/storage. The same goes for the mysecond site.
Important: It is important that both the user and the admin site has the same storage directory. Otherwise if you e.g. upload a new file using the admin site, the user site will not be able to locate the file because it is looking for it in the wrong directory.
Important: Make sure that Apache has sufficient rights for the folders you create.
Note: The cache for ini-files and translations can not be separated as described in this document
Comments
mistake
Charles-Edouard Coste
Monday 14 May 2007 12:36:27 pm
I think it's more:
"Now we have told Exponential to store myfirst cache in var/myfirst/cache and myfirst files in var/MYFIRST/storage"
Correct link
Eivind Marienborg
Wednesday 11 August 2004 1:59:03 pm
Broken link in this documentation
Børge Kjeldstad
Wednesday 21 July 2004 1:18:07 pm