bug fix: apache manager and resolve some ports conflicts

This commit is contained in:
usman@cyberpersons.com
2023-05-17 19:19:30 +05:00
parent 08ce5b6276
commit ebc70fdf6d
3 changed files with 17 additions and 9 deletions

View File

@@ -1298,7 +1298,10 @@ def getExtensionsInformation(request):
if request.GET.get('apache', None) == None:
phpVers = f"lsphp{PHPManager.getPHPString(phpVers)}"
else:
phpVers = phpVers.replace(' ', '').lower()
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
phpVers = f"php{PHPManager.getPHPString(phpVers)}"
else:
phpVers = phpVers.replace(' ', '').lower()
if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(f'PHP Version apache {phpVers}')