#348: PHP8
This commit is contained in:
@@ -24,6 +24,8 @@ class WOStackStatusController(CementBaseController):
|
||||
pargs.php72 or
|
||||
pargs.php73 or
|
||||
pargs.php74 or
|
||||
pargs.php80 or
|
||||
pargs.php81 or
|
||||
pargs.mysql or
|
||||
pargs.redis or
|
||||
pargs.fail2ban or
|
||||
@@ -56,6 +58,14 @@ class WOStackStatusController(CementBaseController):
|
||||
services = services + ['php7.4-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP7.4-FPM is not installed")
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
|
||||
services = services + ['php8.0-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.0-FPM is not installed")
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
|
||||
services = services + ['php8.1-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.1-FPM is not installed")
|
||||
|
||||
if pargs.php72:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php7.2-fpm.service'):
|
||||
@@ -75,6 +85,18 @@ class WOStackStatusController(CementBaseController):
|
||||
else:
|
||||
Log.info(self, "PHP7.4-FPM is not installed")
|
||||
|
||||
if pargs.php80:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
|
||||
services = services + ['php8.0-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.0-FPM is not installed")
|
||||
|
||||
if pargs.php81:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
|
||||
services = services + ['php8.1-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.1-FPM is not installed")
|
||||
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
@@ -125,7 +147,7 @@ class WOStackStatusController(CementBaseController):
|
||||
pargs = self.app.pargs
|
||||
if not (pargs.nginx or pargs.php or
|
||||
pargs.php72 or pargs.php73 or
|
||||
pargs.php74 or
|
||||
pargs.php74 or pargs.php80 or pargs.php81 or
|
||||
pargs.mysql or
|
||||
pargs.fail2ban or
|
||||
pargs.netdata or
|
||||
@@ -173,6 +195,18 @@ class WOStackStatusController(CementBaseController):
|
||||
else:
|
||||
Log.info(self, "PHP7.4-FPM is not installed")
|
||||
|
||||
if pargs.php80:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
|
||||
services = services + ['php8.0-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.0-FPM is not installed")
|
||||
|
||||
if pargs.php81:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
|
||||
services = services + ['php8.1-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.1-FPM is not installed")
|
||||
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
@@ -223,7 +257,7 @@ class WOStackStatusController(CementBaseController):
|
||||
pargs = self.app.pargs
|
||||
if not (pargs.nginx or pargs.php or
|
||||
pargs.php72 or pargs.php73 or
|
||||
pargs.php74 or
|
||||
pargs.php74 or pargs.php80 or pargs.php81 or
|
||||
pargs.mysql or
|
||||
pargs.netdata or
|
||||
pargs.proftpd or
|
||||
@@ -251,6 +285,14 @@ class WOStackStatusController(CementBaseController):
|
||||
Log.info(self, "PHP7.3-FPM is not installed")
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php7.4-fpm.service'):
|
||||
services = services + ['php7.4-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.0-FPM is not installed")
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
|
||||
services = services + ['php8.0-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.1-FPM is not installed")
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
|
||||
services = services + ['php8.1-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP7.4-FPM is not installed")
|
||||
|
||||
@@ -272,6 +314,18 @@ class WOStackStatusController(CementBaseController):
|
||||
else:
|
||||
Log.info(self, "PHP7.4-FPM is not installed")
|
||||
|
||||
if pargs.php80:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
|
||||
services = services + ['php8.0-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.0-FPM is not installed")
|
||||
|
||||
if pargs.php81:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
|
||||
services = services + ['php8.1-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.1-FPM is not installed")
|
||||
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
@@ -324,6 +378,8 @@ class WOStackStatusController(CementBaseController):
|
||||
pargs.php72 or
|
||||
pargs.php73 or
|
||||
pargs.php74 or
|
||||
pargs.php80 or
|
||||
pargs.php81 or
|
||||
pargs.mysql or
|
||||
pargs.netdata or
|
||||
pargs.proftpd or
|
||||
@@ -374,6 +430,18 @@ class WOStackStatusController(CementBaseController):
|
||||
else:
|
||||
Log.info(self, "PHP7.4-FPM is not installed")
|
||||
|
||||
if pargs.php80:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
|
||||
services = services + ['php8.0-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.0-FPM is not installed")
|
||||
|
||||
if pargs.php81:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
|
||||
services = services + ['php8.1-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.1-FPM is not installed")
|
||||
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
@@ -435,7 +503,7 @@ class WOStackStatusController(CementBaseController):
|
||||
pargs = self.app.pargs
|
||||
if not (pargs.nginx or pargs.php or
|
||||
pargs.php72 or pargs.php73 or
|
||||
pargs.php74 or
|
||||
pargs.php74 or pargs.php80 or pargs.php81 or
|
||||
pargs.mysql or
|
||||
pargs.netdata or
|
||||
pargs.proftpd or
|
||||
@@ -465,6 +533,14 @@ class WOStackStatusController(CementBaseController):
|
||||
services = services + ['php7.4-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP7.4-FPM is not installed")
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
|
||||
services = services + ['php8.0-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.0-FPM is not installed")
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
|
||||
services = services + ['php8.1-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.1-FPM is not installed")
|
||||
|
||||
if pargs.php72:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php7.2-fpm.service'):
|
||||
@@ -484,6 +560,18 @@ class WOStackStatusController(CementBaseController):
|
||||
else:
|
||||
Log.info(self, "PHP7.4-FPM is not installed")
|
||||
|
||||
if pargs.php80:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
|
||||
services = services + ['php8.0-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.0-FPM is not installed")
|
||||
|
||||
if pargs.php81:
|
||||
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
|
||||
services = services + ['php8.1-fpm']
|
||||
else:
|
||||
Log.info(self, "PHP8.1-FPM is not installed")
|
||||
|
||||
if pargs.mysql:
|
||||
if ((WOVar.wo_mysql_host == "localhost") or
|
||||
(WOVar.wo_mysql_host == "127.0.0.1")):
|
||||
|
||||
Reference in New Issue
Block a user