Skip to content

Instantly share code, notes, and snippets.

https://dzone.com/articles/how-to-configure-varnish-in-apache-with-magento-2
1) Install Varnish on Server
Connect your server using putty or terminal and run below command to install varnish
sudo apt-get install varnish
Once you install varnish you can check installed varnish version by running below command
varnishd -V
2) Configure Varnish in Magento
#http://www.hifi-forum.de/viewthread-54-17564.html
#folgenden Befehle sollten eine Übersicht der Interfaces liefern, die 96 bzw. 192kHz und 24 bzw. 32bit Samplingrate und -tiefe unterstützen:
egrep -R '(192|96)000' /proc/asound/card[0-9];
egrep -R 'S(24|32)' /proc/asound/card[0-9];
#install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash;
#logout/login
#install node 12
nvm install 12;
# set new node version as default
nvm alias deafult 12;
wp core download --locale=de_DE;
wp core install --url=docker.local --title=WP-Start --admin_user=admin --admin_password=wordpress --admin_email=mail --locale=de_DE;
wp plugin install woocommerce --activate;
#create wp-config
wp config create --dbname= --dbuser= --dbhost= --dbprefix=
https://github.com/Pixep/crowlet
https://github.com/Pixep/crowlet
https://webkul.com/blog/how-to-show-additional-data-on-mini-cart-in-magento-2/
#check if enabled
systemctl is-enabled openvpn
#disable
systemctl disable openvpn
#enable
systemctl enable openvpn
#convert jpg to webp in folder
find . -name '*.jpg' -execdir mogrify -quality 80 -format webp {} \;