Résolu le 3-03-24 PHPMyAdmin ne fonctionne pas

Postez ici toutes vos demandes d’assistance.
Répondre
MinnowFox
Messages : 5
Enregistré le : ven. 1 mars 2024 23:15

PHPMyAdmin ne fonctionne pas

Message par MinnowFox »

Bonjour,

J'ai installé PHPMyAdmin sur mon serveur apache en suivant cet articlehttps://doc.ubuntu-fr.org/phpmyadmin mais je tombe sur une erreur 404 en allant aussi bien sur http://127.0.0.1/phpmyadmin ou sur http://localhost/phpmyadmin. J'avais réinstallé Apache car j'avais fait une erreur mais depuis, impossible d’accéder à PHPMyAdmin même en essayant de le reconfigurer comme dans l'article (au point 3.1).

Savez-vous d'où peux venir ce problème et avez-vous une solution?
Pc : Gigabyte B360MD2V | Linux Mint 21 Vanessa | Cinnamon 5.4.12 | 5.15.0-97-generic x86-64 | Intel Core I5-8400 | 8GB | Nvidia GK208B (GeForce GT 710 )

MinnowFox
Messages : 5
Enregistré le : ven. 1 mars 2024 23:15

Re: PHPMyAdmin ne fonctionne pas

Message par MinnowFox »

Nouveau problème, j'ai essayé en relançant Apache mais il m'affiche cette erreur:

Code : Tout sélectionner

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
Pc : Gigabyte B360MD2V | Linux Mint 21 Vanessa | Cinnamon 5.4.12 | 5.15.0-97-generic x86-64 | Intel Core I5-8400 | 8GB | Nvidia GK208B (GeForce GT 710 )

Avatar du membre
alain
Administrateur du site
Messages : 14807
Enregistré le : dim. 11 oct. 2015 23:41
Localisation : Chelles
Contact :

Re: PHPMyAdmin ne fonctionne pas

Message par alain »

Bonjour MinnowFox.

Et alors?
Que donnent:

Code : Tout sélectionner

systemctl status apache2.service
Et:

Code : Tout sélectionner

journalctl -xeu apache2.service
S'ils le demandent c'est que la réponse est peut être dedans...
PC are like air conditioning, they becomes useless when you open Windows (L.T)
PC1 : CM : ASRock 990FX | CPU: AMD FX 8350-8 cores, 4 GHz | RAM: 16 Go DDR3 1600 MHz | CG: ATI RX 580-8 Go | OS : LM 20.3 Uma Xfce 4.16 | K: 5.4
PC2
:Core2 Quad Q9650 @ 3 GHz | CG: Nvidia GTX 650TI | OS: LM 21.3 Xfce 4.18| K: 6.5
PC3 :Core i7-2600 @ 3,5 GHz | CG: ATI HD 4650 | OS: Emmade5 Xfce 4.18.0 | K: 6.1
PC4 : AMD Ryzen 5 3500X 4GHz | CG: GTX 970 | Ram : 8GB |OS : Debian 10.5 | K: 5.10
In a world without walls and fences, who needs windows and gates?

MinnowFox
Messages : 5
Enregistré le : ven. 1 mars 2024 23:15

Re: PHPMyAdmin ne fonctionne pas

Message par MinnowFox »

Code : Tout sélectionner

systemctl status apache2.service
me donne

Code : Tout sélectionner

     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2024-03-03 21:27:48 CET; 56min left
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 1369 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 64ms

mars 03 21:27:41 minnowfox-desli systemd[1]: Starting The Apache HTTP Server...
mars 03 21:27:48 minnowfox-desli apachectl[1408]: AH00526: Syntax error on line 3 of /etc/apache2/conf-enabled/phpmyadmin.conf:
mars 03 21:27:48 minnowfox-desli apachectl[1408]: Alias takes 1-2 arguments, a fakename and a realname, or a realname in a Location
mars 03 21:27:48 minnowfox-desli apachectl[1369]: Action 'start' failed.
mars 03 21:27:48 minnowfox-desli apachectl[1369]: The Apache error log may have more information.
mars 03 21:27:48 minnowfox-desli systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
mars 03 21:27:48 minnowfox-desli systemd[1]: apache2.service: Failed with result 'exit-code'.
mars 03 21:27:48 minnowfox-desli systemd[1]: Failed to start The Apache HTTP Server.
~
~
~
~
~
~
~
~
~
~
~
lines 1-15/15 (END)...skipping...
× apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2024-03-03 21:27:48 CET; 56min left
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 1369 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 64ms

