OpenVPN installation quick tutorial

Just a quick introduction for OpenVPN installation since there is a good work from https://github.com/Nyr/openvpn-install that helps install in 1-click. I just add some extra notes when installing as well as connecting for future references. First, run the one-step installation command: When installing, just remember to choose “1) Current system resolvers” for the […]


openvpn

Install OpenVPN server CentOS 7

Today I will brief necessary steps for installing OpenVPN server CentOS 7. This will include custom server name and also rules for csf firewall which is widely used. The OpenVPN server name in this tutorial will be myvpnserver, associated domain will be myvpnserver.myserver.com, and server IP address is XXX.YYY.ZZZ.UUU . We […]


Install Chef server Lets Encrypt

Do not want to mention what Chef is, or what Let’s Encrypt is. This is just a short step-by-step tutorial to guide you how to install Chef server Lets Encrypt for the server SSL. Setup Let’s Encrypt First, install let’s encrypt to generate a standalone certificate before installing chef server: […]

pic-chef-logo

gitlab-logo

Migrate Gitlab to new server

When migrating gitlab to a new server, you might face much problems of in-compatible versions, different OS (so different latest gitlab version), etc. The best way is to upgrade the old server to the same latest gitlab version, then backup gitlab, and then transfer the backup to the new server, […]


Connect to Amazon Cloud Drive from Debian Command line

We are going to connect to Amazon Cloud Drive from Debian Command line to utilize the benefit of unlimited cloud storage. Even there are various tutorials out there, finding a really “workable” one is not a trivial work. I summarize some steps here for reference. First, we need to install […]

amazon-cloud-drive

Real IP from Amazon Load Balancers

If you are running an EC2 instance behind an Amazon Elastic Load Balancer (ELB), you’ll find that the visitors’ IPs are hided behind the load balancer, so your application cannot get the clients’ real IPs. In fact, visitors’ original IPs are passed via a X-Forwarded-For information in the header (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/x-forwarded-headers.html), […]


PHP CacheTool – A Cache Management CLI

If you are dealing with various cache, you might find that a CLI tools for viewing status and doing management works is a great idea. You will no longer need to restart your PHP-FPM pool for opcode/apc cache invalidation. You also do not need to write a stupid PHP file […]


apache-logo

Some small tweaks for apache

I have not worked on apache for a long time (if you don’t know, I am a big fan of NginX with PHP-FPM instead of surviving with apache :lol:), so in fact I do not have much experience on tweaking apache. Today when monitoring a server with an apache-based system, I […]


Gitlab SSL with Let’s Encrypt

Well, Let’s Encrypt went live from Dec 2015, so why don’t we utilize it for free SSL certificates? Since it only valid for 3 months, we can simply run the script monthly to check and renew the certificate. Detail steps for configuring Gitlab SSL with Let’s Encrypt are as follows: First, […]

letsencrypt-logo-large

PHP Stack with Percona XtraDB Cluster on CentOS 7

Recently I often faced problems with MariaDB Galera Cluster, so I decided to give Percona XtraDB Cluster a try. I write here necessary steps to setup a PHP Stack with Percona XtraDB Cluster on CentOS 7. To avoid problems, be sure that SELinux is not enabled in the server. Guide can be found […]