diff --git a/virtualmin-nginx-lib.pl b/virtualmin-nginx-lib.pl index 7dc486a..df3dd67 100644 --- a/virtualmin-nginx-lib.pl +++ b/virtualmin-nginx-lib.pl @@ -1703,7 +1703,7 @@ sub setup_php_fcgi_server &init::enable_at_boot($name, "Start Nginx PHP fcgi server for $d->{'dom'}", &command_as_user($d->{'user'}, 0, - "$envs $cmd >>$log 2>&1 $pidfile"), + "$envs $cmd >>$log 2>&1 $pidfile && chmod +r $pidfile", &command_as_user($d->{'user'}, 0, "kill `cat $pidfile`")." ; sleep 1", undef,