[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Probleme apres mise a jour Apache2 [URGENT]



salut

voila ce que ca donne et le resultat apres avoir recreer les symlink et redemarrer apache:

root@ks326416:/etc/apache2/mods-enabled# ls -l
total 0
lrwxrwxrwx 1 root root 30 23 mars   2012 actions.conf -> ../mods-available/actions.conf
lrwxrwxrwx 1 root root 30 23 mars   2012 actions.load -> ../mods-available/actions.load
lrwxrwxrwx 1 root root 28 23 mars   2012 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 23 mars   2012 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 23 mars   2012 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 34 23 mars   2012 auth_digest.load -> ../mods-available/auth_digest.load
lrwxrwxrwx 1 root root 33 23 mars   2012 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 23 mars   2012 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 23 mars   2012 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 23 mars   2012 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 23 mars   2012 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 23 mars   2012 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 23 mars   2012 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 27 18 févr. 10:53 cgid.conf -> ../mods-available/cgid.conf
lrwxrwxrwx 1 root root 27 18 févr. 10:53 cgid.load -> ../mods-available/cgid.load
lrwxrwxrwx 1 root root 26 23 mars   2012 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 29 23 mars   2012 dav_fs.conf -> ../mods-available/dav_fs.conf
lrwxrwxrwx 1 root root 29 23 mars   2012 dav_fs.load -> ../mods-available/dav_fs.load
lrwxrwxrwx 1 root root 26 23 mars   2012 dav.load -> ../mods-available/dav.load
lrwxrwxrwx 1 root root 30 23 mars   2012 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 23 mars   2012 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 23 mars   2012 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 23 mars   2012 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 23 mars   2012 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 28 23 mars   2012 fcgid.conf -> ../mods-available/fcgid.conf
lrwxrwxrwx 1 root root 28 23 mars   2012 fcgid.load -> ../mods-available/fcgid.load
lrwxrwxrwx 1 root root 30 23 mars   2012 include.load -> ../mods-available/include.load
lrwxrwxrwx 1 root root 27 23 mars   2012 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 23 mars   2012 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 23 mars   2012 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 23 mars   2012 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 33 23 mars   2012 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 23 mars   2012 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 30 23 mars   2012 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 27 23 mars   2012 ruby.load -> ../mods-available/ruby.load
lrwxrwxrwx 1 root root 31 23 mars   2012 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 23 mars   2012 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 26 23 mars   2012 ssl.conf -> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26 23 mars   2012 ssl.load -> ../mods-available/ssl.load
lrwxrwxrwx 1 root root 29 23 mars   2012 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 23 mars   2012 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 29 23 mars   2012 suexec.load -> ../mods-available/suexec.load
lrwxrwxrwx 1 root root 28 23 mars   2012 suphp.conf -> ../mods-available/suphp.conf
lrwxrwxrwx 1 root root 28 23 mars   2012 suphp.load -> ../mods-available/suphp.load

root@ks326416:/etc/apache2/mods-enabled# ln -s ../mods-available/php5.conf php5.conf
root@ks326416:/etc/apache2/mods-enabled# ln -s ../mods-available/php5.load php5.load

root@ks326416:/etc/apache2/mods-enabled# ls -l
total 0
lrwxrwxrwx 1 root root 30 23 mars   2012 actions.conf -> ../mods-available/actions.conf
lrwxrwxrwx 1 root root 30 23 mars   2012 actions.load -> ../mods-available/actions.load
lrwxrwxrwx 1 root root 28 23 mars   2012 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 23 mars   2012 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 23 mars   2012 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 34 23 mars   2012 auth_digest.load -> ../mods-available/auth_digest.load
lrwxrwxrwx 1 root root 33 23 mars   2012 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 23 mars   2012 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 23 mars   2012 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 23 mars   2012 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 23 mars   2012 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 23 mars   2012 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 23 mars   2012 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 27 18 févr. 10:53 cgid.conf -> ../mods-available/cgid.conf
lrwxrwxrwx 1 root root 27 18 févr. 10:53 cgid.load -> ../mods-available/cgid.load
lrwxrwxrwx 1 root root 26 23 mars   2012 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 29 23 mars   2012 dav_fs.conf -> ../mods-available/dav_fs.conf
lrwxrwxrwx 1 root root 29 23 mars   2012 dav_fs.load -> ../mods-available/dav_fs.load
lrwxrwxrwx 1 root root 26 23 mars   2012 dav.load -> ../mods-available/dav.load
lrwxrwxrwx 1 root root 30 23 mars   2012 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 23 mars   2012 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 23 mars   2012 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 23 mars   2012 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 23 mars   2012 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 28 23 mars   2012 fcgid.conf -> ../mods-available/fcgid.conf
lrwxrwxrwx 1 root root 28 23 mars   2012 fcgid.load -> ../mods-available/fcgid.load
lrwxrwxrwx 1 root root 30 23 mars   2012 include.load -> ../mods-available/include.load
lrwxrwxrwx 1 root root 27 23 mars   2012 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 23 mars   2012 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 23 mars   2012 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 23 mars   2012 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 18 févr. 16:22 php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 18 févr. 16:22 php5.load -> ../mods-available/php5.load
lrwxrwxrwx 1 root root 33 23 mars   2012 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 23 mars   2012 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 30 23 mars   2012 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 27 23 mars   2012 ruby.load -> ../mods-available/ruby.load
lrwxrwxrwx 1 root root 31 23 mars   2012 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 23 mars   2012 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 26 23 mars   2012 ssl.conf -> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26 23 mars   2012 ssl.load -> ../mods-available/ssl.load
lrwxrwxrwx 1 root root 29 23 mars   2012 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 23 mars   2012 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 29 23 mars   2012 suexec.load -> ../mods-available/suexec.load
lrwxrwxrwx 1 root root 28 23 mars   2012 suphp.conf -> ../mods-available/suphp.conf
lrwxrwxrwx 1 root root 28 23 mars   2012 suphp.load -> ../mods-available/suphp.load

root@ks326416:/etc/apache2/mods-enabled# /etc/init.d/apache2 restart
apache2: Syntax error on line 205 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
 failed!


Il n'y a rien d'enregistre dans error.log

Cdlt
Hugues



Le 18 février 2014 16:06, <sechanbask@free.fr> a écrit :
c'est un problème de php, ton module php n'est plus "connecté" à apache

que donne la commande :

ls -l /etc/apache2/mods-enabled


Cédric Barribaud


De: "Hugues MORIN" <morinh@gmail.com>
À: "Liste Debian" <debian-user-french@lists.debian.org>
Envoyé: Mardi 18 Février 2014 15:38:16
Objet: Probleme apres mise a jour Apache2 [URGENT]


Bonjour

Depuis ce matin, je suis confronte a un probleme sur un serveur dedie suite  une mise a jour d'apache2.

Apres cette mise a jour, les sites sur ce serveur ne renvoient plus que l'erreur 500

Apres avoir consulte les logs et avoir pas mal chercher, il s'avere que l'un des problemes ete lie a suphp.
J'ai modifie l'uid_min/gid_min (en mettant a 33 a la place de 100) dans suphp.conf et l'erreur 500 a disparu pour certains sites mais il reste des bugs.

Les fichiers des sites ont comme proprietaire/groupe www-data (uid/gid:33)
J'utilise aussi un myuser (uid/gid:1000) qui appartient au groupe www-data et le user www-data appartient aussi au groupe myuser.
En fonction des droit sur les fichiers (604/644 ou 705/755), avant la MAJ, les fichiers pouvaient etre affiches queqluesoit leur proprietaire.

Actuellement voila la situtation:
- tout les sites dont les fichiers/repertoires appartiennent a www-data s'affiche mais il y a des bugs. (des bug lie aux sessions ou au cookie probablement)
- les sites ayant 1 seul fichier/repertoire appartenant a myuser son en erreur 500
- impossible de se connecter a phpmyadmin, j'obtiens une fenetre me demandant si je veux telecharger le fichier ou l'ouvrir avec gedit

Je suis vraiement tres ennuye car c'est professionnel (site ecommerce) et je maitrise assez mal l'admin systeme.

J'espere que l'on d'entre vous sait comment resoudre ce probleme ou que vous pourrez me donner des pistes de recherches.

Cordialement
Hugues




Reply to: