C'est la première fois que j'installe un serveur sur mon PC et que je me frotte à une base données. Impossible d'accéder à mon SIGB PMB. Peut-être la réponse à mon problème a déjà eu une réponse sur le forum. Mais comptant sur votre bienveillance je préfère exposer mon cas.
Ci-dessous renseignements sur mon installation et copie du PHP error log (Mille excuses pour la longueur : j'ai préféré ne rien sélectionner) - 1 - Windows 64 bits) - 2 - WampServer Version 3.0.6 64bit - 3 - Apache 2.4.23 - 4 - MySQL 5.7.14 - 5 -- PHP 5.6.25 for CLI - 6 - De quelle couleur est l'icône Wampserver : VERTE - 7 - Dans le fichier c:\Windows\System32\drivers\etc\hosts, AUCUNE LIGNE ACTIVE - 8 - Avez-vous accès à localhost (Page d'accueil de wampserver) ? OUI - 8a - Si oui, y a-t-il un message d'erreur en bas de page ? NON MAIS CECI EN BLEU: C'est une mauvaise idée d'ajouter localhost dans les url de lancement des projets. Il est préférable de définir des VirtualHost dans le fichier wamp/bin/apache/apache2.4.23/conf/extra/httpd-vhosts.conf et de ne pas ajouter localhost dans les url. - 9 - Avez-vous accès à phpMyAdmin ? OUI - 10 - Si vous faites référence à un message d'erreur, merci de donner le libellé EXACT et COMPLET de l'erreur - 11 - Anti-virus et/ou Parefeu : AVAST - 12 - chemin complet de l'installation de Wampserver C:\wamp\
[05-Mar-2017 23:15:11 UTC] No error - Only to create the file [06-Mar-2017 00:15:19 UTC] PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp64\www\pmb\includes\mysql_functions.inc.php on line 78 [06-Mar-2017 00:15:19 UTC] PHP Stack trace: [06-Mar-2017 00:15:19 UTC] PHP 1. {main}() C:\wamp64\www\pmb\tables\install_rep.php:0 [06-Mar-2017 00:15:19 UTC] PHP 2. pmb_mysql_fetch_array() C:\wamp64\www\pmb\tables\install_rep.php:405 [06-Mar-2017 00:15:19 UTC] PHP 3. mysql_fetch_array() C:\wamp64\www\pmb\includes\mysql_functions.inc.php:78 [07-Mar-2017 12:32:45 Europe/Paris] PHP Warning: include_once(./includes/error_report.inc.php): failed to open stream: No such file or directory in C:\wamp64\www\pmb\index.php on line 47 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Warning: include_once(): Failed opening './includes/error_report.inc.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp64\www\pmb\index.php on line 47 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Warning: include_once(./includes/global_vars.inc.php): failed to open stream: No such file or directory in C:\wamp64\www\pmb\index.php on line 48 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Warning: include_once(): Failed opening './includes/global_vars.inc.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp64\www\pmb\index.php on line 48 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Warning: include_once(./includes/config.inc.php): failed to open stream: No such file or directory in C:\wamp64\www\pmb\index.php on line 49 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Warning: include_once(): Failed opening './includes/config.inc.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp64\www\pmb\index.php on line 49 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Notice: Undefined variable: include_path in C:\wamp64\www\pmb\index.php on line 51 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Notice: Undefined variable: include_path in C:\wamp64\www\pmb\index.php on line 52 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Warning: require_once(/mysql_connect.inc.php): failed to open stream: No such file or directory in C:\wamp64\www\pmb\index.php on line 52 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:32:45 Europe/Paris] PHP Fatal error: require_once(): Failed opening required '/mysql_connect.inc.php' (include_path='.;C:\php\pear') in C:\wamp64\www\pmb\index.php on line 52 [07-Mar-2017 12:32:45 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:32:45 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Warning: include_once(./includes/error_report.inc.php): failed to open stream: No such file or directory in C:\wamp64\www\pmb\index.php on line 47 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Warning: include_once(): Failed opening './includes/error_report.inc.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp64\www\pmb\index.php on line 47 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Warning: include_once(./includes/global_vars.inc.php): failed to open stream: No such file or directory in C:\wamp64\www\pmb\index.php on line 48 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Warning: include_once(): Failed opening './includes/global_vars.inc.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp64\www\pmb\index.php on line 48 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Warning: include_once(./includes/config.inc.php): failed to open stream: No such file or directory in C:\wamp64\www\pmb\index.php on line 49 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Warning: include_once(): Failed opening './includes/config.inc.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp64\www\pmb\index.php on line 49 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Notice: Undefined variable: include_path in C:\wamp64\www\pmb\index.php on line 51 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Notice: Undefined variable: include_path in C:\wamp64\www\pmb\index.php on line 52 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Warning: require_once(/mysql_connect.inc.php): failed to open stream: No such file or directory in C:\wamp64\www\pmb\index.php on line 52 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0 [07-Mar-2017 12:43:12 Europe/Paris] PHP Fatal error: require_once(): Failed opening required '/mysql_connect.inc.php' (include_path='.;C:\php\pear') in C:\wamp64\www\pmb\index.php on line 52 [07-Mar-2017 12:43:12 Europe/Paris] PHP Stack trace: [07-Mar-2017 12:43:12 Europe/Paris] PHP 1. {main}() C:\wamp64\www\pmb\index.php:0
Vous avez utilisé une option indiquée : Pour experts seulement et vous n'êtes pas un expert. Donc : - Clic-Droit icône Wampmanager -> Paramètres Wamp -> Ajouter localhost dans url de manière à décocher cette option.
- point 7 - Le fichier C:\Windows\System32\drivers\etc\hosts doit contenir comme lignes actives :
127.0.0.1 localhost
::1 localhost
- point 11 - AVAST Comme je l'ai déjà exprimé plusieurs fois, j'ai classé Avast comme un "Rogue" (un faux logiciel de sécurité). À cause de ses trop nombreux faux positifs (je rappelle que, un jour, il m'a supprimé plus de 80 programmes que j'avais écris, et sans demander aucune confirmation). À cause des absences continuelles de réponses lorsqu'on leur signale des faux positifs. À cause de des ralentissements considérables qu'il provoque, et des énormes ressources de la machine consommées inutilement. À cause de ses relances intruses pour acheter ou renouveler l'abonnement. À cause de signatures publicitaires intempestives par défaut dans les mails et les newsgroups.
Je ne compte plus les problèmes qu'il a provoqué chez des utilisateurs : comptabilité qui ne fonctionnait plus ; paye bloquée ; services de partage désactivés intempestivement ; fonction de logiciels disparues ; serveurs de base de données partiellement détruits, etc.
Vu qu'il provoque plus de problèmes qu'il n'apporte de solution, on peut estimer que c'est un malware.
Donc, désinstaller complètement cette merde et c'est pas gagné d'avance, voir [www.avast.com]
Et, au final, toute application web ou CMS doit être installée, comme chez tous les hébergeurs, en utilisant les VirtualHost : Le BESOIN DE VIRTUALHOST