Page 1 sur 1

[phpMyAdmin] Ne veut rien savoir

Publié : dim. 07 déc. 2008, 21:39
par joker_vb
Salut à vous,

Alors oui apache fonctionne puisque http://localhost/ et http://localhost/~joker/ sont actifs, et je vois bien les fichiers des 2 répertoires "/srv/http/" et "~/public_html" :

Code : Tout sélectionner

ls -l /srv/http/
total 8
drwxr-xr-x 11 root root 4096 déc.  7 21:18 phpMyAdmin
drwxr-xr-x 11 root root 4096 sept. 23 13:51 phpMyAdmin_old

 ls -l ~/public_html/
total 8
-rw-r--r-- 1 joker users 188 juil. 26 19:40 Test.php
-rw-r--r-- 1 joker users 193 juil. 26 19:40 Test.php~

Enfin la page http://localhost/~joker/Test.php est interprétée :

Code : Tout sélectionner

<head>
<title>PHP Test Page</title>
</head>

<body>
This is Arch Linux, running PHP.

<?php
  echo "<br> Si tu vois le tableau php c que c bon.... <br><br>";
  phpinfo();
?>
</p>
</body>
Mais pas moyen de pointer sur http://localhost/phpMyAdmin, j'arrive sur une page blanche.

Abazigal a essayé de m'aider sur l'irc, il a vérifié il a les mêmes droits que moi. J'ai installé et ré-installé phpMyAdmin => pareil

La conclusion?
21:34:19 + >>> +Abazigal : bon, bein joker_vb, j'ai essayer de mal configurer apache/php comem j'ai pu, mais j'ai jamais optenu une page blanche comme toi
:?

Merci!

