<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>23Systems &#187; Apache</title> <atom:link href="http://www.23systems.net/tag/apache/feed/" rel="self" type="application/rss+xml" /><link>http://www.23systems.net</link> <description>Custom website design and development</description> <lastBuildDate>Thu, 19 Jan 2012 07:50:06 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Speeding Up WordPress - Shorten load time for WordPress running on Apache and Linux using compression</title><link>http://www.23systems.net/2010/03/speeding-up-wordpress/</link> <comments>http://www.23systems.net/2010/03/speeding-up-wordpress/#comments</comments> <pubDate>Sat, 06 Mar 2010 21:53:21 +0000</pubDate> <dc:creator>Dan Zappone</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Tweaks]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[compression]]></category> <category><![CDATA[css]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[php]]></category><guid
isPermaLink="false">http://www.23systems.net/?p=673</guid> <description><![CDATA[Over the past week or so as part of the project I am working on I wanted to speed up a WordPress site that is being used as a CMS.  During this process I discovered a two methods (well three &#8230; <a
href="http://www.23systems.net/2010/03/speeding-up-wordpress/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Over the past week or so as part of the project I am working on I wanted to speed up a WordPress site that is being used as a CMS.  During this process I discovered a two methods (well three technically) that can be used to dramatically shorten the load time for content and speed up WordPress.  These tweaks will only work with Apache though they may work on a Windows version of Apache it has not been tested.  One method only requires editing your template files while the other requires that you are able to edit your <code>.htaccess</code> file.  The first two methods work by compressing data before sending it and the third uses plugins that do a variety of things to speed up WordPress.<br
/> <span
id="more-673"></span><br
/> [ad#Google 468x60-2010.03.12]<br
/> You should back up the files you are going to modify before making these changes.  It is also advised to backup your WordPress database if you are using method three.</p><h3>Method One: Speed up WordPress by adding compression via .htaccess</h3><p>This is my preferred and recommended method as it is a more comprehensive solutions and works either domain or server wide depending on your configuration.  This is also a more advance and difficult to implement method so if you do not understand what I am talking about you should probably skip this method.  The easiest place to add these directive are in the .htaccess fill though you can also add the directives to your vhosts.conf of your apache configuration.  Method one does not apply to Apache 1.x please do not try it unless you are using Apache2.</p><p>First you will need to enable both mod_deflate and mod_headers with Apache. This can be done in one of the following two methods.  Apache 2 uses mod_deflate which has some built in detection to determine whether and how to compress data for browsers.</p><p>You can enter the following commands on some systems including Debian and Ubuntu.</p><pre lang="bash">sudo a2enmod deflate
sudo a2enmod headers
sudo /etc/init.d/apache2 force-reload</pre><p>This will enable mod_deflate and mod_headers in the apache config and the the last command will reload the configuration.</p><p>You can also manually enable the mods by looking in your apache configuration files and locating where mod are configured (hint: look for lines similar to those below).  You can either ad the following two lines or uncomment them if they already exist.</p><pre lang="apache">LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so</pre><p>Again you will need to reload the apache configuration as above.</p><p>There are two option that for compressing outgoing content with apache2, compress specific content or compress all content except specified.  Choose one option only.</p><h4>Option 1: Compress specific content</h4><p>You can add type such as text/html, text/css, text/plain or even x-application/javascript.  See <a
title="Webmaster Toolkit - Mime Types" href="http://www.webmaster-toolkit.com/mime-types.shtml">Webmaster Toolkit Mime Types</a> for a simple but exhaustive list.</p><pre lang="apache">

      #-- compress content with type html, text, css and javascript
      AddOutputFilterByType DEFLATE text/html text/plain text/css x-application/javascript

        # correctly handle http requests that come from behind a proxy
        Header append Vary User-Agent</pre><h4>Option 2: Compress all content</h4><p>Manually excluding specified file types such as images, zip files, pdfs, or other files that already have some sort of compression on them.  In this case you exclude file by their extension using regular expressions.</p><pre lang="apache">
    # set filter mod_deflate (chooses gzip or deflate compression based on browser support) on all outgoing content
    SetOutputFilter DEFLATE
    # exclude content that is already compressed or does not compress well via file type
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|rar|zip)$ no-gzip

      # correctly handle http requests that come from behind a proxy
      Header append Vary User-Agent</pre><h4>Additional Apache2 Directives</h4><p>This directive should probably be added to properly handle old browsers that do not support compression.</p><pre lang="apache">
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html</pre><p>Additionally you can add the following directives for additional logging</p><pre lang="apache">
    DeflateFilterNote Input instream
    DeflateFilterNote Output outstream
    DeflateFilterNote Ratio ratio
    LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
    CustomLog logs/deflate.log deflate</pre><p>Note: that the client browser has to request compression via headers sent on request and IE 6/7 will only request compression on .html, but not on .txt nor .css. Mozilla/Firefox/Chrome/Safari can handle all three types.  I am not sure about Opera or IE 8.</p><p>You should now test your site using various browsers and you can also check to make sure your are sending compressed content using the <a
