Site inaccessible après passage vers PHP 7.4 (Créer un compte)

  • WordPress :5.8
  • Statut : non résolu
12 sujets de 1 à 12 (sur un total de 12)
  • Auteur
    Messages
  • #2421666
    rivandemo
    Participant
    Initié WordPress
    36 contributions

    Bonjour,

    Ma configuration WP actuelle

    • WP 5.9
    • Version de PHP/MySQL : 7.4/5.7
    • Thème utilisé : Enfold
    • Extensions en place : Askimet, Event calendar (TimeLy),
    • Nom de l’hébergeur : OVH
    • Adresse du site : http://www.contre-courant.org

    Problème(s) rencontré(s) : Sur recommandation de WP, je suis passé de PHP 7.0 à 7.4 après avoir sauvegardé mon site, mis toutes les extensions et thèmes à jour, en modifiant la configuration de mon site chez OVH via mon espace client. Lorsque j’essaie d’ouvrir mon site j’obtiens une erreur:
    <h1>Not Implemented</h1>
    GET not supported for current URL.

    Additionally, a 501 Not Implemented error was encountered while trying to use an ErrorDocument to handle the request.

     

    De plus mon adresse http:// se transforme en https://

    Je peux repasser en 7.3 ou moins mais avnt je voudrais savoir si l’erreur peut être corrigée.

    J’ai regardé le log qui fait apparaître des erreurs d’accès à PHP 7.0 (??), je le mets en annexe

    Merci beaucoup pour toute votre aide,

    Richard

     

    #2421667
    rivandemo
    Participant
    Initié WordPress
    36 contributions

    Voici le fichier log

    #2421669
    rivandemo
    Participant
    Initié WordPress
    36 contributions

    Ne pouvant uploader le fichier log en voici le contenu

    [Sat Sep 24 04:31:26 2022] [error] [client 35.208.50.241] [host http://www.contre-courant.org] AH00690: no acceptable variant: /homez.401/contrecoga/www/wp-login
    [Sat Sep 24 15:15:47 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/wp-admin/about.php
    [Sat Sep 24 15:15:51 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/wp-admin/about.php
    [Sat Sep 24 15:16:43 2022] [warn] [client 10.7.10.3] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:19:46 2022] [warn] [client 10.7.10.6] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:15:56 2022] [warn] [client 10.7.10.12] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://www.contre-courant.org/events_tags/slovaquie
    [Sat Sep 24 15:19:25 2022] [warn] [client 10.7.10.7] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/?ai1ec=action~month%7Cexact_date~1677625200%7Ccat_ids~33%7Crequest_format~json%7Ctag_ids~449
    [Sat Sep 24 15:20:20 2022] [warn] [client 10.7.10.14] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:20:43 2022] [warn] [client 10.7.10.11] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:22:20 2022] [warn] [client 10.7.10.15] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:22:48 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://www.contre-courant.org/?ai1ec=action~agenda%7Ctime_limit~1646089200%7Ccat_ids~73%7Crequest_format~json%7Ctag_ids~567
    [Sat Sep 24 15:24:12 2022] [warn] [client 10.7.10.14] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://simplesite.com
    [Sat Sep 24 15:24:21 2022] [warn] [client 10.7.10.12] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://simplesite.com
    [Sat Sep 24 15:24:35 2022] [warn] [client 10.7.10.6] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://simplesite.com
    [Sat Sep 24 15:24:36 2022] [warn] [client 10.7.10.1] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://simplesite.com
    [Sat Sep 24 15:25:56 2022] [warn] [client 10.7.10.4] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/?ai1ec=action~agenda%7Ctime_limit~1646089200%7Ccat_ids~340%7Cevents_limit~3%7Crequest_format~json%7Ctag_ids~601
    [Sat Sep 24 15:29:19 2022] [warn] [client 10.7.10.6] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/about/artistes-cc/perkowsky-serge?s
    [Sat Sep 24 15:25:35 2022] [warn] [client 10.7.10.3] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:32:34 2022] [warn] [client 10.7.10.9] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:38:09 2022] [warn] [client 10.7.10.5] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:39:20 2022] [warn] [client 10.7.10.9] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/?ai1ec=action~oneday%7Cexact_date~9-3-2022
    [Sat Sep 24 15:41:58 2022] [warn] [client 10.7.10.4] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:42:25 2022] [warn] [client 10.7.10.7] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/?ai1ec=action~month%7Ctime_limit~1646089200%7Ccat_ids~335%7Ctag_ids~601%7Cevents_limit~3%7Crequest_format~json
    [Sat Sep 24 15:32:26 2022] [warn] [client 10.7.10.4] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://www.contre-courant.org/?ai1ec=action~week%7Ctime_limit~1646089200%7Ccat_ids~33%7Ctag_ids~602%7Crequest_format~json
    [Sat Sep 24 15:32:42 2022] [warn] [client 10.7.10.15] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:32:42 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:32:56 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:33:02 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:33:16 2022] [warn] [client 10.7.10.5] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:33:16 2022] [warn] [client 10.7.10.5] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/
    [Sat Sep 24 15:33:30 2022] [warn] [client 10.7.10.5] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:33:30 2022] [warn] [client 10.7.10.5] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/
    [Sat Sep 24 15:33:57 2022] [warn] [client 10.7.10.11] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:34:27 2022] [warn] [client 10.7.10.5] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:34:27 2022] [warn] [client 10.7.10.5] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/about/contact/
    [Sat Sep 24 15:35:52 2022] [warn] [client 10.7.10.1] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://www.contre-courant.org/?ai1ec=action~oneday%7Cexact_date~24-3-2021
    [Sat Sep 24 15:36:31 2022] [warn] [client 10.7.10.6] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:36:32 2022] [warn] [client 10.7.10.1] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:36:34 2022] [warn] [client 10.7.10.2] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:36:34 2022] [warn] [client 10.7.10.2] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/
    [Sat Sep 24 15:36:34 2022] [warn] [client 10.7.10.2] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/
    [Sat Sep 24 15:39:22 2022] [warn] [client 10.7.10.2] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:40:24 2022] [warn] [client 10.7.10.14] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:44:06 2022] [warn] [client 10.7.10.13] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:49:02 2022] [warn] [client 10.7.10.2] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: https://www.contre-courant.org/?ai1ec=action~oneday%7Cexact_date~2-3-2024
    [Sat Sep 24 15:45:39 2022] [warn] [client 10.7.10.6] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:45:39 2022] [warn] [client 10.7.10.8] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:45:39 2022] [warn] [client 10.7.10.3] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:45:39 2022] [warn] [client 10.7.10.8] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:45:53 2022] [warn] [client 10.7.10.13] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://www.contre-courant.org/about/artistes-cc/vannier-machat/
    [Sat Sep 24 15:49:46 2022] [warn] [client 10.7.10.7] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:51:44 2022] [warn] [client 10.7.10.11] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 15:57:05 2022] [warn] [client 10.7.10.5] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:04:12 2022] [warn] [client 10.7.10.10] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:05:31 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:06:32 2022] [warn] [client 10.7.10.15] [host contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:09:04 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0, referer: http://www.contre-courant.org/?ai1ec=action~agenda%7Ctime_limit~1646089200%7Ccat_ids~73%7Crequest_format~json%7Ctag_ids~552
    [Sat Sep 24 16:09:21 2022] [warn] [client 10.7.10.9] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:09:34 2022] [warn] [client 10.7.10.14] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:09:38 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:09:39 2022] [warn] [client 10.7.10.11] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:09:53 2022] [warn] [client 10.7.10.8] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:09:59 2022] [warn] [client 10.7.10.9] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0
    [Sat Sep 24 16:10:18 2022] [warn] [client 10.7.10.2] [host http://www.contre-courant.org] engine php version 7.0 not available at /var/lib/fastcgi/php//images/stable64/7.0

    #2421676
    ferman
    Modérateur
    Maître WordPress
    7401 contributions

    Bonjour,

    Le passage en 7.4 s’est mal fait chez OVH.  Contactez le forum OVH; ils vous répondront rapidement et devraient pouvoir vous aider.

    #2421766
    rivandemo
    Participant
    Initié WordPress
    36 contributions

    Merci pour votre réponse, je vais poser la question chez OVH. Je suis repassé en 7.3 chez OVH mais je suis étonné de voir mon adresse de site forcée à https:// et dans l’administration du site en WP je vois toujours le message me disant que mon site utilise 7.0.

    Richard

    #2421823
    ferman
    Modérateur
    Maître WordPress
    7401 contributions

    D’après Sucuri vous êtes toujours effectivement en php 7.0. Vous avez peut-être un fichier ovh-config, réglé sur 7.0 qui prendrait le pas sur le réglage effectué à partir du tableau de bord OVH. Ce fichier se trouverait à la racine de votre site. C’est juste une hypothèse. Le forum OVH devrait pouvoir vous donner des explications. Pour le passage http -> https, si personne n’a rien fait pour ça, à part une « opération du saint esprit », je ne vois pas comment ça a pu se produire.

    #2421908
    rivandemo
    Participant
    Initié WordPress
    36 contributions

    J’ai vérifié .ovh-config, la version de php est bien 7.3. Je ne comprends pas non plus le forçage à https, c’est arrivé spontanément après le passage chez OVH de 7.0/legacy à 7.4/stable64 (par modification de la configuration), en tout cas je n’ai rien fait pour cela. Merci encore je vais interroger le forum d’OVH

    #2421916
    Li-An
    Participant
    Maître WordPress
    28988 contributions

    Bonjour, pour pouvoir gérer la version de php via la console OVH, il faut supprimer toute référence aux versions dans le fichier .ovh-config. Ensuite, si OVH est cassé, ce n’est jamais une surprise pour moi.

    #2421982
    rivandemo
    Participant
    Initié WordPress
    36 contributions

    Bonjour,

    Le fichier .ovhconfig ne fait référence qu’à la version 7.3:

    app.engine.version=7.3
    environment=production
    http.firewall=none
    container.image=stable
    app.engine=php

     

    Sur la page « Informations générales » le certificat SSL est devenu « Oui – LETSENCRYPT – DV », sans doute depuis la modification vers 7.4

     

    • Cette réponse a été modifiée le il y a 2 années et 4 mois par rivandemo.
    #2421987
    Li-An
    Participant
    Maître WordPress
    28988 contributions

    En théorie cette ligne app.engine.version=7.3 bloque toute modif du php via la console – c’est une instruction prioritaire.

    #2422094
    rivandemo
    Participant
    Initié WordPress
    36 contributions

    D’après OVH deux méthodes existent pour modifier la version de PHP, soit en éditant .ovhconfig soit via l’espace client, c’est cette dernière méthode que j’ai choisie. L’information « version php » que je trouve dans l’admin de WP via « Ecran de santé du site->Informations->Serveur » est 7.0.33:

    « Version de PHP     7.0.33 (ne prend pas en charge les valeurs 64 bits) »

    J’ignore à quel moment le site tient compte de .ovhconfig.

    • Cette réponse a été modifiée le il y a 2 années et 4 mois par rivandemo.
    #2422137
    Li-An
    Participant
    Maître WordPress
    28988 contributions

    J’ai répondu à votre question. Il faut supprimer cette ligne sinon le choix de la console n’est pas pris en compte.

12 sujets de 1 à 12 (sur un total de 12)
  • Vous devez être connecté pour répondre à ce sujet.