I am setting up a second site using MSM in EE2. I have followed the instructions from EE but I keep getting the following error when I try to access the home page in the 2nd site:
Your system folder path does not appear to be set correctly. Please
open the following file and correct this: index.php
The second site is set as sub-domain as follows:
main site: http://174.121.46.122/~flowerwo/
sub-domain: http://174.121.46.122/~plants/
I have tried a server path and a url with no success:
$system_path = ‘/home/domain/public_html/system/’;
I could use some help on this. Thanks!
ExpressionEngine’s MSM (Multiple Site Manager) works best using virtual domains or subdomains served off the same server.
The value for your
$system_pathvariable will depend where on how you have the second domain’s files relative to the first domain.For example, if your directory structure looked like this:
Then you could set your
$system_pathvariable fordomain2.comas:Your setup is slightly different, since you appear to be using Apache’s UserDir Module for your domains instead of VirtualHost Directives.
I don’t have any experience with this rather odd setup, but you may just need to adjust a few settings in your second domain’s
admin.phpandindex.phpfiles:The value can either be relative or absolute from your ExpressionEngine system folder, though some servers may require a full, absolute path.
If you want a bulletproof way of determining the server path for each of your MSM domains, upload a simple PHP file named
phpinfo.phpinto the root of each domain:Load the page in your browser and look for the following variable:
The value of that variable will be the full path to your PHP Info script:
Remove the
phpinfo.phppart, add in the name of your system folder,system, and that will be the path to your MSM domain:If ExpressionEngine still has problems, you might want to see if your server has any PHP open_basedir or PHP SafeMode restrictions in place (these settings will be determined by your web host).