Bonjour à vous,
J’ai voulu passer de php 5.6 à 7 sous debian stretch, mais mes sites ne sont plus accessibles… J’ai tout cassé, mais je ne sais pas ce que j’ai cassé, donc du coup je ne sais pas comment réparer…
Je sais que c’est “cassé” car mes sites me donnent une page blanche (du moins mon wordpress et mon nextcloud m’affiche des lignes de codes).
J’ai réalisé un
apt-get purge php5-*
Ensuite j’ai fait:
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:
[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:
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