8 | Posts |
Hi, I got some problem with the multi site plugin. My gpEasy install is as follow :
/home/ed/public_html/jstarservice.com/
I create another site here:
/home/ed/public_html/jstarservice.com/fr/
I use the following apache vhost: http://pastebin.com/FA9RAzvb.I've the following .htacces file: http://pastebin.com/Aiq3QaQw.
<?php define('gpdebug',true); // define('gp_indexphp',true); define('gp_indexphp',false); define('gp_indexphp_root','/'); require_once('include/main.php'); ?>I got some errors related to the path: http://pastebin.com/JYS9Ywqd
Do you have any solutions or hint ?
8 | Posts |
As the warning stated, it was related to an open_basedir restriction. After checking the php.ini it was disable so I look for it in gpEasy and found that it's enable in include/common.php:225 SetGlobalPaths() function:
if( $dataDir !== $rootDir ){ ini_set('open_basedir',$dataDir); }
From what I understand it will lock you inside a subfolder/multiple site, which is in contradiction with the multiple site plugins. So what I did was to only enable the restrictions if the $dataDir is not under the root install folder, using preg_match().
if (preg_match("!$rootDir!", $dataDir, $matches)==0){ ini_set('open_basedir',$dataDir); }
I'm not sure this is viable for every configuration, but I think it is when you want to use multiple site for multi language website.
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More NewsFind out more about our Provider Spotlight
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using