Cleaning up interworx email

To test do this:

find ./ -mindepth 1 -depth -type f -mtime +365 -printf ‘%AF %b %p\n’



Then if it’s all okay, do this:

find ./ -mindepth 1 -type f -mtime +365 -delete

Hello Child base CSS to use settings from panel.

/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/
/* Sections
 */
body {
    font-family: var(--e-global-typography-text-font-family),-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    color: var(--e-global-color-text);
    background-color: transparent;
}

/* Text-level semantics
 */
a {
    background-color: transparent;
    text-decoration: none;
    color: var(--e-global-color-accent); }
a:hover, a:active {
    color: var(--e-global-color-accent); }

button,
[type="submit"],
[type="button"] {
    color: var(--e-global-color-accent);
    border: 1px solid var(--e-global-color-accent);
    }

button:hover, button:focus,
[type="submit"]:hover,
[type="submit"]:focus,
[type="button"]:hover,
[type="button"]:focus {
    background-color: var(--e-global-color-accent);
}

cPanel to Interworx

On the cPanel server:

/scripts/pkgacct acctname

On the iWorx server:

scp cpanel.ip.address:/home/cpmove-*.tar.gz /home/

/usr/local/interworx/bin/import.pex --control-panel cpanel --ipv4 target.ip.address --archive /home/cpmove-acctname.tar.gz | tee -a /home/acctname.import.log

Center that ish

position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);

Clean up products and meta

DELETE FROM nwfa_wc_product_meta_lookup WHERE product_id IN (SELECT ID FROM nwfa_posts WHERE post_status = "trash");
DELETE FROM nwfa_postmeta WHERE post_id IN (SELECT ID FROM nwfa_posts WHERE post_status = "trash");
DELETE FROM nwfa_posts WHERE post_status = "trash";

Javascript for menu icons

jQuery(document).ready(function($) {
$('.menu-my-main-menu-container').each(function(){
var iconstr = false;
if($(this).hasClass('linkedin')){
iconstr = 'icon-linkedin';
}
if(iconstr){
var anchor = $(this).find('a');
var title = anchor.find('span').html();
anchor.attr('title',title).wrapInner('');
}
});
});

Those pesky CPanel backups

How to create backup of Individual cPanel Account via SSH?

Step 1: Log-in to the SSH as Root user.

Step 2: Enter the following command string on the command line interface:

/scripts/pkgacct username

[Note: The account backup will be created in the current directory you are in.]

How to Restore the Individual cPanel Account via SSH?

Step 1: To restore the cPanel account backups, enter the following command

/scripts/restorepkg username

[Note: In order to restore the data, you need to be in the directory where the backup file is stored.]

This is the easiest way to backup and restore individual cPanel web hosting accounts via command line interface.