BLog
Want to Learn About Coding?
Fix Cyberpanel email SSL has expired
Check if SSL is good openssl s_client -starttls smtp -showcerts -connect mail.domain.com:25 -servername mail.domain.com Also, you can check email SSL here If the Let's encrypt certificate has expired fix it with the next commands: postmap -F...
Allow user to RWX permissions to home folder
setfacl --recursive --modify u:someuser:rwx,d:u:someuser:rwx /home Or setfacl -R -m u:someuser:rwX /home Learned from here , here and there
Adding Linux Users to Sudoers File Manually
sudo visudo # User privilege specification root ALL=(ALL:ALL) ALL test ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges
Connect SSH to server via Terminal
ssh -lroot -p22 <ip address>
Linux Mint laptop WiFi loosing signal
https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently#315400
VirtualBox lan settings
CentOS (RHEL), NginX and SELinux settings
To be able to use NginX without disabling SElinux use next
Installing Webin on Linux Servers RHEL
Add this code to the therminal (echo "[Webmin] name=Webmin Distribution Neutral baseurl=http://download.webmin.com/download/yum enabled=1 gpgcheck=1 gpgkey=http://www.webmin.com/jcameron-key.asc" >/etc/yum.repos.d/webmin.repo; yum -y install webmin) Taken from the...
First thing to do after installing Linux Server RHEL
To add a user to the Linux use this command useradd -g wheel new_username -g means to add a new user to the 'wheel' group which is the sudo-root group, more info can be found here: https://linuxhandbook.com/useradd-command/ Create password for the user with the:...
WooCommerece Refresh checkout fields on changed country and shipping method
When having problems with not updating shipping methods and total price when changing country and shipping methods add this code to the functions.php /***************************** * Refresh checkout fields on changed country and shipping method...
WooCommerce: Add Content to a Specific Order Email
PHP Snippet: Add Content to the WooCommerce Customer Processing Order Email /** * @snippet Add Text to Customer Processing Order Email * @how-to Get CustomizeWoo.com FREE * @author milangru */ add_action( 'woocommerce_email_before_order_table',...
Add product images to Woocommerce emails
To be able to add woocommerce produst images to emails and to add styles to it, just add this code to functions.php or into plugin // // Adds image to WooCommerce order emails // function w3p_add_image_to_wc_emails( $args ) { $args['show_image'] = true;...