PHP passage de 5 à 7 sur kimsufi Le sujet est résolu

Demande d'aide : c'est ici.
Répondre
MaxdeConde
Membre
Membre
Messages : 25
Inscription : 03 mai 2016, 08:40
Status : Hors-ligne

Bonjour à tous,

Je viens de réaliser une méga boulette, je suis passé en php7 comme un cowboy, et là, mes sites sont inaccessibles (page blanche).

Avant, j'étais en PHP5.6, avec Apache2.
J'avais fait un php -v, qui m'affichait un beau 7.0, mais mon nextcloud m'a dit que je tournais avec 5.6

J'ai réalisé un

Code : Tout sélectionner

apt-get purge php5-*
Ensuite j'ai fait:

Code : Tout sélectionner

apt-get install php7.0 php7.0-fpm php7.0-gd php7.0-mysql php7.0-cli php7.0-common php7.0-curl php7.0-opcache php7.0-json
Mais j'avais déjà quasiment tout

Et là, page blanche..... Je suis en mode panique... Je ne sais pas par où commencer pour revenir à une situation fonctionnelle....

Voici mes logs d'apache:

Code : Tout sélectionner

[Sun Sep 16 17:31:31.757604 2018] [mpm_prefork:notice] [pid 910] AH00171: Graceful restart requested, doing restart 
[Sun Sep 16 17:31:31.866239 2018] [mpm_prefork:notice] [pid 910] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations 
[Sun Sep 16 17:31:31.866295 2018] [core:notice] [pid 910] AH00094: Command line: '/usr/sbin/apache2' 
[Sun Sep 16 17:31:33.077935 2018] [mpm_prefork:notice] [pid 910] AH00171: Graceful restart requested, doing restart 
[Sun Sep 16 17:31:33.182431 2018] [mpm_prefork:notice] [pid 910] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Sep 16 17:31:33.182490 2018] [core:notice] [pid 910] AH00094: Command line: '/usr/sbin/apache2'
[Sun Sep 16 17:32:10.121858 2018] [mpm_prefork:notice] [pid 910] AH00171: Graceful restart requested, doing restart
[Sun Sep 16 17:32:10.226003 2018] [mpm_prefork:notice] [pid 910] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Sep 16 17:32:10.226057 2018] [core:notice] [pid 910] AH00094: Command line: '/usr/sbin/apache2'
[Sun Sep 16 17:35:27.823166 2018] [mpm_prefork:notice] [pid 910] AH00169: caught SIGTERM, shutting down
[Sun Sep 16 17:35:28.041680 2018] [mpm_prefork:notice] [pid 17737] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Sep 16 17:35:28.042094 2018] [core:notice] [pid 17737] AH00094: Command line: '/usr/sbin/apache2'
Et mon syslog:

Code : Tout sélectionner

Sep 16 17:38:47 web systemd[1]: Started Cleanup of Temporary Directories.
Sep 16 17:39:01 web systemd[1]: Starting Clean php session files...
Sep 16 17:39:01 web CRON[18205]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null)
Sep 16 17:39:01 web CRON[18204]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Sep 16 17:39:01 web systemd[1]: Started Clean php session files.
Sep 16 17:40:01 web CRON[18292]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:40:41 web systemd[1]: Stopping The PHP 7.0 FastCGI Process Manager... 
Sep 16 17:40:41 web systemd[1]: Stopped The PHP 7.0 FastCGI Process Manager. 
Sep 16 17:40:41 web systemd[1]: Starting The PHP 7.0 FastCGI Process Manager... 
Sep 16 17:40:42 web systemd[1]: Started The PHP 7.0 FastCGI Process Manager. 
Sep 16 17:40:51 web systemd[1]: Stopping The Apache HTTP Server... 
Sep 16 17:40:51 web apachectl[18377]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8 
Sep 16 17:40:51 web kernel: [ 1029.977611] apache2[17737]: segfault at 7f6ed033f168 ip 000055eb68d55124 sp 00007ffd2b8bfe10 error 4 in apache2[55eb68d1a000+9c000] 
Sep 16 17:40:51 web systemd[1]: apache2.service: Main process exited, code=killed, status=11/SEGV 
Sep 16 17:40:51 web systemd[1]: Stopped The Apache HTTP Server. 
Sep 16 17:40:51 web systemd[1]: apache2.service: Unit entered failed state. 
Sep 16 17:40:51 web systemd[1]: apache2.service: Failed with result 'signal'. 
Sep 16 17:40:51 web systemd[1]: Starting The Apache HTTP Server... 
Sep 16 17:40:51 web apachectl[18385]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8 
Sep 16 17:40:51 web systemd[1]: Started The Apache HTTP Server. 
Sep 16 17:41:01 web CRON[18397]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:42:01 web CRON[18527]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:43:01 web CRON[18572]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:44:01 web CRON[18627]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:45:01 web CRON[18670]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:46:01 web CRON[18712]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:47:01 web CRON[18754]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:48:01 web CRON[18796]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:49:01 web CRON[18838]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:50:01 web CRON[18953]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:50:02 web kernel: [ 1580.468052] perf: interrupt took too long (5052 > 5016), lowering kernel.perf_event_max_sample_rate to 39500 
Sep 16 17:51:01 web CRON[18995]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:52:01 web CRON[19037]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null) 
Sep 16 17:53:01 web CRON[19104]: (root) CMD (/usr/local/rtm/bin/rtm 26 > /dev/null 2> /dev/null)
Où devrais-je commencer selon vous ?

Merci pour votre lecture.

P.S: je suis sous stretch
MaxdeConde
Membre
Membre
Messages : 25
Inscription : 03 mai 2016, 08:40
Status : Hors-ligne

Résolu par un:

Code : Tout sélectionner

apt-get install imagemagick-6-common libapache2-mod-php7.0 php7.0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 php7.0-bz2  php7.0-curl php7.0-gd php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-pgsql php7.0-phpdbg  php7.0-sqlite3 php7.0-xml php7.0-zip
Avatar de l’utilisateur
piratebab
Site Admin
Site Admin
Messages : 5870
Inscription : 24 avr. 2016, 18:41
Localisation : sud ouest
Status : Hors-ligne

tout ça! :)
merci pour l'info
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 5054
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Salut,
Oui il y a un paquet de deb à installer (autant qu'avec php5...).
Le plus compliqué c'est si certains sites sont incompatibles avec php7... :088:
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Avatar de l’utilisateur
piratebab
Site Admin
Site Admin
Messages : 5870
Inscription : 24 avr. 2016, 18:41
Localisation : sud ouest
Status : Hors-ligne

un paquet de paquets, c'est un méta-paquet ? :banana_wrench:
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 5054
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

piratebab a écrit : 18 sept. 2018, 19:21un paquet de paquets, c'est un méta-paquet ? :banana_wrench:

J'avais commencé par ça et j'ai corrigé... Un paquet de paquets! :003:
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Répondre