[LAMP] Problème de réinstallation de Lamp.

Questions et astuces concernant l'installation et la configuration d'archlinux
Do_done
newbie
Messages : 3
Inscription : jeu. 05 nov. 2015, 18:26

[LAMP] Problème de réinstallation de Lamp.

Message par Do_done »

Bonjour tout le monde,

Alors voilà, il y a quelques mois j'ai installé Lamp sur mon archlinux et tout fonctionnait bien jusqu'à maintenant. J'avais pour se faire suivi la documentation du wiki ->https://wiki.archlinux.fr/LAMP .

Puis la semaine dernière plus rien, mon localhost ne fonctionne plus, sans avoir fait de modifs (enfin il me semble).
La cause de ce dysfonctionnement vient peut-être du upgrade de ma version de php qui est maintenant la 7.0.3.

Du coup ne trouvant pas l'erreur j'ai décidé de tout reprendre à zéro et réinstaller Lamp en gardant les instructions de la même documentation(celle du wiki). J'ai tout bien suivi, mais rien ni fait, mon localhost est toujours en panne.

Voici le systemctl status httpd:
sudo systemctl status httpd
httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since mar. 2016-02-09 19:45:18 CET; 5s ago
Process: 15882 ExecStop=/usr/bin/httpd -k graceful-stop (code=exited, status=1/FAILURE)
Process: 15876 ExecStart=/usr/bin/httpd -k start -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 15876 (code=exited, status=1/FAILURE)

févr. 09 19:45:18 archninux-ag systemd[1]: Started Apache Web Server.
févr. 09 19:45:18 archninux-ag httpd[15876]: httpd: Syntax error on line 186 of /etc/httpd/conf/httpd.conf: Cannot load modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: can... or directory
févr. 09 19:45:18 archninux-ag systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
févr. 09 19:45:18 archninux-ag httpd[15882]: httpd: Syntax error on line 186 of /etc/httpd/conf/httpd.conf: Cannot load modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: can... or directory
févr. 09 19:45:18 archninux-ag systemd[1]: httpd.service: Control process exited, code=exited status=1
févr. 09 19:45:18 archninux-ag systemd[1]: httpd.service: Unit entered failed state.
févr. 09 19:45:18 archninux-ag systemd[1]: httpd.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
Quand je tape «mysql» ça me renvoie:

Code : Tout sélectionner

mysql
ERROR 1045 (28000): Access denied for user 'antoine'@'localhost' (using password: NO)
Mon etc/hosts :

Code : Tout sélectionner

# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost archlinux-ag
# End of file
Qu'ai je mal fait ?

Merci par avance.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17624
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [LAMP] Problème de réinstallation de Lamp.

Message par benjarobin »

Bonjour,
Il suffit de lire l'erreur
Cannot load modules/libphp5.so
Tu essaye de charger php5...
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Do_done
newbie
Messages : 3
Inscription : jeu. 05 nov. 2015, 18:26

Re: [LAMP] Problème de réinstallation de Lamp.(résolu)

Message par Do_done »

C'était juste devant moi. Merci Benjarobin.

Mon erreur à été de ne retirer cette ligne du fichier httpd.conf

Code : Tout sélectionner

# Load php5 module
LoadModule php5_module modules/libphp5.so
Tout simplement.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17624
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [LAMP] Problème de réinstallation de Lamp.

Message par benjarobin »

Si tu veux avoir php de fonctionnel, il te faut plutôt la remplacer...
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Piczel
Chu Ko Nu
Messages : 314
Inscription : dim. 03 mai 2015, 19:17
Localisation : Terre du Milieu

Re: [LAMP] Problème de réinstallation de Lamp.

Message par Piczel »

Ayant eu le même problème, j'ai mis LoadModule php7_module modules/libphp7.so j'espère t'aider, tchou !
lili : Lenovo E540 | ArchLinux
abraham : RaspBerry Pi 3 B | ArchLinux
isaac : RaspBerry Pi 3 B | ArchLinux
Github
The best way to accelerate a computer running Windows is at 9.81m/s²
10 types de geeks, ceux qui savent compter en binaire, et les autres.
Répondre