• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

template database

O

om4knowledge

Guest
I'm running sb 4.2 on cent os (linux).

Where is my template database located?
I add a few templates that didn't work and I've heard I should clean up the tables in my database.

Thanks.
 
After new template is added you need to run:

# sb_config --update_templates

Tempalte should be prepared properly. All templates are stored in 'sitebuilder3.template' table:

mysql> desc sitebuilder3.template;
+-----------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| code | varchar(32) | NO | UNI | | |
| name | varchar(32) | NO | | | |
| is_active | int(1) | NO | | 1 | |
| template_category_id | int(11) | NO | | 0 | |
| version | varchar(16) | NO | | | |
| defaults | varchar(128) | NO | | | |
| schemes | varchar(128) | NO | | | |
| header_upload_support | tinyint(1) | YES | | NULL | |
| keywords | text | YES | | NULL | |
+-----------------------+--------------+------+-----+---------+----------------+
10 rows in set (0.00 sec)
 
D,
I was told that if you manually remove a template you need to go into the db and clean up the table. I logged in as my primary user and I don't see the database in mysql admin.

As you know, your crew did my install. How can I clean up my database? Thanks for ALL your work. :)
 
After template is removed, template list should be updated with:

#sb_config --update_templates

For example, I want to delete 'zsk-20' template:

Appropriate record in database exists:
# mysql -uuser -ppassword sitebuilder3 -e "select * from template where code='zsk-20';"
+-----+--------+----------------------+-----------+----------------------+---------+---------------------------------+-------------------+-----------------------+----------+
| id | code | name | is_active | template_category_id | version | defaults | schemes | header_upload_support | keywords |
+-----+--------+----------------------+-----------+----------------------+---------+---------------------------------+-------------------+-----------------------+----------+
| 502 | zsk-20 | Photogallery company | 1 | 18 | 4.0.0 | logo.gif|headers1|buttons1|blue | green|blue|yellow | NULL | NULL |
+-----+--------+----------------------+-----------+----------------------+---------+---------------------------------+-------------------+-----------------------+----------+

Removing:

# rm -rf /usr/local/sitebuilder/htdocs/templates/zsk-20/

Updating database:

# sb_config --update_templates
Templates have been successfully updated

No records after update:
# mysql -uuser -ppassword sitebuilder3 -e "select * from template where code='zsk-20';"
#
 
D,
Your team did my install.
How can I find (or reset) the user and pass?
Thanks.
 
Back
Top