mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-06 15:42:06 +01:00
This commit is contained in:
@@ -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.")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user