Loading...
 
Català

Català


Re: Re: Categories i permisos

posts: 1817 Catalan Countries

Hola Ramon, Benvingut a la Comunitat de Tikiwiki :-)

A http://precarios.org ens va passar el mateix en el servidor on està allotjada la web, on no tenim accés per shell ni compte d'admins, per corregir els problemes de permisos al servidor (per la seva configuració a la carepta /tmp aliena al Tiki). Ho vam resoldre editant un arxiu del Tiki (1.9.x) per que fes servir una carpeta del tiki com a temporal. Per si et serveix:

./lib/init/initlib.php

¿Continúa siendo necesario retocar esto en el nuevo servidor?

Trozo de código original en ./lib/init/initlib.php (hacia el final del archivo)
Se ha de comentar las lineas 9 a 13 (numeración del ejemplo de abajo), y añadir la linea 8, para que quede como (cambios mostrados en negrita):
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; } }


Ja diràs si et serveix.

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