General Joomla Articles – CB-Net Tech snippets and my personal knowledgebase! Sun, 15 Jan 2012 23:16:12 +0000 en-GB hourly 1 https://wordpress.org/?v=6.7.1 /wp-content/uploads/2018/01/cropped-Adobe-Spark-8-32x32.png General Joomla Articles – CB-Net 32 32 Enabling Compression on a Apache (Hostmonster) Joomla Website /joomla-articles/general-joomla-articles/enabling-compression-on-a-apache-hostmonster-joomla-website/ /joomla-articles/general-joomla-articles/enabling-compression-on-a-apache-hostmonster-joomla-website/#respond Sun, 15 Jan 2012 23:16:12 +0000 http://wp.cb-net.co.uk/2012/01/15/enabling-compression-on-a-apache-hostmonster-joomla-website/ Enabling Compression on a Apache (Hostmonster) Joomla Website

Edit php.ini so that the following lines read as follws (you only need ot change the first one on a Hostmonster site):

{code lang:ini showtitle:false lines:false hidden:false}output_handler = ob_gzhandler
zlib.output_compression = Off
;zlib.output_compression_level = -1{/code}

Add the following to the htaccess:

{code lang:ini showtitle:false lines:false hidden:false}
<IfModule mod.gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(js|css|html|php)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

AddEncoding gzip .gz

<Files *.css.gz>
ForceType text/css
Header set Content-Encoding: gzip
</Files>

<Files *.js.gz>
ForceType text/javascript
Header set Content-Encoding: gzip
</Files>{/code}

Confirm compression is working using the following website: http://www.gidnetwork.com/tools/gzip-test.php

]]>
/joomla-articles/general-joomla-articles/enabling-compression-on-a-apache-hostmonster-joomla-website/feed/ 0
Joomla : Improve Site Performance /joomla-articles/general-joomla-articles/joomla-improve-site-performance/ /joomla-articles/general-joomla-articles/joomla-improve-site-performance/#respond Sun, 15 Nov 2009 18:46:21 +0000 http://wp.cb-net.co.uk/2009/11/15/joomla-improve-site-performance/ Joomla : Improve Site Performance

1) Enable Joomla Site Caching

Open the Joomla Administrator, select the Site menu, then Global Configuration, then System. I’ve configured caching with a 15 minute cache life.

For sites with data which changes infrequently, use a higher time.

2) Enable Apache PHP/HTML compression

Edit the .htaccess file in the root of your Joomla Website, modify the IfModule mod_php4.c section to include the line ‘php_flag zlib.output_compression on’ – for example:

php_value max_execution_time      120
php_flag zlib.output_compression on

]]>
/joomla-articles/general-joomla-articles/joomla-improve-site-performance/feed/ 0