The cPanel checkallsslcerts Script

/usr/local/cpanel/bin/checkallsslcerts The system runs the /usr/local/cpanel/bin/checkallsslcerts script during the nightly cPanel & WHM update (upcp) process. This script performs the following actions: Installs a cPanel-signed hostname certificate on the server, if one does not exist. Updates the SSL certificate for all cPanel & WHM services. Issues a Comodo signed SSL certificate on any server with … Read moreThe cPanel checkallsslcerts Script

.htaccess exceptions for AutoSSL and Let’s Encrypt

for Let’s Encrypt RewriteEngine On RewriteCond %{REQUEST_URI} !\.well-known/acme-challenge RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] for cPanel AutoSSL RewriteEngine On RewriteCond %{REQUEST_URI} !\.well-known/pki-validation RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

Fix cPanel account permissions script

How to use PeachFlame script to fix cPanel account permissions: To get the fixperms script, simply wget the file from GitHub and make sure it’s executable: wget https://raw.githubusercontent.com/PeachFlame/cPanel-fixperms/master/fixperms.sh chmod +x fixperms.sh Fixperms – for all of the users If you would like fix the permissions for every user on your cPanel server, simply use the … Read moreFix cPanel account permissions script

Retry time not reached for any host after a long failure period

Exim issue most likely due to a corrupt Exim db. Symptom: Bounced emails with the message: “retry time not reached for any host after a long failure period” Solution: For cPanel: cd /var/spool/exim/db rm -f retry retry.lockfile rm -f wait-remote_smtp wait-remote_smtp.lockfile service exim restart For Linux: /usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null /usr/sbin/exim_tidydb -t … Read moreRetry time not reached for any host after a long failure period

Mirror offline HTML website with WGET

This is an example how to convert a website in STATIC HTML: wget –mirror –convert-links –adjust-extension –page-requisites –no-parent http://mywebsite.ca –mirror – Makes (among other things) the download recursive. –convert-links – convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing. –adjust-extension – Adds suitable extensions … Read moreMirror offline HTML website with WGET

Autostart Virtualbox Machine

Edit the config file nano /etc/default/virtualbox Add the lines: VBOXAUTOSTART_DB=/etc/vboxVBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg Fix permissions: chgrp vboxusers /etc/vboxchmod 1775 /etc/vbox Start and enable the service: systemctl start vboxautostart-servicesystemctl enable vboxautostart-service

Use RemoteBox on Ubuntu

Download RemoteBox wget http://remotebox.knobgoblin.org.uk/downloads/RemoteBox-2.6.tar.bz2 Ensure the required dependencies are installed as follows: apt-get install libgtk2-perl libsoap-lite-perl freerdp-x11 tigervnc-viewer To launch RemoteBox, unpack the previously downloaded RemoteBox tarball and run the ‘remotebox’ executable. vboxweb-service need to be installed and active on the target server. The following article describe how to install a Headless Server on CentOS … Read moreUse RemoteBox on Ubuntu

VirtualBox Guest Additions not working in Lubuntu 17.04 – Solved

Environnement: Host OS: Windows 10 x64 VirtualBox Graphical User Interface Version 5.1.26 r117224 (Qt5.6.2) Guest OS: Lubuntu 17.04 VBOXADDITIONS_5.1.26_117224 Problem: I manually installed VirtualBox Guest Additions from VBOXADDITIONS_5.1.26_117224 ISO and restarted the guest. The bidirectional clipboard and the drag and drop still not working. Solution: Installation of Guest Additions from Ubuntu repository. Command: sudo apt-get install virtualbox-guest-dkms … Read moreVirtualBox Guest Additions not working in Lubuntu 17.04 – Solved