Skip to content

Instantly share code, notes, and snippets.

@LinuxIntellect
Last active January 26, 2022 17:00
Show Gist options
  • Save LinuxIntellect/85f42c1c8127352e6265e7d89bf824ed to your computer and use it in GitHub Desktop.
Save LinuxIntellect/85f42c1c8127352e6265e7d89bf824ed to your computer and use it in GitHub Desktop.
I will do install Varnish: Open Source http Cache Server on Linux
# If you need to install Varnish: Open Source http Cache Server on your ubuntu then contact with me:
# Skype: zobaer.ahmed5
# BiP: +8801818264577
# Whatsapp: +8801818 264577
# Telegram: +8801818 264577
# Viber: +8801818264577
# Signal: +8801818264577
# Email: linuxintellect@gmail.com
# https://www.linkedin.com/in/linuxintellect
# Youtube Video:
############################################################################################################################
## Prerequisites ##
# Ubuntu 18.04 LTS
# Root privileges
# Step 1 - Install Apache Web server
# To start, install the Apache web server, Update the Ubuntu repository and then install Apache using the apt command.
sudo apt update -y
sudo apt-get upgrade -y
sudo apt install build-essential checkinstall
sudo apt install ubuntu-restricted-extras
sudo apt install software-properties-common
sudo apt upgrade -o APT::Get::Show-Upgraded=true
sudo apt-show-versions | grep upgradeable
sudo apt install apt-show-versions
sudo apt update -y
sudo apt-get upgrade -y
# After the installation is complete, start the Apache service and enable it to run automatically at system boot time using the following systemctl commands.
systemctl start apache2
systemctl enable apache2
# Next, to allow everyone access to the web server, we must allow HTTP and HTTPS on our firewall rule.
# By default, Ubuntu comes with a firewall package named UFW.
# Open new SSH, HTTP and HTTPS ports using the following UFW commands.
ufw allow ssh
ufw allow http
ufw allow https
# Now start the firewall service and enable it to launch automatically at system boot.
ufw enable
# If you want to test the Apache web server, you can use the netstat command and make sure apache is running under port 80.
netstat -plntu
# Or you can use the following curl command.
curl -I localhost:80
# Test using the curl command.
curl -I localhost:80
curl -I localhost:8080
# Make sure you get the HTTP header as shown below.
# And we still get Apache content.
# Check the varnish log using the 'varnishncsa' command.
varnishncsa
#varnish
#open sourcce
#http cache server
#open source caching
#http caching
#caching with linux
#http caching on ubuntu
#cache server
#open source caching
#opensource software
#linuxintellect
#varnish install on ubuntu
#varnish install on linux
#cache server install on ubnuntu
#cache server install on linux
#varnish install on ubuntu 20.04
#how to speed up apache with varnish
#how to install varnish
@LinuxIntellect
Copy link
Author

Screenshot from 2022-01-23 01-58-20
Screenshot from 2022-01-23 02-12-48
Screenshot from 2022-01-23 02-32-23
Screenshot from 2022-01-23 02-42-18
Screenshot from 2022-01-23 08-53-21
Screenshot from 2022-01-24 00-16-02
Varnish-1
Varnish-2

@LinuxIntellect
Copy link
Author

LinuxIntellect commented Jan 26, 2022

#varnish
#open sourcce
#http cache server
#open source caching
#http caching
#caching with linux
#http caching on ubuntu
#cache server
#open source caching
#opensource software
#linuxintellect
#varnish install on ubuntu
#varnish install on linux
#cache server install on ubnuntu
#cache server install on linux
#varnish install on ubuntu 20.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment