Cron PHP: Exec Format Error (err: -1)
... / Cron PHP: Exec Format Err...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Cron PHP: Exec Format Error (err: -1)

by
RobinV1
Created on 2022-01-14 09:56:31 (edited on 2024-09-04 10:45:52) in Tâches automatiques (cron)

Bonjour,

J'essai de faire fonctionner un script très simple mais qui renvoie toujours la même erreur: Exec Format Error (err: -1).

image

C'est un petit script PHP qui fonctionne très bien en le déclenchant manuellement mais impossible via un cron OVH.
J'ai en fait un plus gros script qui fonctionnait jusqu'à présent mais depuis le passage à PHP 8.1 (aucune idée si le problème est lié), le script renvoie cette erreur j'ai donc créer un plus petit script de manière à poursuivre les tests et voir si je pouvais trouver une solution mais là je sèche complet...

Tout fonctionnait bien je ne comprend vraiment pourquoi d'un coup cela ne fonctionne pas, voici le code:

image

J'ai volontairement changé les données mais tout fonctionne parfaitement en manuel bien entendu.

Et mon fichier .ovhconfig:

app.engine=php
app.engine.version=8.1
http.firewall=security
environment=production
container.image=stable64

Merci d'avance pour l'aide apportée.

----------


2 Replies ( Latest reply on 2022-01-17 08:50:19 by
fritz2cat officiel (d'avant la migration)
)

Je me permet de faire remonter mon sujet en espérant que quelqu'un puisse m'aider, il n'y a aucune explication sur cette erreur ni de solution allant avec...


Je me permet de faire remonter mon sujet


1) php se trouve-t-il dans /usr/local/bin dans l'environnement de prod ?
2) je ne vois pas la balise de fin `?>`