summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbrodkorb@conet.de>2015-02-11 11:23:05 +0100
committerWaldemar Brodkorb <wbrodkorb@conet.de>2015-02-11 11:23:05 +0100
commit93f72c0d1f14c34fc5481cae9c8391c1c4e66a68 (patch)
tree467461195027162cf73710e7b6cdf3f8777acbd3
parentb1095ae914439634cfa34742215a1213f8556bbc (diff)
update php config to work better with nginx
-rw-r--r--package/php/files/php.ini2
-rw-r--r--package/php/files/php.init2
-rw-r--r--package/php/files/php.postinst1
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"