• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Update templates after installing

P

pfellner

Guest
I used to use the command:
sb_config --update_templates
I've added a new custom template but that doesn't work anymore. How do I tell SB to update the templates DB?
 
Try to check custom template one more time if there are no problems with it's structure and information. Did you see it in Sitebuilder admin CP -> Server -> Templates list?
Try to create a copy of one of the default templates and change it to new one, just to make sure if update procedure works. Change name for this template (directory should have new name and info.xml file information should be updated).
Let me know about the results. As I know there were no issues with template updates in latest versions of Sitebuilder.
 
I'm sorry but I meant to say that the command isn't even recognized.
[root@jupiter ~]# cd /usr/local/sitebuilder/htdocs/templates/
[root@jupiter templates]# sb_config --update_templates
-bash: sb_config: command not found
but to answer your question, no it doesn't appear in the CP.
 
Try to check if it exists on the server:

# whereis sb_config
sb_config: /usr/local/bin/sb_config
# ls -la /usr/local/bin/sb_config
-rwx------ 1 root root 69 Авг 7 2007 /usr/local/bin/sb_config

# cat /usr/local/bin/sb_config
#!/bin/sh
cd /usr/local/sitebuilder/utils/ && exec perl configure $@

Try to run it with full path, like this:

# /usr/local/bin/sb_config --update_templates
 
That did it. I had to use the full path. Thank you Dmitry!
 
Back
Top