|
From: Reini U. <ru...@x-...> - 2007-03-18 20:58:13
|
2007/3/18, Morten Sickel <ab...@si...>:
> I just have tried to upgrade a phpwiki installation from 1.2.10 to the latest.
> I am trying to set it up at an isp where I have no access whatsoever outside
> my own directory and no possibility to do anything on the set up of the
> server.
>
> I am then only greeted with
>
> Fatal Error:
> lib/FileFinder.php:191 Error: /tmp: file not found
>
> lib/FileFinder.php:191 Error: /tmp: file not found
>
> This happens both when (trying to) using dba and mysql.
/tmp is used in:
DATABASE_DIRECTORY (mandatory)
PLUGIN_CACHED_CACHE_DIR (mandatory) and
TEMP_DIR (optional)
ACCESS_LOG (optional)
> I have been looking into config.ini, and changed all occurences of /tmp there
> to tmp and made a directory tmp under my phpwiki installation that is
> writeable for the server. No help. When grepping for /tmp in the source, I
> find quite a few occurances where that is hard coded, so it seems to me that
> even if I am telling it through config.ini to stay away from /tmp, it cannot
> be avoided (without going deep diving into the code) e.g. in l
> lib/WikiDB/backend/dba.php I find:
This is is just the default if you didn't set DATABASE_DIRECTORY
> class WikiDB_backend_dba
> extends WikiDB_backend_dbaBase
> {
> function WikiDB_backend_dba ($dbparams) {
> $directory = '/tmp';
> $prefix = 'wiki_';
> ...
>
> of cource, it might be that the $directory is set to something else further
> down the road through the extract($dbparams) call, but it is obious that it
> is presently no simple way for an end user (even one with quite a bit of php
> experience) to tell phpwiki to stay away from /tmp
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
http://spacemovie.mur.at/ http://helsinki.at/
|