Hi Juanitou
when you say
-Copy also the .htaccess file (after installing the SS3 environment) and modify the RewriteBase directive.
what should the RewriteBase Directive be?
I'm getting a lot of "Failed opening required File" because it's not on the Include path,
I'm sure something (apache or PHP) needs to put a / on the end of the include paths to find the required files but I'm not sure how to tell it that
my .htaccess has :
<IfModule mod_rewrite.c>
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
RewriteBase '/'
RewriteRule ^vendor(/|$) - [F,L,NC]
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
RewriteRule composer\.(json|lock) - [F,L,NC]
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.php$
RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
my site directory is in /var/www/mysite
and framework is in /var/www/ss3/framework and cms /var/www/ss3/cms
the symlinks are working and the _ss_environment.php in /var/www/mysite is being read and working
cheers
EDIT:
it looks like it stems from having my BASE_PATH set incorrectly by blindly copying somebody else's statement above
my one has one less dirname() call
define('BASE_PATH', rtrim(dirname($_SERVER['SCRIPT_FILENAME']), DIRECTORY_SEPARATOR));
I think I'm using SS 3.1.3 - I can't tell which because composer doesn't say (or I don't know how to ask it)
the silverstripe_version files in the framework and cms dirs are blank
When I try to sue symlinks for cms and framework (to ../ss3/framework) I end up with a
PHP Fatal error: Cannot redeclare class Zend_Cache in /var/www/nzia/framework/thirdparty/Zend/Cache.php on line 28
So I don't know if this is in the Autoloader manifest twice somewhere or what
Posted to: multisites possible? | Show Thread | Post Reply