Anwar

Posts

Ruby version select

Installing Ruby sudo apt-get install software-properties-common sudo add-apt-repository ppa:brightbox/ruby-ng sudo apt-get update sudo apt-get -y install ruby2.1 ruby-switch ruby2.1-dev ri2.1 libruby2.1 libssl-dev zlib1g-dev sudo ruby-switch...

RunCloud Let’s Encrypt Automation

Install Let’s Encrypt SSL on RunCloud.io servers Installation pip install rcssl Usage usage: PROG [-h] [-i {all}] [-u {all}] [-r] [-a {disable,enable}]   optional arguments:...

Search all tables, all columns for a specific value SQL Server

All commands are bash on Linux, from memory. Dump database to text file mysqldump -u user -p databasename > ./db.sql Run sed command to find/replace...

Serverpilot disable firewall

If you need to manually customize the firewall on your server, you should first disable ServerPilot’s management of your server’s firewall. To do this, log...

First steps after ServerPilot has been installed

If you see this message in your online ServerPilot panel, your Ubuntu web server is ready to host your websites. Or maybe not? If you host only a...

Setting timezone from terminal

To change time zone from terminal, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below: sudo dpkg-reconfigure tzdata Once open,...

Sftp file upload permission denied

https://www.digitalocean.com/community/questions/permission-denied-writing-files-through-sftp make sure your user is a member of the www-data group: sudo usermod -a -G www-data $USER then give group permissions: sudo chmod -R...

FAQ My site was hacked

Help I think I’ve been hacked So you’ve carefully installed WordPress, you’ve made it look exactly how you like with a decent theme, you’ve maybe installed some...

Tar a directory

You need to use tar command as follows (syntax of tar command): tar -zcvf archive-name.tar.gz directory-name Where, -z: Compress archive using gzip program -c: Create...