Topic Closed

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.

  1. When I to the http://jstar.org/fr/ (local host) I got the content of ./fr/index.html instead of the index.php.
  2. When I explicitly open http://jstar.org/fr/index.php, I got nothing.
  3. When I went to check the ./fr/index.php file, here is what I got: http://pastebin.com/YK7mdiu5. Note that there is NO closing tag. Is this normal ?
  4. When I copy my root index.php into ./fr/index.php :
    <?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 ?

12 years ago#608

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.

12 years ago#621

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In

  Register