mars 03 21:27:41 minnowfox-desli systemd[1]: Starting The Apache HTTP Server...
mars 03 21:27:48 minnowfox-desli apachectl[1408]: AH00526: Syntax error on line 3 of /etc/apache2/conf-enabled/phpmyadmin.conf:
mars 03 21:27:48 minnowfox-desli apachectl[1408]: Alias takes 1-2 arguments, a fakename and a realname, or a realname in a Location
mars 03 21:27:48 minnowfox-desli apachectl[1369]: Action 'start' failed.
mars 03 21:27:48 minnowfox-desli apachectl[1369]: The Apache error log may have more information.
mars 03 21:27:48 minnowfox-desli systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
mars 03 21:27:48 minnowfox-desli systemd[1]: apache2.service: Failed with result 'exit-code'.
mars 03 21:27:48 minnowfox-desli systemd[1]: Failed to start The Apache HTTP Server.
Et

Code : Tout sélectionner

journalctl -xeu apache2.service
me donne

Code : Tout sélectionner

mars 03 21:27:48 minnowfox-desli apachectl[1408]: Alias takes 1-2 arguments, a >
mars 03 21:27:48 minnowfox-desli apachectl[1369]: Action 'start' failed.
mars 03 21:27:48 minnowfox-desli apachectl[1369]: The Apache error log may have>
mars 03 21:27:48 minnowfox-desli systemd[1]: apache2.service: Control process e>
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
mars 03 21:27:48 minnowfox-desli systemd[1]: apache2.service: Failed with resul>
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit apache2.service has entered the 'failed' state with result 'exit-co>
mars 03 21:27:48 minnowfox-desli systemd[1]: Failed to start The Apache HTTP Se>
░░ Subject: L'unité (unit) apache2.service a échoué
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ L'unité (unit) apache2.service a échoué, avec le résultat failed.
Si je comprends bien, il y a un problème dans ma configuration d'Apache ou de PHPMyAdmin mais je ne comprends pas bien quelle erreur il y a. C'est peut-être bête mais je ne maîtrise plus trop les outils Linux, j'ai vachement perdu la main.

Merci!

Edit:
J'ai fini par trouver la solution par moi-même en reprenant mes conf depuis le début, j'avais fait une erreur bête et quand j'ai vu ça, je me suis dit "Mais bien sûr, c'est ça" c'est vraiment le temps de reprendre mes marques sur Linux finalement.

Merci quand même!
Pc : Gigabyte B360MD2V | Linux Mint 21 Vanessa | Cinnamon 5.4.12 | 5.15.0-97-generic x86-64 | Intel Core I5-8400 | 8GB | Nvidia GK208B (GeForce GT 710 )

Avatar du membre
michLapprenti
Messages : 560
Enregistré le : sam. 20 août 2016 20:11
Localisation : île de France

Re: PHPMyAdmin ne fonctionne pas

Message par michLapprenti »

Bonsoir MinnowFox

Quelle est cette "erreur bête" qui a résolu votre problème ?

Merci de la partager ici, pour aider ceux/celles qui auront le même souci ou quelque chose de semblable

La fonction "recherche" en haut à droite du forum leur permettra de retrouver votre expérience
Pc :Lenovo ThinkPad-W510 | Linux Mint 21.1 Vera | Xfce 4.16.0 | 5.15.0-71-generic x86_64 | dual core model: Intel Core i7 M 620 bits: 64 type: MT MCP | Memory: 7.63 GiB | NVIDIA GT216GLM [Quadro FX 880M] | disque dur: 465.2 go.

Avatar du membre
cyrille
Administrateur du site
Messages : 12448
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: PHPMyAdmin ne fonctionne pas

Message par cyrille »

phpmyadmin est désuet, me semble-t-il
Mieux vaut utiliser adminer
;)
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Avatar du membre
cyrille
Administrateur du site
Messages : 12448
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: PHPMyAdmin ne fonctionne pas

Message par cyrille »

Sinon tjs vérifier sa config d'apache avant de relancer le démon

Code : Tout sélectionner

sudo apachectl configtest
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

Répondre