title="GIDZipTest Page" href="http://www.gidnetwork.com/tools/gzip-test.php">GIDZipTest</a> page.</p><h3>Method Two: Speed up WordPress by adding compression via PHP</h3><p>If you don&#8217;t have the ability to modify you apache configuration files or .htaccess you can still try to get some compression by adding a small snippet of PHP code to your template.  This may work with Apache 1.x bu tI have not tested it.</p><p>This method is very simple to implement.  Open your <code>header.php</code> in the theme you are using and add the following line to top of the file or just above the <code>&lt;DOCTYPE! </code>line.</p><p>That&#8217;s all.</p><p>Again you should test with various browser to make sure your site is working and you can use the <a
title="GIDZipTest Page" href="http://www.gidnetwork.com/tools/gzip-test.php">GIDZipTest</a> page to see if you page is being compressed.</p><h3>Method Three: Speed up WordPress using a plugin</h3><p>There are many plugins for WordPress that will combine, minify and compress your WordPress output.  I haven&#8217;t had much luck with any of them due to some quirks with this site but they may be the simplest way to save bandwidth and speed up WordPress.  I am not going to go into detail on how to use these plugins but I will merely list the most promising &#8211; those which other WordPress developers I know have used successfully to achieve that same results.</p><p><a
title="PHP Speedy" href="http://aciddrop.com/php-speedy/">PHP Speedy</a> - PHP Speedy can consolidate javascript and CSS and combining them all into two files, one for the javascript code and the other for CSS. It also minifies and compresses the combined files and caches them then removes all the javascript and CSS links in the &lt;head&gt; tag and serves the combined file from the cache to the readers.</p><p><a
title="W3 Total Cache" href="http://www.w3-edge.com/wordpress-plugins/w3-total-cache/" class="broken_link">W3 Total Cache</a> &#8211; Increases you site&#8217;s performance  by using a variety of techniques including file caching, database query caching, minifying/combining/compressing files, content delivery network (CDN) integration and more.</p><p><a
title="Webo Site SpeedUp" href="http://wordpress.org/extend/plugins/web-optimizer/" class="broken_link">Webo Site SpeedUp</a> &#8211; This is a commercial plugin but it also have a free version that does quite a bit to speed up your site.  It is without a doubt the most configurable and the free version allows you to do file caching, minifying/combining/compressing files and more.  The commercial version gives you total control over optimizations ranging from the .htaccess tweaks listed here to various file and database caching methods.</p> ]]></content:encoded> <wfw:commentRss>http://www.23systems.net/2010/03/speeding-up-wordpress/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Installing Alterative PHP Cache (APC) with Plesk on Ubuntu</title><link>http://www.23systems.net/2009/07/installing-alterative-php-cache-apc-with-plesk-on-ubuntu/</link> <comments>http://www.23systems.net/2009/07/installing-alterative-php-cache-apc-with-plesk-on-ubuntu/#comments</comments> <pubDate>Fri, 24 Jul 2009 21:02:19 +0000</pubDate> <dc:creator>Dan Zappone</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[development]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[alternative php cache]]></category> <category><![CDATA[apc]]></category> <category><![CDATA[plesk]]></category> <category><![CDATA[ubuntu]]></category><guid
isPermaLink="false">http://www.23systems.net/?p=368</guid> <description><![CDATA[Alternative PHP Cache (APC) is a PHP accelerator. PHP accelerators are extensions built to increase the performance and decrease the load time of software applications written using the PHP programming language. Most PHP accelerators work by caching the compiled bytecode &#8230; <a
href="http://www.23systems.net/2009/07/installing-alterative-php-cache-apc-with-plesk-on-ubuntu/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<div
id="attachment_399" class="wp-caption alignright" style="width: 160px"><a
href="http://www.parallels.com/products/plesk/"><img
class="size-thumbnail wp-image-399" title="Parallels Plesk" src="http://23systems.info/wp-content/uploads/2009/07/ParallelsLogo-150x31.png" alt="ParallelsLogo 150x31 Installing Alterative PHP Cache (APC) with Plesk on Ubuntu" width="150" height="31" /></a><p
class="wp-caption-text">Parallels Plesk</p></div><div
id="attachment_400" class="wp-caption alignright" style="width: 160px"><a
href="http://www.ubuntu.com/"><img
class="size-thumbnail wp-image-400" title="Ubuntu Linux" src="http://23systems.info/wp-content/uploads/2009/07/UbuntuLogo-150x39.png" alt="UbuntuLogo 150x39 Installing Alterative PHP Cache (APC) with Plesk on Ubuntu" width="150" height="39" /></a><p
class="wp-caption-text">Ubuntu Linux</p></div><p>Alternative PHP Cache (APC) is a PHP accelerator. PHP accelerators are extensions built to increase the performance and decrease the load time of software applications written using the PHP programming language. Most PHP accelerators work by caching the compiled bytecode of PHP scripts to avoid the overhead of parsing and compiling source code on each request. A PHP accelerator typically reduces server load and increases the speed of PHP code anywhere from 2-10 times.</p><p>APC is a free, open source accelerator that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory.<br
/> <span
id="more-368"></span><br
/> This should improve performance on both physical and virtual hosted machines. These instructions are aimed at Plesk users but should be easily adapted to any Debian based installation.</p><p>To install APC the first course of action you will need to take is enter the following command on your server:</p><pre lang="email">sudo apt-get install php-pear php5-dev gcc apache2-threaded-dev</pre><p>Once that has completed you should be able to run the following:</p><pre lang="email">pecl install apc</pre><p>You should see something like this:</p><pre lang="email">downloading APC-3.0.19.tgz ...
Starting to download APC-3.0.19.tgz (115,735 bytes)
.........................done: 115,735 bytes
47 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
1. Use apxs to set compile flags (if using APC with Apache)? : yes

