Re: Problems with php5-fpm/nginx/ownCloud after upgrade

2015-08-20 Thread Peter Ludikovsky
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

For documentation purposes, if someone might stumple on this.

On debian-user-german it was suggested [1] that a new snippet has been
added to nginx for FastCGI [0]. Using that snippet solved my issue.

Regards,
Peter Ludikovsky

[0] Bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762491
[1] https://lists.debian.org/debian-user-german/2015/08/msg00307.html

Am 17.08.2015 um 14:31 schrieb Peter Ludikovsky:
 Hello,
 
 Recently, I upgraded my home server from Wheezy to Jessie. Ever
 since my PHP web stack doesn't work anymore, mostly affecting the
 ownCloud installation. The problem manifests itself as an empty
 page served.
 
 Software/Versions: * ownCloud 8.1.1, installed from their Debian
 repo * nginx 1.6.2-5 * php5(-fpm) 5.6.9+dfsg-0+deb8u1 * postgresql
 9.4+165
 
 So far I've attempted to enable FPM logging, but the log files
 remain suspiciously absent or empty. nginx doesn't see an error
 coming back. If I run ownClouds index.php on the command line I get
 the source for the login page just fine. Listening in on the FPM
 port I see that only an empty response is returned.
 
 I have attached the scrubbed configuration files for nginx and
 php5-fpm.
 
 Any help is much appreciated.
 
 Regards, Peter Ludikovsky
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJV1cZWAAoJEM+6Ng5pbtyZp7QP/2Bw3QLmJwFaNoUwvEp0ar8G
ERB66mSNB5pJFQ1+w6RPoV/0s2LpIlDReXuW7diZZrnfw5ozHbLKfB8cxiY1IlRU
23ndx9WBPJjjxjZ1fyxmcxC97WnEUjcF9WrOTRJPK82Ik1H2sYD/4o+wkuB22tYx
kkSrCo+GcC64L/BaK1VSetJioLmjNFPQmgexAaUaESIOJSpqMC4RhKvTT47t+142
P8O3floyphFns8y6Mxcr38iDT6reNMOniTlWqxY3WLIFGpjASAJLxJDdSGitcEMU
THSq3Mzygx3efYpQhSW0ZPIPgc7Awh5Ye8LbKjsQMVnJib4rBQtFBQpORFE9Gi4g
ukFpKHoCNgmboCYyBpCnf8zvjQFjACxZO83DstaTy9vbUzRkycrw2lSD0c4Ir3MH
aHI0GYmz9+d99F8uyr+Xg1Bj8ywckL6LU2VP2xg9awTaeJWJ91yltT/dTiR+Y9zX
FogD5VrHNt9y9z+dYmY3lYEjvf7p6imLhq0RHzjmLX6eT6kw62/0AcGsQowHL0cb
ugXluj8S6dQ/yF38uNvPg53lMGDQAhNPP+p28JAt2xFsBz2iM/irYX6rqPhMLPvw
foLtOIJE1bYWkNPSz+vjmYZ/40fvXrnKiU+8bmVnIpU5RmijNNeOouPyHYVFr0cX
lVDmmtZ2eQ0x5t6BqJW0
=ianl
-END PGP SIGNATURE-



Problems with php5-fpm/nginx/ownCloud after upgrade

2015-08-17 Thread Peter Ludikovsky
Hello,

Recently, I upgraded my home server from Wheezy to Jessie. Ever since my
PHP web stack doesn't work anymore, mostly affecting the ownCloud
installation. The problem manifests itself as an empty page served.

Software/Versions:
* ownCloud 8.1.1, installed from their Debian repo
* nginx 1.6.2-5
* php5(-fpm) 5.6.9+dfsg-0+deb8u1
* postgresql 9.4+165

So far I've attempted to enable FPM logging, but the log files remain
suspiciously absent or empty. nginx doesn't see an error coming back. If
I run ownClouds index.php on the command line I get the source for the
login page just fine. Listening in on the FPM port I see that only an
empty response is returned.

I have attached the scrubbed configuration files for nginx and php5-fpm.

Any help is much appreciated.

Regards,
Peter Ludikovsky
[global]
pid = /run/php5-fpm.pid
error_log = /var/log/php5-fpm.log
 
 
include=/etc/php5/fpm/pool.d/*.conf
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9000
listen.owner = www-data
listen.group = www-data
 
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
 
 
 
 
 
 
 
 
 
chdir = /
 
catch_workers_output = yes
 
php_flag[display_errors] = on
php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on
upstream php-handler {
#server unix:/var/run/php5-fpm.sock;
server 127.0.0.1:9000;
}

server {
listen *:443;
server_name name1.local;
server_name name2.local;

access_log /var/log/nginx/name1.local/access.ssl.log combined;
error_log /var/log/nginx/name1.local/error.ssl.log;
root /srv/www/external/;
index index.html index.htm;

client_max_body_size 1024M;
fastcgi_buffers 64 4K;

add_header Strict-Transport-Security max-age=31536000; 
includeSubDomains;

if ($request_uri ~  ) {
return 444;
}

location ~ ^/owncloud/core/(js|css|img)(/.*)?$ {
alias /srv/www/owncloud/core/$1$2;
}

rewrite ^/owncloud/caldav(.*)$ /owncloud/remote.php/caldav$1 redirect;
rewrite ^/owncloud/carddav(.*)$ /owncloud/remote.php/caldav$1 redirect;
rewrite ^/owncloud/webdav(.*)$ /owncloud/remote.php/caldav$1 redirect;
location ~ ^/owncloud/(?:data|config|\.ht|db_structure\.xml|README) {
deny all;
}

location / {
# The following 2 rules are only needed with webfinger
rewrite ^/.well-known/host-meta 
/owncloud/public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json 
/owncloud/public.php?service=host-meta-json last;

rewrite ^/.well-known/carddav /owncloud/remote.php/carddav/ 
redirect;
rewrite ^/.well-known/caldav /owncloud/remote.php/caldav/ 
redirect;

rewrite ^/owncloud/(/core/doc/[^\/]+/)$ /owncloud/$1/index.html;

try_files $uri $uri/ index.php;
}

location ~ ^(/owncloud/.+?\.php)(/.*)?$ {
try_files $1 = 404;

include fastcgi_params;
fastcgi_param SCRIPT_FILEPATH $document_root$1;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
fastcgi_pass php-handler;
}
location /srv/www/external/owncloud/data {
internal;
root /srv/www/external/;
}
location ~ ^/tmp/oc-noclean/.+$ {
internal;
root /tmp/;
}

ssl on;
ssl_certificate /etc/ssl/certs/name1.local.pem;
ssl_certificate_key /etc/ssl/certs/name1.local.pem;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 
EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH 
EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS;
ssl_prefer_server_ciphers on;

ssl_session_cache shared:name1.local:2M;
add_header X-Frame-Options DENY;
#   ssl_stapling on;
#   ssl_stapling_verify on;
resolver 127.0.0.1 8.8.4.4 valid=300s;
resolver_timeout 5s;
}


signature.asc
Description: OpenPGP digital signature