From time to time you might find that some scripts have been compromised for a particular user's website (WordPress, Joomla, etc). To identify the directory from where these scripts are…
Locate spam scripts in Exim WHM
unifi db – DbServer stopped – Unifi controller solved
A nice simple fix from SYSADMIN: sudo rm -f /usr/lib/unifi/bin/mongod sudo nano /usr/lib/unifi/bin/mongod Paste the following in the mongod file: #!/bin/bash exec /usr/bin/mongod ${*//–nohttpinterface/} Save the file and add permissions…
Setup LetsEncrypt with Nginx on Ubuntu
The first step is to add the certbot repo: sudo add-apt-repository ppa:certbot/certbot Next, update the package list: sudo apt-get update Next, install Certbot's Nginx package: sudo apt-get install python-certbot-nginx Next,…
Setup Tomcat 8 with Nginx on Ubuntu
Setting up Tomcat 8 with Nginx is very straight forward. sudo nano /etc/nginx/sites-enabled/default Search for the following text with CTRL + W location / And add the following line of…
Completely uninstall Nginx Ubuntu
To completely uninstall Nginx on Ubuntu (including all config files), you can run the following command: sudo apt-get purge nginx nginx-common
Install Let's Encrypt for Apache
Start by enabling the Certbot repository: sudo add-apt-repository ppa:certbot/certbot Next, update the package list: sudo apt update Next, install the Certbot Apache package: sudo apt install python-certbot-apache Finally, obtain the…
Get size of folder and sub-folders Ubuntu
To get the size of a folder along with all files and folders contained therein you can run the following command: du -sh folder-name/* Should you only want the size…
Reverse proxy for Tomcat and Apache
Since the default port on which Tomcat operates is port 8080, you might want to provide users with the ability to access your web application without the need to succeed…
Add text to another file / concatenate Ubuntu
If you'd like to add text from one file to another (concatenate two text files) the run the following command: cat file1 | cat >> file2 This will output the…
Import MongoDB database Docker
Assuming you followed this article when exporting/dumping your Mongo database from Docker, you can create restore.sh with the below snippet. Prior to running the script, ensure that you have unzipped…









