J'ai voulu passer mon site de la version 7.3 à la version 7.4 et j'obtiens un erreur 501.
Voici le message qui s'affiche :
Not Implemented
GET not supported for current URL.
Additionally, a 501 Not Implemented error was encountered while trying to use an ErrorDocument to handle the request.
j'ai regardé le fichier de log des erreurs et j'obtiens les logs suivants :
[Mon Aug 21 10:10:18 2023] [warn] [client 10.11.10.5] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4, referer: http://galeries.spotair.fr/index.php?call=gallery&id=1859
[Mon Aug 21 10:10:59 2023] [warn] [client 10.11.10.7] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:10:59 2023] [warn] [client 10.11.10.5] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4, referer: http://galeries.spotair.fr/index.php?call=map&id=22&_gl=1*11e2k2p*_ga*NTE0MTIzNTM2LjE2ODU5ODI4MzU.*_ga_DG5NPG53KQ*MTY4OTY5MDg3MC42LjEuMTY4OTY5MDkxMS4wLjAuMA.._ga_L1Q5S4KR51MTY4OTY5MDg3MC42LjEuMTY4OTY5MDkxMS4wLjAuMA..&_ga=2.240563399.577887047.1689690870-514123536.1685982835
[Mon Aug 21 10:11:08 2023] [warn] [client 10.11.10.1] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:11:09 2023] [warn] [client 10.11.10.9] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:11:30 2023] [warn] [client 10.11.10.1] [host spotair.org] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:11:39 2023] [warn] [client 10.11.10.9] [host spotair.org] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:12:33 2023] [warn] [client 10.11.10.3] [host spotair.org] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:12:36 2023] [warn] [client 10.11.10.4] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4, referer: http://galeries.spotair.fr/index.php?call=gallery
[Mon Aug 21 10:12:40 2023] [warn] [client 10.11.10.9] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4, referer: http://galeries.spotair.fr/index.php?call=gallery
[Mon Aug 21 10:13:08 2023] [warn] [client 10.11.10.4] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:13:08 2023] [warn] [client 10.11.10.10] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4, referer: http://galeries.spotair.fr/index.php?call=gallery&_ga=2.136395824.1855036188.1692605589-617900786.1669672890
[Mon Aug 21 10:13:25 2023] [warn] [client 10.11.10.5] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:13:25 2023] [warn] [client 10.11.10.5] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4, referer: http://galeries.spotair.fr/index.php?call=map&id=22&_ga=2.4121460.536656638.1692605609-617900786.1669672890
[Mon Aug 21 10:13:56 2023] [warn] [client 10.11.10.6] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:13:56 2023] [warn] [client 10.11.10.6] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4, referer: http://galeries.spotair.fr/index.php?call=gallery&_ga=2.189306155.1679526847.1692605626-617900786.1669672890
[Mon Aug 21 10:14:05 2023] [warn] [client 10.11.10.10] [host www.spotair.org] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:14:37 2023] [warn] [client 10.11.10.9] [host spotair.org] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:31:23 2023] [warn] [client 10.11.10.1] [host spotair.org] engine php version 5.7 not available at /var/lib/fastcgi/php//images/stable64/5.7
[Mon Aug 21 10:31:33 2023] [warn] [client 10.11.10.6] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4
[Mon Aug 21 10:31:33 2023] [warn] [client 10.11.10.2] [host galeries.spotair.fr] engine php version 5.4 not available at /var/lib/fastcgi/php//images/stable64/5.4, referer: http://galeries.spotair.fr/index.php?call=gallery&_ga=2.79213204.1679526847.1692605626-617900786.1669672890
Ma version de MySQL est en 5.7 et je devine bien que c'est ça qui pose problème si je ne trompe pas dans la lecture des logs.
j'ai deux fichiers ovhconfig car j'ai une redirection d'un nom de domaine vers un autre et dans les deux j'ai modifié pour faire référence à la version 5.7 avec les entrées suivantes :
; for php:
; default: 5.7
; for phpcgi:
; this options is ignored (= fallback in AUTO)
;
app.engine.version=5.7
avez vous une idée pour résoudre ce souci ?
merci par avance
Bonjour,
Vous mélangez pas mal de chose car le .ovhconfig c'est uniquement pour PHP donc mettre une valeur de 5.7 c'est impossible par php5.7 n'existe pas.
Aussi si vous avez plusieurs .ovhconfig il faut faire attention car il va y avoir des limites en fonction de ce que vous voulez mixer comme version de PHP.
Cordialement, janus57
OK est-ce qu'il faudrait que j'indique que la version est en 7.4 dans le .ovhconfig ?
et sinon que puis-je faire pour résoudre ce souci ?
OK est-ce qu'il faudrait que j'indique que la version est en 7.4 dans le .ovhconfig ?
Oui.
De plus, si vous trouvez le mot 'stable' il doit être remplacé par 'stable64'
C'est comme les PC, les iPhone, etc, tout passe en "64-bit".
Bonjour,
et sinon que puis-je faire pour résoudre ce souci ?
perso je dirais de commencer par indiquer clairement la situation car vous parler de 2 .ovhconfig
Donc déjà il serait bien de savoir quel sont les 2 version de PHP que vous voulez faire tourner, car si vous dite PHP5.4 et PHP7.4, tout de suite ça va être un non c'est pas possible techniquement, car PHP7.4 == stable64 et PHP5.4 == stable
Cordialement, janus57