Loading...
 
Community and *.tiki.org site organization

Community and *.tiki.org site organization


open_basedir problem

posts: 3 United States

I just installed tiki 1.7.5
Due to hosting service restriction the open_basedir is restricted, so I am into a lot of troubles. Tried to find any solutions on this board, but didn't see any (not on the surface).
The following article helped with initial failover after install:
http://sourceforge.net/tracker/index.php?func=detail&aid=796457&group_id=64258&atid=506846

Next I found that no images are displaying. Instead of the image I see word "Image" or "ImageThumbnail"

Turns out it is the same problem again.
Scripts:
db/tiki-db.php
lib/pear/DB.php
lib/Date.php
are trying to require php files, but failing and generating warning messages. Warning messages in-turn are conflicting with HEADERs and image getting dumped as an ASCII blob right from database.

I modified those files (Example for db/tiki-db.php)
$absolute_path = "/home/my_http_root/tiki";
require_once("$absolute_path/lib/pear/DB.php");

Now images are working properly.
The question is: Is there any better way to fix this, so one will not have to hack files left and right?
Really worry what else may be broken the same silent way.

posts: 2881 United Kingdom

Hiya

We have open_basedir fixes on the InstallTikiUnderSafeMode page, right down at the bottom.


Damian


posts: 3 United States
Well, the answer to the question is no. One has to hack. Also it is not too bad. I had to modify 6 files total to make things work. For application of this size, it is quiet an achievement. biggrin Good work!