From 695425a8d672f07d6fc906f3b217cf0bf6d74339 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 2 Aug 2025 10:03:09 +0500 Subject: [PATCH] bug fix: https://github.com/usmannasir/cyberpanel/issues/1466 --- install/install.py | 4 ++-- plogical/applicationInstaller.py | 2 +- plogical/upgrade.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install/install.py b/install/install.py index ef978b748..8fadb5884 100644 --- a/install/install.py +++ b/install/install.py @@ -2160,8 +2160,8 @@ milter_default_action = accept if os.path.exists('/usr/bin/php'): os.remove('/usr/bin/php') - # Create symlink to PHP 8.0 - command = 'ln -s /usr/local/lsws/lsphp80/bin/php /usr/bin/php' + # Create symlink to PHP 8.1 + command = 'ln -s /usr/local/lsws/lsphp81/bin/php /usr/bin/php' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) logging.InstallLog.writeToFile("[setupPHPSymlink] PHP symlink created successfully.") diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 03cafe8bd..907ef585d 100644 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -1581,7 +1581,7 @@ class ApplicationInstaller(multi.Thread): tempStatusPath = "/home/cyberpanel/" + str(randint(1000, 9999)) externalApp = "".join(re.findall("[a-zA-Z]+", self.extraArgs['domain']))[:5] + str(randint(1000, 9999)) - virtualHostUtilities.createVirtualHost(self.extraArgs['domain'], self.extraArgs['email'], 'PHP 7.4', + virtualHostUtilities.createVirtualHost(self.extraArgs['domain'], self.extraArgs['email'], 'PHP 8.1', externalApp, 1, 1, 0, 'admin', 'Default', 0, tempStatusPath, 0) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 3b78eb198..836a7763b 100644 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -3602,8 +3602,8 @@ pm.max_spare_servers = 3 if os.path.exists('/usr/bin/php'): os.remove('/usr/bin/php') - # Create symlink to PHP 8.0 - command = 'ln -s /usr/local/lsws/lsphp80/bin/php /usr/bin/php' + # Create symlink to PHP 8.1 + command = 'ln -s /usr/local/lsws/lsphp81/bin/php /usr/bin/php' Upgrade.executioner(command, 'Setup PHP Symlink', 0) Upgrade.stdOut("PHP symlink created successfully.")