You are not logged in.
Hello,
We can't import new document, see the logs :
*394 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/chroot/web/glpi/www) in Unknown on line 0PHP message: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0" while reading response header from upstream, client: IP, server: glpi, request: "POST /ajax/fileupload.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/fpm.glpi.sock:", host: "glpi", referrer: "url"
GLPI Version : 10.0.6
nginx/1.18.0
Do you have some ideas ?
Thanks,
Regards,
Last edited by JeanBon (2023-11-03 11:19:29)
Offline
Hello, UP please
Offline
Somewhere in your PHP config or web server configuration you have the PHP "open_basedir" option set and it doesn't include "/tmp". If you have a custom temporary directory set for GLPI in a "config/local_define.php" or "inc/downstream.php" file, you can comment or remove those entries to have it use the default of "files/_tmp" within the GLPI folder. Or, just add "/tmp" to the option.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
Hello,
in all php.ini, open_dir is not enable.
i found on this files :
Should i add only /tmp?
/chroot/web/glpi**/www/config# config.db.php
}
// Path for upload storage
if (!defined("GLPI_UPLOAD_DIR")) {
define("GLPI_UPLOAD_DIR",GLPI_ROOT . "/files/_uploads");
}
// Path for tmp storage
if (!defined("GLPI_UPLOAD_DIR")) {
define("GLPI_TMP_DIR",GLPI_ROOT . "/files/_tmp");
# public $allow_datetime = false;
# public $allow_signed_keys = false;
# public $use_utf8mb4 = true;
}
Offline
Resolved :
/etc/php/7.4/fpm/php.ini
add the path in upload_tmp_dir
Offline