Publié : dim. 07 déc. 2008, 21:51
par Skunnyk
Tu n'as rien dans les logs d'erreur d'apache ?
Et tu as bien config phpmyadmin ?(genre le type d'auth etc ...).

ps: Je n'ai jamais testé de lamp sur archlinux :oops:

Publié : lun. 08 déc. 2008, 00:11
par joker_vb
Re,
Tu n'as rien dans les logs d'erreur d'apache ?
Euh c'est où?
La seule chose que j'ai trouvé est le fichier /var/log/httpd/access_log

Code : Tout sélectionner

127.0.0.1 - - [07/Dec/2008:19:51:28 +0100] "GET /test.php HTTP/1.1" 404 1221
127.0.0.1 - - [07/Dec/2008:19:51:29 +0100] "GET /favicon.ico HTTP/1.1" 404 1050
127.0.0.1 - - [07/Dec/2008:19:51:30 +0100] "GET /favicon.ico HTTP/1.1" 404 1050
127.0.0.1 - - [07/Dec/2008:19:51:32 +0100] "GET /favicon.ico HTTP/1.1" 404 1050
127.0.0.1 - - [07/Dec/2008:19:51:36 +0100] "GET /~myname/test.php HTTP/1.1" 404 1221
127.0.0.1 - - [07/Dec/2008:20:01:26 +0100] "GET /~user/ HTTP/1.1" 404 1221
127.0.0.1 - - [07/Dec/2008:20:01:43 +0100] "GET /~user/ HTTP/1.1" 404 1221
127.0.0.1 - - [07/Dec/2008:20:01:52 +0100] "GET /~joker/ HTTP/1.1" 200 930
127.0.0.1 - - [07/Dec/2008:20:01:53 +0100] "GET /icons/back.gif HTTP/1.1" 200 216
127.0.0.1 - - [07/Dec/2008:20:01:53 +0100] "GET /icons/unknown.gif HTTP/1.1" 200 245
127.0.0.1 - - [07/Dec/2008:20:01:53 +0100] "GET /icons/blank.gif HTTP/1.1" 200 148
127.0.0.1 - - [07/Dec/2008:20:02:02 +0100] "GET /~joker/Test.php HTTP/1.1" 200 43211
127.0.0.1 - - [07/Dec/2008:20:27:00 +0100] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 404 1263
127.0.0.1 - - [07/Dec/2008:20:27:12 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:20:29:11 +0100] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 404 1263
127.0.0.1 - - [07/Dec/2008:20:29:27 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:20:51:49 +0100] "GET /phpMyAdmin HTTP/1.1" 301 345
127.0.0.1 - - [07/Dec/2008:20:51:49 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:21:04:25 +0100] "GET /phpMyAdmin HTTP/1.1" 301 345
127.0.0.1 - - [07/Dec/2008:21:04:25 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:21:12:07 +0100] "GET /phpMyAdmin/index.php HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:21:12:45 +0100] "GET / HTTP/1.1" 200 963
127.0.0.1 - - [07/Dec/2008:21:12:45 +0100] "GET /icons/folder.gif HTTP/1.1" 200 225
127.0.0.1 - - [07/Dec/2008:21:14:01 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:21:16:13 +0100] "GET /phpMyAdmin_old/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:21:18:28 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:21:29:34 +0100] "GET / HTTP/1.1" 200 963
127.0.0.1 - - [07/Dec/2008:21:29:37 +0100] "GET /~user/ HTTP/1.1" 404 1221
127.0.0.1 - - [07/Dec/2008:21:29:49 +0100] "GET /joker/ HTTP/1.1" 404 1050
127.0.0.1 - - [07/Dec/2008:21:30:01 +0100] "GET /~joker/ HTTP/1.1" 200 930
127.0.0.1 - - [07/Dec/2008:21:31:47 +0100] "GET /~joker/Test.php HTTP/1.1" 200 43211
127.0.0.1 - - [07/Dec/2008:21:46:13 +0100] "GET /phpMyAdmin/readme.php HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:21:46:58 +0100] "GET /phpMyAdmin/robots.txt HTTP/1.1" 200 26
127.0.0.1 - - [07/Dec/2008:22:09:41 +0100] "GET /phpMyAdmin HTTP/1.0" 301 345
127.0.0.1 - - [07/Dec/2008:22:09:41 +0100] "GET /phpMyAdmin/ HTTP/1.0" 500 -
127.0.0.1 - - [07/Dec/2008:22:15:53 +0100] "GET / HTTP/1.1" 200 1161
127.0.0.1 - - [07/Dec/2008:22:15:55 +0100] "GET /Test.php HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:22:21:07 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:22:21:14 +0100] "GET / HTTP/1.1" 200 1161
127.0.0.1 - - [07/Dec/2008:22:21:17 +0100] "GET /Test.php HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:22:21:20 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:22:22:04 +0100] "GET /Test.php HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:22:22:07 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:22:22:38 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:22:31:48 +0100] "GET /~joker/Test.php HTTP/1.1" 200 42949
127.0.0.1 - - [07/Dec/2008:22:31:48 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:22:31:48 +0100] "GET /favicon.ico HTTP/1.1" 404 1050
127.0.0.1 - - [07/Dec/2008:22:31:51 +0100] "GET /favicon.ico HTTP/1.1" 404 1050
127.0.0.1 - - [07/Dec/2008:22:31:51 +0100] "GET /favicon.ico HTTP/1.1" 404 1050
127.0.0.1 - - [07/Dec/2008:22:36:38 +0100] "GET /~joker/Test.php HTTP/1.1" 200 42949
127.0.0.1 - - [07/Dec/2008:22:36:38 +0100] "GET /phpMyAdmin/ HTTP/1.1" 403 1054
127.0.0.1 - - [07/Dec/2008:22:36:38 +0100] "GET /favicon.ico HTTP/1.1" 403 1040
127.0.0.1 - - [07/Dec/2008:22:36:41 +0100] "GET /favicon.ico HTTP/1.1" 403 1040
127.0.0.1 - - [07/Dec/2008:22:36:42 +0100] "GET /favicon.ico HTTP/1.1" 403 1040
127.0.0.1 - - [07/Dec/2008:22:38:35 +0100] "GET / HTTP/1.1" 403 1054
127.0.0.1 - - [07/Dec/2008:22:38:38 +0100] "GET / HTTP/1.1" 403 1054
127.0.0.1 - - [07/Dec/2008:22:38:53 +0100] "GET / HTTP/1.1" 403 1054
127.0.0.1 - - [07/Dec/2008:22:41:12 +0100] "GET /~joker/Test.php HTTP/1.1" 200 43184
127.0.0.1 - - [07/Dec/2008:22:41:15 +0100] "GET / HTTP/1.1" 403 1054
127.0.0.1 - - [07/Dec/2008:22:41:43 +0100] "GET / HTTP/1.1" 403 1054
127.0.0.1 - - [07/Dec/2008:22:41:44 +0100] "GET / HTTP/1.1" 403 1054
127.0.0.1 - - [07/Dec/2008:23:17:23 +0100] "GET / HTTP/1.1" 200 1161
127.0.0.1 - - [07/Dec/2008:23:17:23 +0100] "GET /icons/blank.gif HTTP/1.1" 200 148
127.0.0.1 - - [07/Dec/2008:23:17:23 +0100] "GET /icons/unknown.gif HTTP/1.1" 200 245
127.0.0.1 - - [07/Dec/2008:23:17:23 +0100] "GET /icons/folder.gif HTTP/1.1" 200 225
127.0.0.1 - - [07/Dec/2008:23:20:26 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:23:38:16 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:23:40:10 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:23:45:37 +0100] "GET /phpMyAdmin/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:23:45:40 +0100] "GET /phpMyAdmin_old/ HTTP/1.1" 500 -
127.0.0.1 - - [07/Dec/2008:23:45:43 +0100] "GET /Test.php HTTP/1.1" 500 -
Sinon j'ai copié le fichier config.sample.inc.php pour créer le fichier config.inc.php dans lequel je n'ai touché qu'à cette ligne :

