From 93f72c0d1f14c34fc5481cae9c8391c1c4e66a68 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 11 Feb 2015 11:23:05 +0100 Subject: update php config to work better with nginx --- package/php/files/php.ini | 2 +- package/php/files/php.init | 2 +- package/php/files/php.postinst | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package/php/files/php.ini b/package/php/files/php.ini index 5b16bb80e..1eaf811b4 100644 --- a/package/php/files/php.ini +++ b/package/php/files/php.ini @@ -1,5 +1,5 @@ [PHP] -cgi.fix_pathinfo = 0 +cgi.fix_pathinfo = 1 zend.ze1_compatibility_mode = Off asp_tags = Off precision = 12 diff --git a/package/php/files/php.init b/package/php/files/php.init index 786284b46..5168bdd3e 100644 --- a/package/php/files/php.init +++ b/package/php/files/php.init @@ -14,7 +14,7 @@ autostart) ;; start) if [ -x /usr/bin/php-cgi ];then - su -m www -c "/usr/bin/php-cgi -b /var/run/php5.sock" + /usr/bin/php-cgi -b /var/run/php5.sock & else /usr/bin/php-fpm -D fi diff --git a/package/php/files/php.postinst b/package/php/files/php.postinst index b976cf95f..3e358e7f2 100644 --- a/package/php/files/php.postinst +++ b/package/php/files/php.postinst @@ -1,4 +1,3 @@ #!/bin/sh . $IPKG_INSTROOT/etc/functions.sh add_rcconf php NO -add_rcconf php_flags "-b 2000" -- cgit v1.2.3