Upgrade Nginx Stable to Mainline Version on Ubuntu 14.04 LTS

Check version for the first, remove nginx/stable repo and then add mainline repo wiro@serverGue:~# nginx -v nginx version: nginx/1.12.1 sudo add-apt-repository -r ppa:nginx/stable apt-get update sudo add-apt-repository ppa:ondrej/nginx-mainline apt-get update && apt-get upgrade nginx -y Check again, wiro@serverGue:~# nginx -v nginx version: nginx/1.13.3  

Iptables Rule Minimal for ‘Secure’ Server

Here is iptable rule minimal for ‘secure’ server, iptables -A INPUT -m conntrack –ctstate RELATED,ESTABLISHED -j ACCEPT iptables -A INPUT -s 212.212.212.x/32 -p tcp -m tcp –dport 202 -j ACCEPT iptables -P INPUT DROP iptables -A INPUT -i lo -j ACCEPT iptables -A INPUT -p tcp -m tcp –dport 80 -j ACCEPT iptables -A INPUT… Continue reading Iptables Rule Minimal for ‘Secure’ Server

Can’t Upgrade php5.6-fpm, Message: policy-rc.d returned unexpected error

When you see an error message; Setting up php5.6-fpm (5.6.30-10+deb.sury.org~trusty+2) … /usr/sbin/policy-rc.d: line 3: 101: command not found invoke-rc.d: WARNING: policy-rc.d returned unexpected error status 127, 102 used instead. invoke-rc.d: policy-rc.d returned error status 102 Do the following: # cat /usr/sbin/policy-rc.d #!/bin/sh exit 101 For more information, see https://askubuntu.com/questions/365911/why-the-services-do-not-start-at-installation

Ubuntu 14.04 – Error: perl: warning: Setting locale failed

If you see an error when update or upgrade packages on Ubuntu 14.04 LTS like this; perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = “en_US:en”, LC_ALL = (unset), LC_TIME = “id_ID.UTF-8”, LC_MONETARY = “id_ID.UTF-8”, LC_ADDRESS = “id_ID.UTF-8”, LC_TELEPHONE = “id_ID.UTF-8”, LC_NAME = “id_ID.UTF-8”, LC_MEASUREMENT = “id_ID.UTF-8”, LC_IDENTIFICATION =… Continue reading Ubuntu 14.04 – Error: perl: warning: Setting locale failed