How To Install MySQL on CentOS 7

In a web browser, visit: https://dev.mysql.com/downloads/repo/yum/   Locate the desired version, and replace it in the below command as an example wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm   install the RPM rpm -ivh mysql57-community-release-el7-9.noarch.rpm   now u can use yum to install mysql server… Continue Reading

PHP create 1 pixel image

create transparent image PHP easily, use the below code : for PNG image : header(‘Content-Type: image/png’); echo base64_decode(‘iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=’); for GIF image : header(‘Content-Type: image/gif’); echo base64_decode(‘R0lGODlhAQABAJAAAP8AAAAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==’);

upgrade from varnish 3 to varnish 4

refere to the below table to know what exactly to change on your default VCL file. V3 V4 {bereq,req}.backend.healthy std.healthy({bereq.backend,req.backend_hint}) {bereq,req}.request {bereq,req}.method bereq.* in vcl_pass and vcl_miss req.* {beresp,obj,resp}.response {beresp,obj,resp}.reason beresp.storage beresp.storage_hint {client,server}.port std.port({client,server}.ip) error code response return (synth(code, response))… Continue Reading