• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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