Code : Tout sélectionner

$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
En mettant une valeur à la ... entre les ' '

Ce qui m'amène à la partie 5) du fichier documentation.txt, partie où je ne comprends pas grand chose... J'ai l'impression que laisser ainsi suffit, mais ça ne marche pas !

Un truc qui me chagrine, le même fichier Test.php n'est pas interprété dans les 2 répertoires :
  • /home/joker/public_html/Test.php est interprété
    /srv/http/Test.php ne l'est pas,
or dans le httpd.conf j'ai

Code : Tout sélectionner

DocumentRoot "/srv/http"
Donc si vous avez une idée... Merci d'avance :wink:

Publié : lun. 08 déc. 2008, 01:46
par _alexmyself
c'est php qui ne fonctionne pas dans ton rep, ajoute son chemin dans la conf de php.

Publié : lun. 08 déc. 2008, 09:49
par joker_vb
Salut,
c'est php qui ne fonctionne pas dans ton rep, ajoute son chemin dans la conf de php.
Je suspectais ce genre de problème mais j'avais totalement oublié le fichier /etc/php/php.ini, en y ajoutant

Code : Tout sélectionner

open_basedir = /home/:/tmp/:/usr/share/pear/:/srv/http/
ça marche !

Bon il semble que tout ne soit pas encore en place, mais au moins la page de phpMyAdmin apparaît. Merci! :wink:

N.B : je ne mets pas Résolu tant que tout ne fonctionne pas correctement, je reviendrais plus tard donner la suite...

Publié : lun. 08 déc. 2008, 12:23
par tuxce
joker_vb a écrit : Je suspectais ce genre de problème mais j'avais totalement oublié le fichier /etc/php/php.ini, en y ajoutant

Code : Tout sélectionner

open_basedir = /home/:/tmp/:/usr/share/pear/:/srv/http/
ça marche !
c'est ce qu'il y a par défaut :shock: !

si tu as des .pacnew pour des fichiers de conf, il faut voir les différences, c'est souvent des modifs du à des évolutions, et certaines doivent obligatoirement être incluses.

Publié : lun. 08 déc. 2008, 13:10
par joker_vb
tuxce a écrit : c'est ce qu'il y a par défaut :shock: !
Ouais exact, mais il y a un certain temps j'avais suivi cette discussion et avais oublié de re-modifier. Donc tout est entièrement de ma faute (ou de celle de warnaud si je veux mettre ça sur le dos de quelqu'un :mrgreen: )