Page 1 of 1

open_basedir restriction in effect

Posted: Mon Apr 02, 2007 10:48 pm
by hadron
Hi,

I installed CMSMS 1.0.5 on a server with PHP Version 5.0.4.

The install completed sucessfully, but I cannot e.g. add a news item from the admin interface.

The error message is:

Warning: main() [function.main]: open_basedir restriction in effect. File(/fckeditor_php5.php) is not within the allowed path(s): (/home/web/web42187:/usr/home/web/web42187:/var/tmp:/usr/local/lib/php:/usr/local/share/pear) in /usr/home/web/web42187/modules/FCKeditorX/FCKeditor/fckeditor.php on line 31

Warning: main(fckeditor_php5.php) [function.main]: failed to open stream: Operation not permitted in /usr/home/web/web42187/modules/FCKeditorX/FCKeditor/fckeditor.php on line 31

Warning: main() [function.include]: Failed opening 'fckeditor_php5.php' for inclusion (include_path='.:') in /usr/home/web/web42187/modules/FCKeditorX/FCKeditor/fckeditor.php on line 31

Fatal error: Class 'FCKeditor' not found in /usr/home/web/web42187/modules/FCKeditorX/FCKeditorX.module.php on line 342


Now, this is really strange, as the path to the file very well is within /usr/home/web/web42187 , which is listed in the open_basedir.

phpinfo() tells me that

open_basedir /home/web/web42187:/usr/home/web/web42187:/var/tmp:/usr/local/lib/php:/usr/local/share/pear

and that the CWD where I executed phpinfo() is  /usr/home/web/web42187


Any ideas?  ???

n.

Re: open_basedir restriction in effect

Posted: Tue Jun 12, 2007 9:00 pm
by raccoon
hi

try that:

in file modules/FCKeditorX/FCKeditor/fckeditor.php add dirname


if ( version_compare( phpversion(), '5', '<' ) )
        include_once( dirname(__FILE__).'/fckeditor_php4.php' ) ;
else
        include_once( dirname(__FILE__).'/fckeditor_php5.php' ) ;

+