Pydio with caddy server

Somebody already installed Pydio with caddy I can’t make it work . I have error 500 on every pydio php files but not on phpinfo by exemple. Thanks

My caddyFile for pydio: {
root /var/www/pydio/
fastcgi / php

Hi @typhon0, welcome to the Caddy community.

Getting Error 500 on all the Pydio PHP files makes me think there might be some issue with your PHP-FPM, except that you mention a working phpinfo page.

What are the contents of your phpinfo page - just <?php phpinfo() ?>? And to clarify, you get the expected status page when accessing it through Caddy?

Yes my phpinfo page - just <?php phpinfo() ?>. But I have this .htaccess with Pydio, maybe I have to convert some lines :

<IfModule mod_rewrite.c>

# Make sure to enable RewriteRule on your server, and the the RewriteBase is correctly set.
# If your install is accessible on https://yourdomain.tld/pydio, RewriteBase should be /pydio.
# If your install is accessible on https://yourdomain.tld/, RewriteBase should be /.

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php [L]

#Following lines seem to be necessary if PHP is working
#with apache as CGI or FCGI. Just remove the #

#RewriteCond %{HTTP:Authorization} ^(.*)
#RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

#Following lines may be necessary for a PHP-FPM setup
# to make sure that authorization is transmitted.
# Just remove the # at the beginning of the line

#SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1


AddType application/json .json

Maybe the line #SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 can be converted ?

This might be useful but a 5xx status implies a problem with the server, not with the client’s request. I hope Pydio isn’t failing out when it should be handling improper authorisation more gracefully…

Anyway, you can set this in Caddy with the env subdirective for fastcgi, and a placeholder for the request header from the client.

fastcgi / php {
  env HTTP_AUTHORIZATION {>Authorization}

I still get the 500 error :frowning:

Hmm, not sure where to look further. Are you using the recommended PHP version, any required modules, etc?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.