Enable Static External IP in Google Cloud

By default when you create a Compute Engine virtual machine in Google Cloud, you get public IP address. This IP address changes when you ever shutdown down your instance. To avoid IP getting changed, you need to reserve the IP address to do this, you need to change type of IP address from Ephemeral to […]

Read More…

rancher

Rancher is an open source container management platform. https://rancher.com To install rancher, you need to install docker. Once you have docker installed and running, run

If you have port 80 and 443 already in use, run following

Now you will be able to access your Rancher installation at http://your-server-ip:80 or http://your-server-ip:8080 docker […]

Read More…

Configure Munin Node

To install munin node on Ubuntu/Debian, run

To configure, edit file

Find

Below this line, you need to add IP of your Munin Master. You need to convert IP to regular expression format before adding. For example, if your IP is 88.212.32.35, you need to add

If you want to allow […]

Read More…

netdata

Install netdata on ArchLinux Disable Netdata Email Notification To install netdata, run

Once installed, you will be able to see servers stats at http://your-ip:19999 Stop/start/restart netdata

[…]

Read More…

Installing kubernetes master on Ubuntu 16.04

To install master on Ubuntu 16.04, lets start by installing docker.

Now install kubeadm

You can create kubernetes master by running kubeadmin init command.

[…]

Read More…

htaccess

Redirect OLD site to NEW using htaccess Limit Access Using htaccess Apache Limit access to a url Disable PHP on a folder How to protect .git folder using htaccess Redirect site from www to non-www Password Protect Site using htaccess Redirect domain to SSL (HTTPS)

Or

Redirect a Page to another

You […]

Read More…

Letsencrypt

Install letsencrypt

OR

Install SSL certificate on Apache

On Nginx

This will stop web server. Generate SSL, then start web server. Getting SSL with out web server Domain should be pointed to the server IP and IP should be public to generate SSL. Run following command.

Auto Renew SSL Certificate […]

Read More…

sed

sed can be used to replace text in a file.

g = Global, replace everything in a file. s = substitute text -i = update the file. Delete lines matching string To delete lines having a string and print result.

To update the file, use -i option

[…]

Read More…

VestaCP Free Hosting Control Panel

VestaCP Free Hosting Control Panel

Reset VestaCP admin password MySQL root password in VestaCP Change Server Hostname in VestaCP VestaCP SSL for mail server VestaCP redirect webmail to HTTPS VestaCP Update Install PHP 7 on CentOS VestaCP VestaCP disable Backups You can login to VestaCP at

phpMyAdmin available at http://YOUR-IP-ADDR/phpmyadmin/ You can see phpMyAdmin Nginx config at /etc/nginx/conf.d/phpmyadmin.inc Web […]

Read More…

Enable Zend OPcache in PHP

Zend OPcache in phpinfo

To enable Zend OPCache in PHP, edit php.ini add following to end of the file

Now you may need to adjust some settings, in php.ini uncomment following, change values as needed.

Verify it with

Restart web server. If you using php-fpm or fcgi, you need to restart the process. phpinfo() will show […]

Read More…