Loading...
 
Architecture / Installation

Architecture / Installation


Re: Re: /tmp folder is not accessible, can't install

posts: 957

> I got a similar problem, I have a few ideas on what it could be, but dont know how to solve it, and even after having looked around for a solution for a few hours and tried some, it dosent seem to help me.. so now I post smile
>

>
Tiki Installer cannot proceed:

> The directory '/tmp' does not exist or PHP is not allowed to access it (check open_basedir entry in php.ini).

> ...


We had a similar problem, and we solved with this:

Modified this file ./lib/init/initlib.php

Orginal bit of code at ./lib/init/initlib.php (towards the end of the file)

Line 9 to 13 (numbers from the example below) need to be commented), and added line 8, to that it results as :

Copy to clipboard
/** Return system defined temporary directory. * In Unix, this is usually /tmp * In Windows, this is usually c:\windows\temp or c:\winnt\temp * \static */ function tempdir() { static $tempdir; if (!$tempdir) { $tempfile = tempnam(false,''); $tempdir = dirname($tempfile); @unlink($tempfile); } return $tempdir; } }

Copy to clipboard
/** Return system defined temporary directory. * In Unix, this is usually /tmp * In Windows, this is usually c:\windows\temp or c:\winnt\temp * \static */ function tempdir() { static $tempdir; $tempdir = '../tmp'; /* if (!$tempdir) { $tempfile = tempnam(false,''); $tempdir = dirname($tempfile); @unlink($tempfile); } */ return $tempdir; } }

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting