Citation
Sebhm
par contre, cette phrase n'a pas beaucoup de sens selon moi
"si un php VC6 peut installer un apache, php et mysql en VC11"
tu veux dire installer les 2 (apache/php/mysql VC6 et apache/php/mysql VC11) sur la meme machine ?
Citation
Sebhm
[Sat Dec 20 20:42:04.498906 2014] [auth_digest:debug] [pid 4952:tid 232] mod_auth_digest.c(250): AH01759: done
PHP Warning: PHP Startup: in Unknown on line 0
Citation
Sebhm
Si quelqu'un sait m'en dire plus là dessus, je suis preneur !
# LoadModule auth_digest_module modules/mod_auth_digest.soest en comentaire. Etait-ce le cas chez toi ? Je suppose que non. D'où le problème que tu as rencontré !
# -------------------------------------- #
# Module Mime #
# -------------------------------------- #
LoadModule mime_module modules/mod_mime.so
<IfModule mime_module>
TypesConfig conf/mime.types
#
AddType application/json .json
#
AddType application/x-tar .tgz
AddType application/x-rar-compressed .rar
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
AddType application/x-httpd-php .php .phtml .htm .html
AddType application/x-httpd-php-source .phps
#
AddType image/x-icon .ico
</IfModule>
Je n'ai pas de 'addEncoding' dans mon httpd.conf.Citation
Sebhm
Autre probleme, je tente maintenant d'acceder à PhpMyAdmin, et bien sur :
Not Found
The requested URL /phpmyadmin/ was not found on this server.
# Virtual hosts #Include conf/extra/httpd-vhosts.confOu bien as-tu oublié de créé tout simplement un virtualHost ?
# ------------------ # # PhpMyAdmin # # ------------------ # <VirtualHost 127.0.0.52:80> ServerName phpmyadmin ServerAdmin artemus@jcz.fr DocumentRoot "f:/Wamp/apps/phpmyadmin4.3.2/" # ErrorLog "f:/Wamp/Logs/phpmyadmin_error.log" CustomLog "f:/Wamp/Logs/phpmyadmin_custom.log" common # <Directory /> Options -Indexes +FollowSymLinks +MultiViews AllowOverride none Require local </Directory> </VirtualHost>'Require local', c'est pour la version 2.4 d'apache ! Tu dois mettre :
Order Deny,Allow Deny from all Allow from 127.0.0.1Dans le fichier 'hosts', tu mets :
127.0.0.52 phpmyadminC'est tout pour ce soir. Bonne Nuit les petits !
<VirtualHost *:80> DocumentRoot "C:\wamp\apps\phpMyAdmin-4.3.3" ServerName phpmyadmin2 ServerAlias www.phpmyadmin2 <Directory "C:\wamp\apps\phpMyAdmin-4.3.3"> Options Indexes FollowSymLinks MultiViews AllowOverride All Require local </Directory> </VirtualHost>
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.3.9/" Alias /phpmyadmin2 "c:/wamp/apps/phpMyAdmin-4.3.3/" # to give access to phpmyadmin from outside # replace the lines # # Order Deny,Allow # Deny from all # Allow from 127.0.0.1 # # by # # Order Allow,Deny # Allow from all # <Directory "c:/wamp/apps/phpmyadmin3.3.9/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory> <Directory "c:/wamp/apps/phpMyAdmin-4.3.3"> Options Indexes FollowSymLinks MultiViews AllowOverride all Require ip 127.0.0.1 </Directory>
Order Deny,Allow Deny from all Allow from 127.0.0.1c'est pour Apache 2.2
Require ip 127.0.0.1c'est pour Apache 2.4 et, il vaut mieux mettre
Require localqui englobe tous les accès locaux : localhost, 127.0.0.1 et ::1
Define APACHE24 Apache2.4En effet, Apache 2.4 présente la fonctionnalité de pouvoir créer des variables, dans le cas présent APACHE24 et ce n'est pas la valeur affectée qui nous intéresse, mais le fait de l'existence de cette variable, uniquement pour Apache 2.4.
<ifDefine APACHE24> Require local </ifDefine> <ifDefine !APACHE24> Order Deny,Allow Deny from all Allow from localhost ::1 127.0.0.1 </ifDefine>
<?php /* Servers configuration */ $i = 0; $cfg['blowfish_secret'] = 'a8b7c6d'; //Ce que vous voulez /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['extension'] = 'mysqli'; //Peut être mysql $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; // Autorise connexion sans mot de passe $cfg['Servers'][$i]['AllowNoPassword'] = true; // Supprime l'avertissement aux sujets des tables pmadb $cfg['PmaNoRelation_DisableWarning'] = true; /* End of servers configuration */ ?>Si mot de passe à root :
<?php /* Servers configuration */ $i = 0; $cfg['blowfish_secret'] = 'a8b7c6d'; //Ce que vous voulez /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['extension'] = 'mysqli'; //Peut être mysql $cfg['Servers'][$i]['auth_type'] = 'http'; $cfg['Servers'][$i]['user'] = ''; $cfg['Servers'][$i]['password'] = ''; // Supprime l'avertissement aux sujets des tables pmadb $cfg['PmaNoRelation_DisableWarning'] = true; /* End of servers configuration */ ?>
Fatal error: Call to undefined function mb_detect_encoding() in C:\wamp\apps\phpMyAdmin-4.3.3\libraries\php-gettext\gettext.inc on line 177
Citation
Sebhm
chez toi, le probleme vient donc du fait que tu as un 32bits d'un coté et un 64bits de l'autre, pas vraiment VC9 vs VC11 puisqu'ils sont censés être inter-compatible (d’après ce que j'ai lu)
Citation
Srbhm
En effet, mod_auth_digest est actif chez moi (j'ai appliqué la config donnée par Automatic, c'est pour ça).
Citation
Sebhm
En effet, ce sont bien les lignes "addType" du module Mime qui font que Php fonctionne désormais. Pourquoi ? je ne sais pas.
Citation
Sebhm
Pour PhpMyAdmin, faut dire que je traine ma vieille config, avec un alias (fichier wamp/alias/phpmyadmin.conf), et que je n'ai aucun Vhosts (fonctionnement "à l'ancienne" avant wamp2.5).
Citation
Sebhm
Est-ce que je fais cohabiter 2 versions de PhpMyAdmin cote à cote ? à voir
Order Deny,Allow Deny from all Allow from 127.0.0.1Tandis que sous apache 2.4, les mêmes droits se déclarent ainsi :
Require local3) Otomatic vous conseilles d'utiliser une variable d'environnement pour faire la distinction entre apache 2.2 et apache 2.4. Et c'est très bien.
# LoadModule version_module modules/mod_version.soN'oubliez pas de sortir de WampServer et de le relancer afin d'avoir cette modification pris en compte.
<IfVersion >= 2.4> Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.3.3/" <Directory "c:/wamp/apps/phpmyadmin4.3.3"> Options -Indexes +FollowSymLinks +MultiViews AllowOverride none Require local </Directory> </IfVersion> <IfVersion < 2.4> Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.3.9/" <Directory "c:/wamp/apps/phpmyadmin3.3.9/"> Options -Indexes +FollowSymLinks +MultiViews AllowOverride none Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory> </IfVersion>C'est différent de la solution d'Otomatic et cela a le mérite de fonctionner pour distinguer les spécificités de chaque version d'apache.
<?php
$cfg['blowfish_secret'] = 'a8b7c6d'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
$i = 0;
$i++;
/*---------------------*/
/* Authentication type */
/*---------------------*/
$cfg['Servers'][$i]['auth_type'] = 'http';
/*-------------------*/
/* Server parameters */
/*-------------------*/
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/*--------------------------------------------------*/
/* Select mysql if your server does not have mysqli */
/*--------------------------------------------------*/
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/*-------------------------*/
/* Hide multiple databases */
/*-------------------------*/
$cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|performance_schema|phpmyadmin)';
/*-----------------------------*/
/* No warning on pmadb tables */
/*-----------------------------*/
$cfg['PmaNoRelation_DisableWarning'] = true;
?>
Deux remarques :PHP Warning: PHP Startup: in Unknown on line 0, et c'est en effet ce qui déclenchait l'erreur
"Fatal error: Call to undefined function mb_detect_encoding() in C:\wamp\apps\phpmyadmin-4.3.3\libraries\php-gettext\gettext.inc on line 177
$cfg['Servers'][$i]['auth_type'] = 'http';
dans le fichier 'config.inc.php' ?@echo off cls @echo Test Apache 2.4.10 @echo ----------------- @echo. cd f:\Wamp\bin\apache\apache2.4.10\bin httpd.exe -t @echo. pauseMets le bon chemin vers ton apache !