WooCommerce and W3C Total Cache settings

WooCommerce extra configuration steps

InstallingDOMDocument

WooCommerce needs DOMDocument to create HTML emails

sudo apt-get install php-xml

Install Multibyte String

To display none-English characters you should install:

sudo apt-get install php7.0-mbstring

W3C Total Cache additional configuration steps

Enable 2 Apache modules

sudo a2enmod expires
sudo a2enmod headers
sudo service apache2 restart

Enable compression in php.ini

Do not zlib.output_compression if you are using W3C Total Cache.

sudo nano /etc/php/7.0/apache2/php.ini

Use “Ctrl”+”W” and search for zlib.output_compression and change the value from Off to On

zlib.output_compression = On

The directive zlib.output_compression_level is used to adjust the compression level. Set the value between 1 and 9. Choose 1 to get the least compression or 9 to get most. The default value is six which balances compression without degrading the servers performance.

zlib.output_compression_level = 6

Finally, restart Apache, so the changes take effect.

sudo service apache2 restart