There are times when we need to protect our entire website or some directories on the website itself. There are plenty of tools out there to help you make it work, but there’s a pretty cool baked in solution from the Apache webserver with little configuration needed. To do this, go to the directory or…
[Continue reading]E: Could not get lock /var/lib/dpkg/lock-frontend – … [Fix]
I’m hosting a few websites for some friends and clients which most of them are running on Ubuntu.
[Continue reading]Set Date/Time Automatically from Google on Ubuntu 18
I’ve once had a problem on one of my Ubuntu 18 servers on timing not syncing from the internet. Use the following command: sudo date -s “$(wget -qSO- –max-redirect=0 google.com 2>&1 | grep Date: | cut -d’ ‘ -f5-8)Z”
[Continue reading]Copy the SSH Key from Macbook Pro
As an enthusiastic developer, there are times when I need to collaborate with other people on projects that hosted in a central repository such as GitHub, Bit Bucket, or Gitlab. Without the need to always type in the password on push, I need to add my SSH Key to that repository the enable it to…
[Continue reading]Using rsync to Upload Large Files to the Remote Server
I once met a situation when I could not upload a large compressed css file to the remote server via any ftp softwares either FileZilla or Cyber Duck. I could not figure out why even I’d tried to increase timeout setting, reduce the number of connection, etc. still it ends up the same. Then I…
[Continue reading]Fixed: Corrupt SQL file contains unicode characters
I happened to have my backup sql file which contains Unicode characters broken. This happened when I had just bought a new version of Mamp Pro to install in my Mac. It comes with the latest PHP and a lot of exiting features! I then re-installed my database of one project that contains Unicode characters….
[Continue reading]Using Bootstrap 4.3.1 and Error Occurs When Triggering compass watch
Initially, when triggering the compass watch from my terminal the error occurs like below:
[Continue reading]Delete content of a file using Truncate
There are times when we need to remove content from a file from our server space. Especially, those unwanted log content which are produced on the fly by your codes on purpose. To my experience, some logs that are already checked should be deleted to save server space. Note that when the log file exceeds…
[Continue reading]Upgrade PHP to 7.2 on Vesta CP
This morning I’m working on upgrading my Vesta CP to use PHP 7.2 as from the newly released WordPress 5.1 suggestion. 1. Add PHP Repository to my Debian In my case, my Ubuntu operating system does not have PHP Repository yet. I then install it by running the following command: sudo apt-get install software-properties-common Then…
[Continue reading]Setup Static IP on Ubuntu 18.04 Server
I was playing around with setting up my own Ubuntu server for an intranet system to use within the company. Everything works out of the box, almost like Windows ;). The thing that I think would be very much useful in the future is to set a static IP so that even if the server…
[Continue reading]