usmannasir
2025-08-02 10:03:09 +05:00
parent 49635c415d
commit 695425a8d6
3 changed files with 5 additions and 5 deletions

View File

@@ -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.")

View File

@@ -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)

View File

@@ -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.")