Мы используем Plesk 10.4 для нашего сервера виртуального хостинга. Как я могу изменить тему Plesk?
branding_theme: command not found
Система: centos5 (Linux)
Plesk-Version: 10.4
Parallels Plesk Panel does not provides a GUI powered theme manager since Version 10. You need to run the branding_theme Utility in the psa/bin directory to install new themes.
Enter the psa-directory
# cd /usr/local/psa/bin/
Remove the current branding theme
# ./branding_theme -u -vendor admin
Retrieve your new Theme for Parallels Plesk 10.4
# wget http://download1.parallels.com/Plesk/PP10/BrandingThemes/parallels_plesk_panel_10.4_light_theme.zip
Install the new theme
# ./branding_theme -i -vendor admin -source parallels_plesk_panel_10.4_light_theme.zip
You can find more details about Panel Branding at the branding_theme Utility Guide.
Unfortunately, the branding_theme Utility isn't able to set the default theme for all users at once.
You can use this workaround to replace the default theme with the new one
Enter the default skin directory
# cd /usr/local/psa/var/branding/
Retrieve your new Theme for Parallels Plesk 10.4
# wget http://download1.parallels.com/Plesk/PP10/BrandingThemes/parallels_plesk_panel_10.4_light_theme.zip
Unpack the zipped theme file
# unzip parallels_plesk_panel_10.4_light_theme.zip -d newtheme
Get the current hash for the installed default skin
# find . -mindepth 2 -maxdepth 2 -type d
You should get a result like this
# ./info/d639d8b9-5382-462f-820e-e48e46efeb71
# ./sb/skins
# ./panel/skins
Use the hash and replace it with the commands below to flush the directory:
# rm -Rf ./info/d639d8b9-5382-462f-820e-e48e46efeb71/*
# rm -Rf ./sb/skins/d639d8b9-5382-462f-820e-e48e46efeb71/*
# rm -Rf ./panel/skins/d639d8b9-5382-462f-820e-e48e46efeb71/*
Copy and Paste the new skin to the previous directory:
# cp -r ./newtheme/info/ ./info/d639d8b9-5382-462f-820e-e48e46efeb71/
# cp -r ./newtheme/panel/skins/* ./panel/skins/d639d8b9-5382-462f-820e-e48e46efeb71
# cp -r ./newtheme/sb/skins/* ./sb/skins/d639d8b9-5382-462f-820e-e48e46efeb71
Clean up your branding directory:
# rm -rf parallels_plesk_panel_10.4_light_theme.zip
# rm -rf newtheme/
Enjoy!