correct php version
This commit is contained in:
@@ -336,20 +336,20 @@ class WODebugController(CementBaseController):
|
|||||||
# PHP global debug stop
|
# PHP global debug stop
|
||||||
elif (self.app.pargs.php73 == 'off' and not self.app.pargs.site_name):
|
elif (self.app.pargs.php73 == 'off' and not self.app.pargs.site_name):
|
||||||
if WOShellExec.cmd_exec(self, " sed -n \"/upstream "
|
if WOShellExec.cmd_exec(self, " sed -n \"/upstream "
|
||||||
"php72 {/,/}/p\" "
|
"php73 {/,/}/p\" "
|
||||||
"/etc/nginx/conf.d/upstream.conf "
|
"/etc/nginx/conf.d/upstream.conf "
|
||||||
"| grep 9172"):
|
"| grep 9173"):
|
||||||
Log.info(self, "Disabling PHP 7.2 debug")
|
Log.info(self, "Disabling PHP 7.3 debug")
|
||||||
|
|
||||||
# Change upstream.conf
|
# Change upstream.conf
|
||||||
nc = NginxConfig()
|
nc = NginxConfig()
|
||||||
nc.loadf('/etc/nginx/conf.d/upstream.conf')
|
nc.loadf('/etc/nginx/conf.d/upstream.conf')
|
||||||
nc.set([('upstream', 'php72',), 'server'],
|
nc.set([('upstream', 'php73',), 'server'],
|
||||||
'unix:/var/run/php/php72-fpm.sock')
|
'unix:/var/run/php/php73-fpm.sock')
|
||||||
nc.savef('/etc/nginx/conf.d/upstream.conf')
|
nc.savef('/etc/nginx/conf.d/upstream.conf')
|
||||||
|
|
||||||
# Disable xdebug
|
# Disable xdebug
|
||||||
WOFileUtils.searchreplace(self, "/etc/php/7.2/mods-available/"
|
WOFileUtils.searchreplace(self, "/etc/php/7.3/mods-available/"
|
||||||
"xdebug.ini",
|
"xdebug.ini",
|
||||||
"zend_extension",
|
"zend_extension",
|
||||||
";zend_extension")
|
";zend_extension")
|
||||||
@@ -357,7 +357,7 @@ class WODebugController(CementBaseController):
|
|||||||
self.trigger_php = True
|
self.trigger_php = True
|
||||||
self.trigger_nginx = True
|
self.trigger_nginx = True
|
||||||
else:
|
else:
|
||||||
Log.info(self, "PHP 7.2 debug is already disabled")
|
Log.info(self, "PHP 7.3 debug is already disabled")
|
||||||
|
|
||||||
@expose(hide=True)
|
@expose(hide=True)
|
||||||
def debug_fpm73(self):
|
def debug_fpm73(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user