[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php5-fpm Probleme unter Debian 8



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Das wars!!! Man darf das Snippet zwar nicht blind reinkopieren, aber
im Grunde is das genau das richtige.

Vielen herzlichen Dank!

Lg
/peter

P.S.: Hier ist noch das Diff zur von ownCloud empfohlenen Konfiguration.

# git diff sites-available/owncloud
diff --git a/nginx/sites-available/owncloud
b/nginx/sites-available/owncloud
index 755953e..edfb5e6 100644
- --- a/nginx/sites-available/owncloud
+++ b/nginx/sites-available/owncloud
@@ -79,11 +79,20 @@ server {

        location ~ \.php(?:$|/) {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
- -               include fastcgi_params;
+
+               # Check that the PHP script exists before passing it
+               try_files $fastcgi_script_name =404;
+
+               #include fastcgi_params;
                fastcgi_param SCRIPT_FILEPATH
$document_root$fastcgi_script_name;
- -               fastcgi_param PATH_INFO $fastcgi_path_info;
+               # Bypass the fact that try_files resets $fastcgi_path_in
fo
+               # see: http://trac.nginx.org/nginx/ticket/321
+               set $path_info $fastcgi_path_info;
+               fastcgi_param PATH_INFO $path_info;
                fastcgi_param HTTPS on;
                fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
+               fastcgi_index index.php;
+               include fastcgi.conf;
                fastcgi_pass php-handler;
        }


Am 20.08.2015 um 14:02 schrieb Chris:
> On Thu, August 20, 2015 10:31 am, Peter Ludikovsky wrote:
> 
>> Vor ein paar Tagen habe ich endlich das Upgrade von Wheezy auf 
>> Jessie gemacht. Seither funktioniert allerdings das PHP FastCGI 
>> nicht mehr, wodurch auch meine ownCloud-Installation streikt.
> 
> Auf [1] steht ganz unten, dass ein Konfig-Snippet ergänzt wurde. 
> Deshalb vermute ich, dass er die php-fpm Konfiguration jetzt an 
> einer anderen Stelle erwartet.
> 
> Gruß, Christian
> 
> 
> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762491
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJV1cVrAAoJEM+6Ng5pbtyZpJgQALPH1ZXShapVztFu5BsJhV8L
NAArGhQLcDaaxKPov1Kfa8NAvVgGKausNPglilMdQ91CzRZDVCgNXYXAj5FUpvt0
dRfmQ4bl0QuW8FtW1shf+gje0ZPTPrS7f8jT0Sz5301KsGKQqd5xsQoktxYZ2k2m
RMmc2T/PUkUnMhdGDqOKX8c5aNVj3AabcpUcCP1F7R2A/NRNIWs2QNwE6lhy7V/R
cDxeTPo8BNcQ4YBpxrgDeChHKGjW+ZOQ42f8hcJJfhRT3JEcle7ATs40XXr3wjoP
qbG+sqPMKENZuigAHBiHOyWrVMbcS1IrmBDTd4UGs6g6jqElQTN3UOppvdiae6k/
NJtxfGw2OPl5Vr/UEqBXb9TPhhO6fnSycqlAsviG7gxU669u2hMSqNJu9JR7R51f
M5x0qcK86tw1sFdNBHv6eblzqkPqKCR3R/HRgyughgaccZaisga4UhGsyQ9g5XK4
V062GpLSuMJg7vzs3YZez9vHLZiWIw2qn0lSgZUC2Z/s/KFb6omcM/DqgvL/+5SS
qJJrqUksSnNOhBkFiA2SWsAHzJPF7lHrnyOF7zh3XZV4pSCTNqhtZglChKenJ6VK
latP0kYdGB27L1pqfU+DbxTkXQ9jZVROvHxWNbBGwzR5IyiAe29h9aAR06OdBhm+
apRpt6tKqNak34/ow+f8
=b86H
-----END PGP SIGNATURE-----


Reply to: