Как изменить тему Plesk по умолчанию? [закрыто]

Мы используем Plesk 10.4 для нашего сервера виртуального хостинга. Как я могу изменить тему Plesk?

branding_theme: command not found

Найдено здесь: http://download1.parallels.net/Plesk/PP10/10.1.1/Doc/en-US/online/plesk-administrator-guide/plesk-customizing-panel-appearance-branding-guide/

  • Система: centos5 (Linux)

  • Plesk-Version: 10.4

1
задан 22 November 2011 в 16:10
1 ответ

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.


How to setup a new theme for all users:

  1. Enter the psa-directory

    # cd /usr/local/psa/bin/
    
  2. Remove the current branding theme

    # ./branding_theme -u -vendor admin
    
  3. 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
    
  4. 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.


How to setup a new theme for all users:

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

  1. Enter the default skin directory

    # cd /usr/local/psa/var/branding/
    
  2. 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
    
  3. Unpack the zipped theme file

    # unzip parallels_plesk_panel_10.4_light_theme.zip -d newtheme
    
  4. Get the current hash for the installed default skin

    # find . -mindepth 2 -maxdepth 2 -type d
    
  5. You should get a result like this

    # ./info/d639d8b9-5382-462f-820e-e48e46efeb71
    # ./sb/skins
    # ./panel/skins
    
  6. 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/*
    
  7. 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
    
  8. Clean up your branding directory:

    # rm -rf parallels_plesk_panel_10.4_light_theme.zip
    # rm -rf newtheme/
    

Enjoy!

2
ответ дан 3 December 2019 в 21:58

Теги

Похожие вопросы