J'ai une machine virtuelle (sur Proxmox) avec Debian 11 en ligne de commande. J'ai suivi le tuto d'installation de Noalyss. Puis je vais sur mon poste de travail et depuis le naviagteur je démarre le script d'installation, j'ai ce message d'erreur.
Code : Tout sélectionner
'; if ( $_GET['lang'] == "en_US.utf8" || $_GET['lang']=='fr_FR.utf8') { $_SESSION[SESSION_KEY.'g_lang']=$_GET['lang']; set_language(); } ?>
✖"; $succeed="✓"; $inc_path=get_include_path(); global $os; $inc_path=get_include_path(); global $os; if ( strpos($inc_path,";") != 0 ) { $new_path=$inc_path.';../../include;addon'; $os=0; /* $os is 0 for windoz */ } else { $new_path=$inc_path.':../../include:addon'; $os=1; /* $os is 1 for unix */ } // Retrieve informations from the screen // $http=new HttpInput(); $db_user=$http->request("cuser","string", ""); $db_password=$http->request("cpasswd","string", ""); $db_host=$http->request("chost","string", ""); $db_port=$http->request("cport","string", ""); $multi=$http->request("multi","string", "N"); $locale=$http->request("clocale","string", "1"); $ctmp=$http->request("ctmp","string", "/tmp"); $cpath=$http->request("cpath","string", "/usr/bin"); $db_name=$http->request("cdbname", "string",""); $cadmin=$http->request("cadmin","string", "admin"); $cpassword_admin=$http->request("cpassword_admin","string", "phpcompta"); $cadmin=strtolower($cadmin); //------------------------------------------------------------------------- // warn only if we can not write in include //------------------------------------------------------------------------- if ( is_writable ('install.php') == false ) { echo '
'._("Ecriture non possible").'
'. '
'. _("On ne peut pas écrire dans le répertoire de NOALYSS, changez-en les droits ") .'
'; } //---------------------------------------------------------------------------- // We try to connect with the supplied information // If we succeed we continue the check // otherwise we turn back to the first screen // The config file is created here //---------------------------------------------------------------------------- if (isset($_POST['save_config'])) { require_once NOALYSS_INCLUDE.'/lib/config_file.php'; $err=0; // check password and admin not empty // if ( strlen(trim($cpassword_admin))== 0 || strlen(trim($cadmin))== 0 ) { echo '
'; echo _('Le mot de passe du super admin et le login ne peuvent être vides'); echo '
'; $err++; } // check strenght password admin $passw_error=check_password_strength($cpassword_admin); if ( count($passw_error['msg'])>0) { echo '
'; echo _("Mot de passe trop faible"); echo '
'; echo '
'; foreach ($passw_error['msg'] as $error) { echo "
",$error,"
"; } echo '
'; $err++; } // check password and admin not containing quote or double quote // if ( strpos($cpassword_admin,'"') !== false || strpos($cadmin,'"') !== false || strpos($cpassword_admin,"'") !== false || strpos($cadmin,"'") !== false || strpos($cpassword_admin," ") !== false || strpos($cadmin," ") !== false || strpos($cadmin,"@mobile") !== false ) { echo '
'; echo _('Le mot de passe du super admin et le superadmin ne peut pas contenir des guillemets ou espaces, ni @mobile'); echo '
'; $err++; } // Try to connect , if it doesn't work that do not create the config file try { if ($multi=="N") { $cnx = new DatabaseCore($db_user, $db_password,'template1', $db_host, $db_port); }else { $cnx = new DatabaseCore($db_user, $db_password,$db_name, $db_host, $db_port); } } catch (Exception $ex) { $cnx=false; } // ----- // If conx successfull save the file or display it // ----- if ( $err == 0 && $cnx !== false ) { echo '
'; echo '
'._('Important').'
'; echo '
',_("Voici l'utilisateur et mot de passe de l'utilisateur administrateur de Noalyss , " . " il a tous les droits et a accès à tout." . " Connectez-vous avec ses identifiants et changer le mot de passe dans préférence (en haut à droite)"), "
"; echo '
'._('Utilisateur administrateur'),' ',' ',$cadmin,'','
'; echo '
',_('Mot de passe'),' '.$cpassword_admin.' ','
'; echo '
'; // Create the db if (is_writable(NOALYSS_INCLUDE)) { $url=config_file_create($_POST,1,$os); echo '
'. _('Les informations sont sauvées vous pouvez continuer'). '
'; return; } else { echo '
'; echo _('Fichier non sauvé'); echo '
'; echo '
'; printf ( _('Créez ce fichier %s avec les informations suivantes '), NOALYSS_INCLUDE.'/config.inc.php'); echo '
'; echo '
'; print (_('Puis cliquez sur ce lien'))." "; echo ''._('Installation').""; echo '
'; echo '';
echo display_file_config($_POST,1,$os);
echo ''; return; } } elseif ($err == 0 && $cnx == false) { echo '
'; echo _('Impossible de se connecter à Postgresql, vérifiez les informations de connection'); echo '
'; } } //------------------------------------------------------------------------ // Check that the file config.inc.php exists , if not then propose to // enter information and exit // //------------------------------------------------------------------------ if ( ! file_exists(NOALYSS_INCLUDE.'/config.inc.php')) { echo '
'._('Entrez les informations nécessaires à noalyss').'
'; echo '
'; require_once NOALYSS_INCLUDE.'/lib/config_file.php'; echo config_file_form($_POST); echo '
'; echo '
', HtmlInput::submit('save_config',_('Continuer'),"","button"), '
'; echo ""; echo '
'; exit(); } //---------------------------------------------------------------------- // End functions // //---------------------------------------------------------------------- // Verify some PHP parameters // magic_quotes_gpc = Off // magic_quotes_runtime = Off // magic_quotes_sybase = Off // include_path require_once NOALYSS_INCLUDE.'/config.inc.php'; require_once NOALYSS_INCLUDE.'/lib/config_file.php'; require_once NOALYSS_INCLUDE.'/class/database.class.php'; // we shouldn't use it // if ( defined ("MULTI") && MULTI==1) { create_htaccess();} echo '
'._('Configuration').'
'; ?>
Info
PHP
'; printf(_("Cette version nécessite au moins une version supérieure ou égale à 8.0")); echo '
'; $fatal++; } else { echo $g_succeed. " Version PHP ".phpversion(); } //ini_set("memory_limit","200M"); echo "
"; foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) { echo "
"; if ( ini_get($a) == false ) print $a.': '.$succeed; else { print $a.': '.$failed; print ("
$a "._('a une mauvaise valeur')." !
"); $flag_php++; } echo "
"; } //--------------------------------------------------------------------------------------- // Check php modules //--------------------------------------------------------------------------------------- $module=get_loaded_extensions(); $str_error_message=_('Vous devez installer ou activer l\'extension').' %s '; $a_need_module=array("mbstring","pgsql","bcmath","gettext","zip","gd","dom","xml","SimpleXML","xmlwriter","xmlreader"); $nb_need_module=count($a_need_module); for ($m=0;$m<$nb_need_module;$m++) { echo "
"; if ( in_array($a_need_module[$m],$module) == false ){ echo 'module '.$a_need_module[$m].$failed; echo '', sprintf($str_error_message, $a_need_module[$m]), ' '; $flag_php++; $fatal++; } else echo 'module '.$a_need_module[$m].$succeed; echo "
"; } //--------------------------------------------------------------------------------------- // Max_execution_time , can be overriden //--------------------------------------------------------------------------------------- if ( ini_get("max_execution_time") < 60 ) { echo "
"; echo _('Avertissement').' : '.$failed; echo ' ', _("max_execution_time devrait être de 60 minimum"), ''; echo "
"; } if ( ini_get("register_globals") == true) { echo "
"; echo _('Avertissement').' : '.$failed; print ' '._('register_globals doit être à off').''; echo "
"; $flag_php++; } echo ""; // Check for open_basedir if ( ini_get("open_basedir") != "") { echo "
"; echo _('Avertissement').' : '.$failed; print ' '._('open_basedir empêche certaines fonctions de Noalyss,mettez-le à vide ').''; echo "
"; $flag_php++; $fatal++; } echo "
"; if ( $flag_php==0 ) { echo '
'._('php.ini est bien configuré ').$succeed.'
'; } else { echo '
'._('php mal configuré ').$failed.'
'; } // Check that the module for postgres is installed before testing the version if (! function_exists("pg_connect")) { echo _("Module php-pgsql n'est pas installé"); return; } /* check user */ if ( (defined("MULTI") && MULTI==1)|| !defined("MULTI")) { $cn=new Database(-1,'template'); } else { $cn=new Database(); } ?>
get_value($sql); echo _("Version base de données :"),$version; $majeur=explode(".",$version); if ( $majeur[0] < 10 ) { ?>
count_sql($sql); if ( $Res==0) { ?>
exec_sql($sql); $flag=0; for ($e=0;$e<$cn->size();$e++) { $a=$cn->fetch($e); switch ($a['name']){ case 'effective_cache_size': if ( $a['setting'] < 1000 ){ printf ('
'.$failed._('Attention le paramètre effective_cache_size est de %s'. " au lieu de 1000")."
",$a['setting']); $flag++; } break; case 'shared_buffers': if ( $a['setting'] < 640 ){ print '
'.$failed; printf('Attention le paramètre shared_buffer est de %s au lieu de 640',$a['setting']); print "
"; $flag++; } break; } } if ( $flag == 0 ) { echo '
'._('La base de données est bien configurée ').$succeed.'
'; } else { echo '
'.$failed; printf (_('Il y a %s paramètre qui sont trop bas'),$flag); echo '
'; } if ($fatal > 0) { print ( ''); printf(_("Désolé, votre installation ne permet à NOALYSS de fonctionner")); print ( ''); return; } if ( ! isset($_POST['go']) ) { ?>
">
count_sql("select * from pg_database where datname=lower('".domaine."account_repository')"); } else { $account=1; } // Create the account_repository if ($account == 0 ) { echo "Creation of ".domaine."account_repository"; if ( DEBUGNOALYSS == 0 ) ob_start(); $cn->exec_sql("create database ".domaine."account_repository encoding='utf8'"); $cn=new Database(); $cn->start(); $cn->execute_script(NOALYSS_INCLUDE."/sql/account_repository/schema.sql"); $cn->execute_script(NOALYSS_INCLUDE."/sql/account_repository/data.sql"); $cn->execute_script(NOALYSS_INCLUDE."/sql/account_repository/constraint.sql"); /* update name administrator */ $cadmin=NOALYSS_ADMINISTRATOR; $cpassword_admin=NOALYSS_ADMIN_PASSWORD; $cn->exec_sql("update ac_users set use_login=$1,use_pass=md5($2),use_active=1 where use_id=1", array(strtolower($cadmin),$cpassword_admin)); $cn->commit($cn); if ( DEBUGNOALYSS == 0 ) { ob_end_clean(); } echo _("Creation of Modele 1"); if ( DEBUGNOALYSS == 0 ) { ob_start(); } $cn->exec_sql("create database ".domaine."mod1 encoding='utf8'"); $cn=new Database(1,'mod'); $cn->start(); $cn->execute_script(NOALYSS_INCLUDE.'/sql/mod1/schema.sql'); $cn->execute_script(NOALYSS_INCLUDE.'/sql/mod1/data.sql'); $cn->execute_script(NOALYSS_INCLUDE.'/sql/mod1/constraint.sql'); $cn->commit(); if ( DEBUGNOALYSS == 0 ) { ob_end_clean(); } echo _("Creation of Modele 2"); $cn->exec_sql("create database ".domaine."mod2 encoding='utf8'"); $cn=new Database(2,'mod'); $cn->start(); if ( DEBUGNOALYSS == 0 ) { ob_start(); } $cn->execute_script(NOALYSS_INCLUDE.'/sql/mod1/schema.sql'); $cn->execute_script(NOALYSS_INCLUDE.'/sql/mod2/data.sql'); $cn->execute_script(NOALYSS_INCLUDE.'/sql/mod1/constraint.sql'); $cn->commit(); if ( DEBUGNOALYSS == 0 ) ob_end_clean(); echo '
'._('Important').'
'; echo '
'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'
'; echo '
',_('Mot de passe')," ",NOALYSS_ADMIN_PASSWORD,'
'; }// end if // Add a french accountancy model //-- $cn=new Database(); echo "
"._('Mise à jour du systeme')."
"; echo "
"._("Mise à jour dossier")."
"; /** * Update or install MONO */ if (defined("MULTI") && MULTI == 0) { $db = new Database(); if ($db->exist_table("repo_version") == false) { if ( DEBUGNOALYSS > 0 ) { ob_start(); } $db->execute_script(NOALYSS_INCLUDE.'/sql/mono/mono.sql'); if ( DEBUGNOALYSS > 0 ) ob_end_clean(); } if ($db->exist_table("version") == false) { echo '
' . $failed ; printf (_('La base de donnée %s est vide, veuillez vous y connecter avec phpPgAdmin ou pgAdmin3 ou en commande en ligne puis faites un seul de ces choix : '),dbname); echo '
'; echo '
'._("soit noalyss/contrib/mono-dossier/mono-france.sql pour la comptabilité française").'
'; echo '
'._("soit noalyss/contrib/mono-dossier/mono-belge.sql pour la comptabilité belge").'
'; echo '
'._("soit y restaurer un backup ou un modèle")."
"; echo _("Puis refaites la procédure d'installation pour mettre la base de données à jour"), "
"; exit(); } echo "
Patching " . dbname . '
'; $db->apply_patch(dbname); echo "
"._("Tout est installé"). $succeed; echo "
"._("Mise à jour Repository")."
"; if ( DEBUGNOALYSS == 0 ) ob_start(); $MaxVersion=DBVERSIONREPO-1; for ($i=4;$i<= $MaxVersion;$i++) { if ( $db->get_value (' select val from repo_version') <= $i ) { $db->execute_script(NOALYSS_INCLUDE.'/sql/patch/ac-upgrade'.$i.'.sql'); } } $db->exec_sql("update ac_users set use_login=$1,use_pass=md5($2) where use_id=1", array(strtolower(NOALYSS_ADMINISTRATOR),NOALYSS_ADMIN_PASSWORD)); if ( DEBUGNOALYSS == 0 ) ob_end_clean(); echo '
'._('Important').'
'; echo '
'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'
'; echo "
"; printf (" VOUS DEVEZ EFFACER CE FICHIER %s",__FILE__); echo "
"; ?>
exec_sql("update ac_users set use_login=$1 ,use_pass=md5($2) where use_id=1", array(strtolower(NOALYSS_ADMINISTRATOR), NOALYSS_ADMIN_PASSWORD)); } Dossier::upgrade(); echo '
'._('Important').'
'; echo '
'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'
'; echo "
"; printf (_("VOUS DEVEZ EFFACER CE FICHIER %s"),__FILE__); echo "
"; echo "
"._("Tout est installé")." ". $succeed; ?>
J'ai bien compris qu'il y avait un problème de droit d'écriture mais sans plus.
J'ai tenté sans succès :
Code : Tout sélectionner
chmod -R 777 /var/www/html/noalyss
Avez-vous une idée de solution pour régler ce problème ? Merci.