From a1f5041968ea36e3f5d1efbd90f7455b2ea49bb8 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Thu, 2 May 2019 15:12:26 +0200 Subject: [PATCH] fix access to /usr/share/php --- wo/cli/plugins/stack.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index 16f5656..14cb867 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -790,7 +790,8 @@ class WOStackController(CementBaseController): with open("/etc/php/7.2/fpm/pool.d/www.conf", encoding='utf-8', mode='a') as myfile: myfile.write("\nphp_admin_value[open_basedir] " - "= \"/var/www:/tmp/:/var/run/nginx-cache\"\n") + "= \"/var/www/:/usr/share/php/:" + "/tmp/:/var/run/nginx-cache/\"\n") # Generate /etc/php/7.2/fpm/pool.d/www-two.conf WOFileUtils.copyfile(self, "/etc/php/7.2/fpm/pool.d/www.conf", @@ -950,7 +951,8 @@ class WOStackController(CementBaseController): with open("/etc/php/7.3/fpm/pool.d/www.conf", encoding='utf-8', mode='a') as myfile: myfile.write("\nphp_admin_value[open_basedir] " - "= \"/var/www:/tmp/:/var/run/nginx-cache\"\n") + "= \"/var/www/:/usr/share/php/:" + "/tmp/:/var/run/nginx-cache/\"\n") # Generate /etc/php/7.3/fpm/pool.d/www-two.conf WOFileUtils.copyfile(self, "/etc/php/7.3/fpm/pool.d/www.conf",