{"id":340,"date":"2023-08-13T14:38:17","date_gmt":"2023-08-13T14:38:17","guid":{"rendered":"https:\/\/www.ehcp.net\/?p=340"},"modified":"2023-08-13T20:38:08","modified_gmt":"2023-08-13T20:38:08","slug":"common-daemon-commands-for-mysql","status":"publish","type":"post","link":"https:\/\/www.ehcp.net\/?p=340","title":{"rendered":"Common daemon commands for Mysql"},"content":{"rendered":"\n<p>These are used from command line, when ehcp webbased gui is not accessible, or for any other reason.<\/p>\n\n\n\n<p>go to server console,<br>mysql -p<\/p>\n\n\n\n<p>use ehcp;<\/p>\n\n\n\n<p>then:<\/p>\n\n\n\n<p># reset to non-ssl mod all apache settings.<br>update misc set value=&#8217;apache2&#8242; where name=&#8217;webservertype&#8217;;<br>update misc set value=&#8217;nonssl&#8217; where name=&#8217;webservermode&#8217;;<br>insert into operations (op) values (&#8216;fixapacheconfignonssl&#8217;);<\/p>\n\n\n\n<p># rebuilds apache config:<br>insert into operations (op) values (&#8216;syncdomains&#8217;);<\/p>\n\n\n\n<p># rebuild bind dns config:<br>insert into operations (op) values (&#8216;syncdns&#8217;);<\/p>\n\n\n\n<p># to reset template for your ehcp web-gui:<br>update misc set `value` = &#8216;xp5-z7&#8242; WHERE `misc`.`name`=&#8217;defaulttemplate&#8217; ;<\/p>\n\n\n\n<p>#or<br>update misc set `value` = &#8216;ubuntu0.4.2&#8242; WHERE `misc`.`name`=&#8217;defaulttemplate&#8217; ;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>if you mayde some &#8220;custom http&#8221; then, you may also need to remove them from mysql command line.<\/p>\n\n\n\n<p>mysql&gt; delete from customsettings;<br>mysql&gt; insert into operations (op) values (&#8216;syncdomains&#8217;);<\/p>\n\n\n\n<p>make sure your ehcp daemon working:<br>bash# ps aux | grep ehcp<\/p>\n\n\n\n<p>if not working (may also be used to make sure, even if working):<br># \/etc\/init.d\/ehcp restart<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>These are used from command line, when ehcp webbased gui is not accessible, or for any other reason. go to server console,mysql -p use ehcp; then: # reset to non-ssl mod all apache settings.update misc set value=&#8217;apache2&#8242; where name=&#8217;webservertype&#8217;;update misc set value=&#8217;nonssl&#8217; where name=&#8217;webservermode&#8217;;insert into operations (op) values (&#8216;fixapacheconfignonssl&#8217;); # rebuilds apache config:insert into operations [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/posts\/340"}],"collection":[{"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=340"}],"version-history":[{"count":1,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/posts\/340\/revisions"}],"predecessor-version":[{"id":341,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/posts\/340\/revisions\/341"}],"wp:attachment":[{"href":"https:\/\/www.ehcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}