Image corruption with owncloud + nginx + php-fpm

Charles charles at bsd.zplay.eu
Wed Aug 13 07:23:17 PDT 2014


I tried to recompile and test nginx with patches removed one by one from 
"files" directory in dports/www/nginx and the problem still persists.

Here is my nginx.conf section about owncloud :



http {
     include       mime.types;
     default_type  application/octet-stream;

     sendfile        on;

     keepalive_timeout  65;


     server {
       listen       80;
       server_name  localhost;

       error_page   500 502 503 504  /50x.html;
       root   /usr/local/www/owncloud/;

       client_max_body_size 1G;
       fastcgi_buffers 64 16K;
       fastcgi_buffer_size 32k;

       location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
               deny all;
       }

       location @webdav {
                fastcgi_split_path_info ^(.+\.php)(/.*)$;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_param SCRIPT_FILENAME 
$document_root$fastcgi_script_name;
                include fastcgi_params;
       }

       location / {
               rewrite ^/.well-known/host-meta 
/public.php?service=host-meta last;
               rewrite ^/.well-known/host-meta.json 
/public.php?service=host-meta-json last;
               rewrite ^/.well-known/carddav /remote.php/carddav/ 
redirect;
               rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;
               rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;
               try_files $uri $uri/ index.php;
       }

       location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
               try_files $script_name = 404;
               include fastcgi_params;
               fastcgi_param PATH_INFO $path_info;
               fastcgi_pass 127.0.0.1:9000; # or use php-fpm with: 
"unix:/var/run/php-fpm/php-fpm.sock;"
       }

     }

}




Le 2014-08-13 15:55, Charles a écrit :
> I followed your instructions. Nginx has been recompiled without the
> folder dragonfly, but this changed nothing.
> 
> I tried Owncloud with Lighttpd and everything is fine. So at least we
> know the issue comes from Nginx and not from php.
> 
> Le 2014-08-13 13:09, Joris Giovannangeli a écrit :
>> Hi,
>> 
>> can you try rebuilding nginx without the custom reusport patch ?
>> 
>> cd /usr/dports/www/nginx; rm -rf dragonfly ; make reinstall
>> 
>> And see if the corruption still happens
>> 
>> Regards,
>> joris



More information about the Users mailing list