[geeklog-devel] plugins.php does not work well

IvyWe今駒 komma at ivywe.co.jp
Thu Sep 18 10:05:02 EDT 2008


/admin/plugins.php does not work well on our server.

 trouble case: site path
  <path_to_geeklog>/db-config.php
  <path_to_geeklog>/public_html/siteconfig.php

Display:

An error has occurred:
2 - is_dir() [function.is-dir]: open_basedir restriction in effect.
File(/<path_to_geeklog>/plugins/..) is not within the allowed path(s):
(/<path_to_geeklog>/:/usr/share/php/:/tmp/) @ /<path_to_geeklog>/htdocs/admin/plugins.php line 252



So, we changed...

public_html/admin/plugins.php:

251:

before:
................................
        if (is_dir ($plugins_dir . $dir) && ($dir <> '.') && ($dir <> '..') &&
                ($dir <> 'CVS') && (substr ($dir, 0 , 1) <> '.')) {
................................
after:
................................
        if (($dir <> '.') && ($dir <> '..') && is_dir ($plugins_dir . $dir) &&
                ($dir <> 'CVS') && (substr ($dir, 0 , 1) <> '.')) {
................................

Then, it worked well.

--
Geeklog Japanese
Ivy



More information about the geeklog-devel mailing list