Loading...
 
Skip to main content

Architecture / Installation


open_basedir erro

Hi all

I keep getting this error:


Warning: tempnam() function.tempnam: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/jifor123/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/jifor123/public_html/labs/lib/init/initlib.php on line 101



I have installed TikiWiki using Fantastico. I Have PHP 5.4.2, MySQL 5.0.27, Apache 1.3.39. i have checked httpd.conf and the allowed path (/home/jifor123) exists, so I cannot understand why the error exists.

Can anyone help?


See if your hosting service can change you to use PHP 4 instead of PHP 5. This solved my problem.


I have got the same error.
The help in Open_Basedir_tweaksQuestion does not helped me.

So I have fixed it manually, by fixing the code in "tikiwiki_main_directory/lib/init/initlib.php"

The line 101 is:
$tempfile = tempnam(false,'');

I made it like this:
$tempfile = tempnam('/some/dir/where/u/can/write/','');

Forgot to mention in previous post that I am using PHP 5.2.5