Bon les #geeks et #sysadmin du coin, #Apache ou #nginx ? J’ai toujours utilisé Apache mais y parait que c’est recommandé de changer d’avis des fois si c’est justifié.

Well, I'm testing #caddy, but I can't get a site to work with PHP. If I put phpinfo(); in a file in /usr/share/caddy/, it works, but if I put it somewhere else, I get a ‘File not found’ error.
And I can access the static files on my test directory, the problem is only with the php files…
Any idea what I'm doing wrong?

Bon bah je teste #caddy, mais pas foutu d’avoir un site qui fonctionne avec PHP. Si je met un phpinfo(); dans un fichier dans /usr/share/caddy/, ça fonctionne, mais si je le met ailleurs j’ai un "File not found".
Et je peux accéder aux fichiers statiques sur mon répertoire de test, j’ai qu’un soucis avec les fichiers php…
Une idée de ce que je fais mal ?

#help #web #server #php

@faket have you tried FrankenPHP? It's still caddy, but built under the @thephpf

https://frankenphp.dev/

FrankenPHP: the modern PHP app server

FrankenPHP is a new app server for PHP apps (built on top of Caddy) and a library to embed the PHP interpreter in Go web servers.

@alessandrolai @thephpf Thank you for your message, I did see it, but I’m trying Caddy now :D
My PHP seems to be working, at least for my pastebin and my forgejo, I’ll see for the few php remaining websites.