How To Set Up Apache Virtual Hosts on CentOS 7

install apache yum -y install httpd Create the Directory Structure mkdir -p /var/www/example.com/public_html mkdir -p /var/www/example2.com/public_html Grant Permissions chown -R $USER:$USER /var/www/example.com/public_html chown -R $USER:$USER /var/www/example2.com/public_htm   ensure that read access is permitted to the general web directory chmod -R… Continue Reading

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

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