Skip to content

Commit 54e4a64

Browse files
committed
Fix php7 debug
1 parent 836ef78 commit 54e4a64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ee/cli/plugins/debug.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def debug_php7(self):
305305
# Change upstream.conf
306306
nc = NginxConfig()
307307
nc.loadf('/etc/nginx/conf.d/upstream.conf')
308-
nc.set([('upstream','php',), 'server'], '127.0.0.1:9170')
308+
nc.set([('upstream','php7',), 'server'], '127.0.0.1:9170')
309309
if os.path.isfile("/etc/nginx/common/wpfc-hhvm.conf"):
310310
nc.set([('upstream','hhvm',), 'server'], '127.0.0.1:9170')
311311
nc.savef('/etc/nginx/conf.d/upstream.conf')
@@ -342,15 +342,15 @@ def debug_php7(self):
342342

343343
# PHP global debug stop
344344
elif (self.app.pargs.php7 == 'off' and not self.app.pargs.site_name):
345-
if EEShellExec.cmd_exec(self, " sed -n \"/upstream php {/,/}/p\" "
345+
if EEShellExec.cmd_exec(self, " sed -n \"/upstream php7 {/,/}/p\" "
346346
"/etc/nginx/conf.d/upstream.conf "
347347
"| grep 9170"):
348348
Log.info(self, "Disabling PHP 7.0 debug")
349349

350350
# Change upstream.conf
351351
nc = NginxConfig()
352352
nc.loadf('/etc/nginx/conf.d/upstream.conf')
353-
nc.set([('upstream','php',), 'server'], '127.0.0.1:9070')
353+
nc.set([('upstream','php7',), 'server'], '127.0.0.1:9070')
354354
if os.path.isfile("/etc/nginx/common/wpfc-hhvm.conf"):
355355
nc.set([('upstream','hhvm',), 'server'], '127.0.0.1:8000')
356356
nc.savef('/etc/nginx/conf.d/upstream.conf')

0 commit comments

Comments
 (0)