bug fix: to wp install, improved file manager and custom ssl implementation

This commit is contained in:
usmannasir
2025-04-27 15:28:50 +05:00
parent a2e4e4eca5
commit 031a8e7851
11 changed files with 1578 additions and 459 deletions

View File

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