Server IP : 92.204.138.22 / Your IP : 3.133.140.2 Web Server : Apache System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : internationaljou ( 1019) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/opt/nydus/ops/customer_local_ops/control_panel/powershell/ |
Upload File : |
#Check to see if plesk install currently running $process = Get-WmiObject -query "select * from win32_process where " + ` "name like 'plesk-installer%' or name like 'parallels_installer_Microsoft_%'" if($process){ $process | %{$_.Terminate()} } #Remove any old installs Get-WmiObject -query "select * from win32_product where name like '%Plesk%'" | %{$_.uninstall()} #Download Installer powershell.exe Invoke-WebRequest https://hfs-public.secureserver.net/-/Windows/plesk-installer.exe ` -UseBasicParsing -OutFile C:\Windows\Temp\plesk-installer.exe #Attempt clean install. try{ C:\Windows\Temp\plesk-installer.exe --select-product-id=panel --select-release-latest ` --skip-components-check --ignore-key-errors --no-space-check --installation-type=typical }catch{ #Verify Mysql startup Get-Service | ?{$_.name -eq 'Mysql56' -and $_.Status -ne 'Running'} | Start-Service "Mysql56" | %{ $service=gwmi win32_service -filter "name='$_' and not State='Running'" if($service){ $service.ChangeStartMode("Automatic") $service.startservice() } } #Attempt to fix install C:\Windows\Temp\plesk-installer.exe --select-product-id=panel --select-release-latest ` --skip-components-check --ignore-key-errors --no-space-check --upgrade-installed-components } Start-sleep -seconds 60 $verifyInstallLog = select-string -path C:\ParallelsInstaller\autoinstaller3.log -Pattern "The changes were applied successfully." -CaseSensitive if((test-path C:\ParallelsInstaller\ai_action_time.xml) -and $verifyInstallLog){ "Plesk Successfully Installed" exit 0 } "ERROR - Plesk DID NOT INSTALL PROPERLY" exit 1