1-1, 'all', 'abort', or Enter to continue:</pre><p>Hit Enter</p><p>Next you will need to enable the extension, use vi or nano or whatever your favorite text editor for Linux is.</p><pre lang="email">sudo vi /etc/php5/conf.d/apc.ini</pre><p>At the very minimum you will need to add the follow to the file:</p><pre lang="ini">extension=apc.so
apc.enabled=1
apc.shm_size=30</pre><p>There are numerous options for APC so please see the following <a
title="APC Configuration Options" href="http://us3.php.net/manual/en/apc.configuration.php">http://us3.php.net/manual/en/apc.configuration.php</a> for details</p><p>Copy the apc.php file to your website:</p><pre lang="email">sudo cp /usr/share/php/apc.php /var/www/vhosts/domain.tld/httpdocs</pre><p>Edit the apc.php file and change the default username and password. These must be changed inorder to login to the APC control panel.</p><pre lang="email">sudo vi /var/www/vhosts/domain.tld/httpdocs/apc.php</pre><pre lang="php">defaults('ADMIN_USERNAME','apc'); 			// Admin Username
defaults('ADMIN_PASSWORD','password');  	// Admin Password - CHANGE THIS TO ENABLE!!!</pre><p>After that issue the following command</p><pre lang="email">sudo /etc/init.d/apache2 restart</pre><p>You should be good to go and APC should be running. To verify got to yourdomain.tld/apc.php.</p> ]]></content:encoded> <wfw:commentRss>http://www.23systems.net/2009/07/installing-alterative-php-cache-apc-with-plesk-on-ubuntu/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>FLIR Installation - Installation instruction for Facelift Image Replacement for WordPress</title><link>http://www.23systems.net/plugins/facelift-image-replacement-flir/installation/</link> <comments>http://www.23systems.net/plugins/facelift-image-replacement-flir/installation/#comments</comments> <pubDate>Wed, 08 Jul 2009 19:18:25 +0000</pubDate> <dc:creator>Dan Zappone</dc:creator> <category><![CDATA[23Systems]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[design]]></category> <category><![CDATA[development]]></category> <category><![CDATA[facelift]]></category> <category><![CDATA[flir]]></category> <category><![CDATA[image]]></category> <category><![CDATA[installation]]></category> <category><![CDATA[ispconfig]]></category> <category><![CDATA[php]]></category> <category><![CDATA[plesk]]></category> <category><![CDATA[Plugins]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.23systems.net/?page_id=356</guid> <description><![CDATA[Requirements PHP and GD. Little testing has been done with different versions of PHP. If you have PHP 5 with GD enabled you shouldn&#8217;t have any problems. PHP 4 currently has some issues but should be resolved in the next &#8230; <a
href="http://www.23systems.net/plugins/facelift-image-replacement-flir/installation/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h3>Requirements</h3><p>PHP and GD. Little testing has been done with different versions of PHP. If you have PHP 5 with GD enabled you shouldn&#8217;t have any problems. PHP 4 currently has some issues but should be resolved in the next release of Facelift. A newer version of ImageMagick (6.3.7+) is required for the FancyFonts and QuickEffects plugins.</p><p>If GD is not installed on your server you will have to recompile PHP to include GD. If you are comfortable in WHM for cPanel, you can do that under the &#8220;Update Apache&#8221; tab (check the &#8220;GD&#8221; box). Check your settings carefully (especially the PHP version &#8211; cPanel may try to change it) before you hit build. Plesk and ISPConfig should have GD enabled by default.  If you are not comfortable doing it yourself, ask your hosting company to do it for you. (Thanks Steve!)</p><h3>Delete your existing version before installing this version</h3><ol><li>Extract to your <code>wp-content/plugins</code> directory.</li><li>Look in <code>wp-content/plugins/facelift-image-replacement/facelift</code></li><li>Set the <code>wp-content/plugins/facelift-image-replacement/facelift/config-flir.php</code> to be writable (<code>chmod a+w config-flir.php</code>).</li><li>Set the <code>wp-content/plugins/facelift-image-replacement/facelift/cache</code> to be writable (<code>chmod a+w /cache</code>).</li><li>Add fonts of your choice to <code>wp-content/plugins/facelift-image-replacement/facelift/fonts</code> folder.</li><li>Make sure you have the `wp_footer()` call in the footer of your template See `/wp-content/theme/default/footer.php` for example.</li><li>Activate plugin in WordPress admin panel</li><li>Set FLIR configuration in the admin panel &#8211; <code>config-flir.php</code> must be writable for changes to take effect.</li><li>Customize tags for FLIR on FLIR submenu under the Design menu</li></ol><h3>Notes<strong><br
/> </strong></h3><ul><li>QuickEffect Plugin is not implemented yet</li><li>SuperCache Plugin is not implemented yet</li><li>If using a version older than 0.7 completely delete any old verions before upgrading as this plugin is under rapid development</li><li>You cannot auto-upgrade from versions older 0.7.0</li><li>Text remains intact in source so search engines see your page as text!</li></ul> ]]></content:encoded> <wfw:commentRss>http://www.23systems.net/plugins/facelift-image-replacement-flir/installation/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 22/54 queries in 0.011 seconds using disk: basic
Object Caching 915/972 objects using disk: basic

Served from: www.23systems.net @ 2012-02-04 01:42:40 -->
