mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
bug fix: to wp install, improved file manager and custom ssl implementation
This commit is contained in:
@@ -3401,6 +3401,25 @@ pm.max_spare_servers = 3
|
||||
WriteToFile.write(content)
|
||||
WriteToFile.close()
|
||||
|
||||
@staticmethod
|
||||
def setupPHPSymlink():
|
||||
try:
|
||||
# Remove existing PHP symlink if it exists
|
||||
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'
|
||||
Upgrade.executioner(command, 'Setup PHP Symlink', 0)
|
||||
|
||||
Upgrade.stdOut("PHP symlink created successfully.")
|
||||
|
||||
except BaseException as msg:
|
||||
Upgrade.stdOut('[ERROR] ' + str(msg) + " [setupPHPSymlink]")
|
||||
return 0
|
||||
|
||||
return 1
|
||||
|
||||
@staticmethod
|
||||
def upgrade(branch):
|
||||
|
||||
@@ -3464,6 +3483,7 @@ pm.max_spare_servers = 3
|
||||
Upgrade.executioner(command, 'tmp adjustment', 0)
|
||||
|
||||
Upgrade.dockerUsers()
|
||||
Upgrade.setupPHPSymlink()
|
||||
Upgrade.setupComposer()
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user