From ac0122005e1a0b8f86b3ae60dbdec77f40cdd45d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 5 Feb 2015 16:04:19 +0100 Subject: run as www with socket --- package/php/files/php.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/php/files') diff --git a/package/php/files/php.init b/package/php/files/php.init index b2e60135b..786284b46 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 - /usr/bin/php-cgi + su -m www -c "/usr/bin/php-cgi -b /var/run/php5.sock" else /usr/bin/php-fpm -D fi -- cgit v1.2.3