open_basedir restriction in effect

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
hadron

open_basedir restriction in effect

Post 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.
raccoon
Forum Members
Forum Members
Posts: 35
Joined: Thu May 10, 2007 8:12 pm

Re: open_basedir restriction in effect

Post 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' ) ;

+
La connaissance s'acquiert par l'expérience, tout le reste n'est que de l'information.

http://www.cmsmadesimple.fr -> CMS Made Simple Francophone
Locked

Return to “[locked] Installation, Setup and Upgrade”