23486 Posts in 18995 Topics by 2878 members
|Go to End|
26 September 2010 at 12:36am
Hi is it possible to set the include_path to include one library for multiple silverstripe websites. I'm using Apache on a Debain server.
26 September 2010 at 1:01am
If you're talking about multiple silverstripe instances using the same sapphire/cms folders, I managed this using symlinks and either creating a silverstripe-cache folder in each site, or using _ss_environment.php to define a unique TEMP_FOLDER path for each site.
If you're after just generic libraries, you can just set the include path in your _config.php, using something like:
set_include_path(get_include_path() . PATH_SEPARATOR .'/path/to/thirdparty/library');
26 September 2010 at 10:42pm
Thanks for that. I have set the include path in PHP then put the RewriteRule sapphire folder in the includes ok but I am getting the 404 error from the .htaccess file. Do I need to update this?
The requested URL /web2works/sapphire/main.php was not found on this server.
|Go to Top|