Page 1 sur 1

PHPMyAdmin ne fonctionne pas

Posté : sam. 2 mars 2024 23:47
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?

Re: PHPMyAdmin ne fonctionne pas

Posté : sam. 2 mars 2024 23:57
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.

Re: PHPMyAdmin ne fonctionne pas

Posté : dim. 3 mars 2024 04:10
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...

Re: PHPMyAdmin ne fonctionne pas

Posté : dim. 3 mars 2024 20:45
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!

Re: PHPMyAdmin ne fonctionne pas

Posté : lun. 4 mars 2024 20:32
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