Skip to content
Snippets Groups Projects
Commit 0711d118 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Plantage install chez hebergeur bloquant en fatal les fopen avec open_basedir

parent af494b2b
No related branches found
No related tags found
No related merge requests found
...@@ -116,9 +116,9 @@ if (! isset($conf->db->user)) $conf->db->user=''; ...@@ -116,9 +116,9 @@ if (! isset($conf->db->user)) $conf->db->user='';
$conf->syslog->enabled=1; $conf->syslog->enabled=1;
$conf->global->SYSLOG_LEVEL=constant('LOG_DEBUG'); $conf->global->SYSLOG_LEVEL=constant('LOG_DEBUG');
if (@is_writable('/tmp')) define('SYSLOG_FILE','/tmp/dolibarr_install.log'); if (@is_writable('/tmp')) define('SYSLOG_FILE','/tmp/dolibarr_install.log');
else if (isset($_ENV["TMP"]) && is_writable($_ENV["TMP"])) define('SYSLOG_FILE',$_ENV["TMP"].'/dolibarr_install.log'); else if (! empty($_ENV["TMP"]) && @is_writable($_ENV["TMP"])) define('SYSLOG_FILE',$_ENV["TMP"].'/dolibarr_install.log');
else if (isset($_ENV["TEMP"]) && is_writable($_ENV["TEMP"])) define('SYSLOG_FILE',$_ENV["TEMP"].'/dolibarr_install.log'); else if (! empty($_ENV["TEMP"]) && @is_writable($_ENV["TEMP"])) define('SYSLOG_FILE',$_ENV["TEMP"].'/dolibarr_install.log');
else define('SYSLOG_FILE','/dolibarr_install.log'); else if (@is_writable("/")) define('SYSLOG_FILE','/dolibarr_install.log');
define('SYSLOG_FILE_NO_ERROR',1); define('SYSLOG_FILE_NO_ERROR',1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment