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.