<?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>Networking Blog</title>
	<atom:link href="http://blog.webdir.bg/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.webdir.bg</link>
	<description>Networking - Cisco, Juniper, Linux</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:09:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ubuntu xcache howto</title>
		<link>http://blog.webdir.bg/ubuntu-xcache-howto/</link>
		<comments>http://blog.webdir.bg/ubuntu-xcache-howto/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 08:21:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xcache]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=578</guid>
		<description><![CDATA[How to install xache on Ubuntu. XCache is a fast, stable  PHP opcode cacher that has been tested and is now running on production servers under high load.]]></description>
			<content:encoded><![CDATA[<p>XCache is a fast, stable <a href="http://www.php.net/" rel="nofollow"> </a>PHP opcode cacher that has been tested and is now running on production servers under high load. Install php5-xcache:</p>
<pre>apt-get install php5-xcache</pre>
<p>Configuration file is /etc/php5/conf.d/xcache.ini . Some of major config options:</p>
<pre>extension=/usr/lib/php5/20090626/xcache.so - load xcache
xcache.admin.enable_auth = On - enable auth of admin page
xcache.admin.user = "UserName" - username
xcache.admin.pass = "ca34ew" - password, must be md5(password)
xcache.size = 256M - memory used for xcache
xcache.coverager = On - to enamble coverage
xcache.coveragedump_directory = /tmp</pre>
<p>To enable xcache admin page, create file /etc/apache2/conf.d/xcache.conf</p>
<p><span id="more-578"></span></p>
<pre class="brush: plain; title: ; notranslate">
Alias /xcache-admin /usr/share/xcache/admin/

        Options Indexes FollowSymLinks
        DirectoryIndex index.php
        AllowOverride all
        Order allow,deny
        Allow from xxx.xxx.xxx.xxx
</pre>
<p>Restart apache, and go to http://mydomain.com/xcache-admin<br />
<a class="thickbox" href="http://blog.webdir.bg/wp-content/uploads/2011/10/xcacheadmin.png"><img class="alignleft size-medium wp-image-584" title="xcacheadmin" src="http://blog.webdir.bg/wp-content/uploads/2011/10/xcacheadmin-300x130.png" alt="" width="300" height="130" /></a></p>
<div style="clear:both"></div>
<p>To enable coverager, create file /etc/apache2/conf.d/xcache-cover.conf:</p>
<pre class="brush: plain; title: ; notranslate">
Alias /xcache-cover /usr/share/xcache/coverager/

        Options Indexes FollowSymLinks
        DirectoryIndex index.php
        AllowOverride all
        Order allow,deny
        Allow from xxx.xxx.xxx.xxx
</pre>
<p>Restart apache, and go to http://mydomain.com/xache-cover</p>
<p><a class="thickbox" href="http://blog.webdir.bg/wp-content/uploads/2011/10/xcachecover.png"><img class="alignleft size-medium wp-image-593" title="xcachecover" src="http://blog.webdir.bg/wp-content/uploads/2011/10/xcachecover-300x122.png" alt="" width="300" height="122" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/ubuntu-xcache-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery refresh iframe</title>
		<link>http://blog.webdir.bg/jquery-refresh-iframe/</link>
		<comments>http://blog.webdir.bg/jquery-refresh-iframe/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 08:37:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery/AJAX]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[refresh iframe]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=538</guid>
		<description><![CDATA[Refreshing iframe using jQuery. // Source of iframe iframe-time.php : html Demo:]]></description>
			<content:encoded><![CDATA[<p>Refreshing iframe using jQuery.<br />
<script type="text/javascript">// <![CDATA[
 setInterval(function() { loadFrame(); }, 1000); function loadFrame() {     var frames = jQuery('.frameToRefresh');     var link = 'http://blog.webdir.bg/demo/iframe-time.php';     frames.each(function(index) {     	jQuery(this).slideDown('slow');     	jQuery(this).attr( 'src', link) ;     }); }
// ]]&gt;</script></p>
<pre class="brush: plain; title: ; notranslate">
setInterval(function() { loadFrame(); }, 1000);
function loadFrame() {
    var frames = jQuery('._frameToRefresh');
    var link = 'http://blog.webdir.bg/demo/iframe-time.php';
    frames.each(function(index) {
    	jQuery(this).slideDown('slow');
    	jQuery(this).attr( 'src', link) ;
    });
}
</pre>
<p><span id="more-538"></span><br />
Source of iframe iframe-time.php :</p>
<pre class="brush: plain; title: ; notranslate">
&lt;!--?php $today = date(&quot;D M j G:i:s&quot;); echo $today; ?--&gt;
</pre>
<p>html</p>
<pre class="brush: plain; title: ; notranslate">&lt;/pre&gt;
&lt;iframe style=&quot;display: none;&quot; width=&quot;320&quot; height=&quot;240&quot;&gt;&lt;/iframe&gt;
&lt;pre&gt;
</pre>
<p>Demo:<br />
<iframe style="display: none; width: 250px; height: 50px; border: 0;" width="320" height="240"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/jquery-refresh-iframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP variables in external js file</title>
		<link>http://blog.webdir.bg/php-variables-in-external-js-file/</link>
		<comments>http://blog.webdir.bg/php-variables-in-external-js-file/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 07:54:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery/AJAX]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=527</guid>
		<description><![CDATA[Apache config: (you need to set AllowOverride all) Create .htaccess file in document root ( /var/www/.htaccess ) and set AddHandler application/x-httpd-php js]]></description>
			<content:encoded><![CDATA[<p>Apache config: (you need to set <strong>AllowOverride all</strong>)</p>
<pre class="brush: plain; title: ; notranslate">
&lt;Directory /var/www/&gt;
                Options FollowSymLinks MultiViews
                &lt;strong&gt;AllowOverride all&lt;/strong&gt;
                Order allow,deny
                Allow from all
&lt;/Directory&gt;
</pre>
<p>Create .htaccess file in document root ( /var/www/.htaccess ) and set</p>
<pre>
AddHandler application/x-httpd-php js
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/php-variables-in-external-js-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Leverage browser caching</title>
		<link>http://blog.webdir.bg/how-to-leverage-browser-caching/</link>
		<comments>http://blog.webdir.bg/how-to-leverage-browser-caching/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 10:45:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=517</guid>
		<description><![CDATA[If you are using http://pagespeed.googlelabs.com to view the speed your site, some of most common suggestions for improvement is Leverage browser caching To set up caching you need to edit apache configuration (This code uses the FilesMatch directive and the Header directive to add Cache-Control Headers to certain files):]]></description>
			<content:encoded><![CDATA[<p>If you are using <a href="http://pagespeed.googlelabs.com/">http://pagespeed.googlelabs.com</a> to view the speed your site, some of most common suggestions for improvement is <strong>Leverage browser caching</strong></p>
<p>To set up caching you need to edit apache configuration (This code uses the FilesMatch directive and the Header directive to add Cache-Control Headers to certain files):</p>
<pre class="brush: plain; title: ; notranslate">
                &lt;IfModule mod_expires.c&gt;
                        ExpiresActive On
                        &lt;FilesMatch &quot;\.(js|jpg|jpeg|png|gif|swf|css|js)$&quot;&gt;
                                ExpiresDefault &quot;access plus 7 days&quot;
                        &lt;/FilesMatch&gt;
                &lt;/IfModule&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/how-to-leverage-browser-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Juniper EX4500 and Ubuntu link aggregation (bonding, 802.3ad)</title>
		<link>http://blog.webdir.bg/juniper-ex4500-and-ubuntu-link-aggregation-bonding-802-3ad/</link>
		<comments>http://blog.webdir.bg/juniper-ex4500-and-ubuntu-link-aggregation-bonding-802-3ad/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 13:20:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Juniper]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[802.3ad]]></category>
		<category><![CDATA[bonding]]></category>
		<category><![CDATA[link aggregation]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=475</guid>
		<description><![CDATA[Ubuntu 10.04 configuration: Install ifenslave — Attach and detach slave network devices to a bonding device. apt-get install ifenslave Ubuntu 10.04 introduce a new way of configuring bond interface ( you don&#8217;t need to use /etc/modprobe.d/aliases.conf ). Open and edit /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback auto bond0 iface [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 10.04 configuration:</p>
<p>Install ifenslave — Attach and detach slave network devices to a bonding device.</p>
<pre>apt-get install  ifenslave</pre>
<p>Ubuntu 10.04 introduce a new way of configuring bond interface ( you don&#8217;t need to use /etc/modprobe.d/aliases.conf ).<br />
Open and edit /etc/network/interfaces</p>
<pre># The loopback network interface
auto lo
iface lo inet loopback

auto bond0
iface bond0 inet static
        address 192.168.200.5
        netmask 255.255.255.0
        network 192.168.200.0
        broadcast 192.168.200.255
        bond-slaves eth0 eth1
        bond_mode 802.3ad
        bond_miimon 100
        bond_xmit_hash_policy 1
        bond_lacp_rate 1</pre>
<p><strong>bond-mode 802.3ad </strong>- use 802.3ad protocol. You can read supported modes in kernel&#8217;s documentation <a title="bonding.txt" href="http://www.google.com/#sclient=psy&amp;hl=en&amp;qscrl=1&amp;source=hp&amp;q=linux+bonding.txt&amp;aq=f&amp;aqi=g1&amp;aql=f&amp;oq=&amp;pbx=1&amp;bav=on.2,or.r_gc.r_pw.&amp;fp=6782d3fc39a1f682&amp;biw=1366&amp;bih=653" target="_blank">bonding.txt</a><br />
<strong>bond_xmit_hash_policy 1 &#8211; </strong>default value is 0</p>
<ul>
<li>0 (layer 2) - Uses XOR of hardware MAC addresses to generate the hash.</li>
<li>1 (layer3+4) - This policy uses upper layer protocol information, when available, to generate the hash. This allows for traffic to a particular network peer to span multiple slaves, although a<strong> single connection will not span multiple slaves</strong>.</li>
</ul>
<p><strong>bond_lacp_rate 1 </strong>- default 0</p>
<ul>
<li>0 LACP  rate is slow</li>
<li>1 LACP rate is fast<span id="more-475"></span></li>
</ul>
<p>To view current configuration use : &#8220;cat /proc/net/bonding/bond0&#8243;</p>
<pre>Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

802.3ad info
LACP rate: fast
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
        Aggregator ID: 1
        Number of ports: 2
        Actor Key: 17
        Partner Key: 2
        Partner Mac Address: 5c:5e:ab:63:a5:80

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:15:17:41:7b:78
Aggregator ID: 1

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:15:17:41:7b:79
Aggregator ID: 1</pre>
<p>That&#8217;s all &#8211; but after restarting the server bond interface will not bring up, and you will see in /var/log/messages:</p>
<pre>bonding: bond0: Warning: Found an uninitialized port</pre>
<p>Don&#8217;t worry: open and edit /etc/rc.local and put</p>
<pre>#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.

/etc/init.d/networking restart</pre>
<p>This bug I notice only when you upgrade Ubuntu from 9.xx to 10.04 LTS ( a new installation of Ubuntu 10.04 &#8211; no problems )</p>
<p>Juniper EX4500 configuration:<br />
Enter configuration menu:</p>
<pre>edit chassis
set aggregated-devices ethernet device-count 2</pre>
<p>This will define the number of aggregated device in switch ( in this case w&#8217;ll create ae0 and ae1 )<br />
Aggregated interfaces will be ge-0/0/4 and ge-0/0/5</p>
<pre>edit interfaces
set ge-0/0/4 ether-options 802.3ad ae0
set ge-0/0/5 ether-options 802.3ad ae0
set ae0 aggregated-ether-options minimum-links 1 link-speed 1g lacp passive periodic fast
set ae0 unit 0 family ethernet-switching port-mode trunk vlan members [ 500 ]</pre>
<p>To view stats:</p>
<pre>root@bravo# run show lacp interfaces ae0
Aggregated interface: ae0
    LACP state:       Role   Exp   Def  Dist  Col  Syn  Aggr  Timeout  Activity
      ge-0/0/4       Actor    No    No   Yes  Yes  Yes   Yes     Fast   Passive
      ge-0/0/4     Partner    No    No   Yes  Yes  Yes   Yes     Fast    Active
      ge-0/0/5       Actor    No    No   Yes  Yes  Yes   Yes     Fast   Passive
      ge-0/0/5     Partner    No    No   Yes  Yes  Yes   Yes     Fast    Active
    LACP protocol:        Receive State  Transmit State          Mux State
      ge-0/0/4                  Current   Fast periodic Collecting distributing
      ge-0/0/5                  Current   Fast periodic Collecting distributing
root@bravo# run show lacp statistics interfaces ae0
Aggregated interface: ae0
    LACP Statistics:       LACP Rx     LACP Tx   Unknown Rx   Illegal Rx
      ge-0/0/4              387051      275144            0            0
      ge-0/0/5              382991      274966            0            0</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/juniper-ex4500-and-ubuntu-link-aggregation-bonding-802-3ad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Juniper EX4500 tagged and access port</title>
		<link>http://blog.webdir.bg/juniper-ex4500-tagged-and-access-port/</link>
		<comments>http://blog.webdir.bg/juniper-ex4500-tagged-and-access-port/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 12:03:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Juniper]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=460</guid>
		<description><![CDATA[You can use a port on EX4500 as access ( using native vlan ) and trunk. For our example on a linux box we have a tagged traffic (vlan 100) and untagged traffic ( vlan 10 ): EX4500 configuration: root@bravo# set interfaces ge-0/0/8 unit 0 family ethernet-switching port-mode tagged-access root@bravo# set interfaces ge-0/0/8 unit 0 [...]]]></description>
			<content:encoded><![CDATA[<p>You can use a port on EX4500 as access ( using native vlan ) and trunk.<br />
For our example on a linux box we have a tagged traffic (vlan 100) and untagged traffic ( vlan 10 ):<br />
EX4500 configuration:</p>
<pre>
root@bravo# set interfaces ge-0/0/8 unit 0 family ethernet-switching port-mode tagged-access
root@bravo# set interfaces ge-0/0/8 unit 0 family ethernet-switching native-vlan-id 10
root@bravo# set interfaces ge-0/0/8 unit 0 family ethernet-switching vlan members 100
root@bravo# run show configuration interfaces ge-0/0/8
unit 0 {
    family ethernet-switching {
        port-mode tagged-access;
        vlan {
            members 100;
        }
        native-vlan-id 10;
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/juniper-ex4500-tagged-and-access-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL match white spaces</title>
		<link>http://blog.webdir.bg/mysql-match-white-spaces/</link>
		<comments>http://blog.webdir.bg/mysql-match-white-spaces/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 15:42:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=449</guid>
		<description><![CDATA[Read how to match white spaces in MySQL with REGEXP in table field.]]></description>
			<content:encoded><![CDATA[<p>To match a white space in MySQL table field use REGEXP.</p>
<pre>SELECT username FROM mytable WHERE username REGEXP '[[:space:]]'</pre>
<p>the result will be</p>
<pre>+--------------+
| username     |
+--------------+
| user 474     |
| user 113     |
| user 22      |
+--------------+</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/mysql-match-white-spaces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install PHP RRDtool &#8211; Ubuntu 9.10</title>
		<link>http://blog.webdir.bg/install-php-rrdtool-ubuntu/</link>
		<comments>http://blog.webdir.bg/install-php-rrdtool-ubuntu/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 15:15:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=435</guid>
		<description><![CDATA[This howto is installed and tested on: Distributor ID: Ubuntu Description: Ubuntu 9.10 Release: 9.10 Codename: karmic ******************************************************* PHP 5.2.10-2ubuntu6.7 with Suhosin-Patch 0.9.7 (cli) (built: Jan 12 2011 17:56:07) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies ******************************************************* Linux sns 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 [...]]]></description>
			<content:encoded><![CDATA[<p>This howto is installed and tested on:</p>
<pre>Distributor ID: Ubuntu
Description:    Ubuntu 9.10
Release:        9.10
Codename:       karmic
*******************************************************
PHP 5.2.10-2ubuntu6.7 with Suhosin-Patch 0.9.7 (cli) (built: Jan 12 2011 17:56:07)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
*******************************************************
Linux sns 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64 GNU/Linux</pre>
<p>P.S ( this howto is tested and working also on Ubuntu 10.04 )<br />
<strong>STEP 1 </strong> : install the following packages:</p>
<pre>apt-get install rrdtool librrd-dev php5-dev gcc binutils</pre>
<p><strong>STEP2</strong>: Go to <a title="http://oss.oetiker.ch/rrdtool/pub/contrib/" href="http://oss.oetiker.ch/rrdtool/pub/contrib/" target="_blank">http://oss.oetiker.ch/rrdtool/pub/contrib/</a> to get the PHP rrdtool source :<a href="http://oss.oetiker.ch/rrdtool/pub/contrib/php_rrdtool.tar.gz" target="_blank"> php_rrdtool.tar.gz</a><span id="more-435"></span></p>
<p><strong>STEP 3: </strong>Extract the php_rrdtool.tar.gz  file into php extensions directory(/usr/include/php5/ext/). Please use the following commands :</p>
<pre>tar zxvf php_rrdtool.tar.gz
mv rrdtool /usr/include/php5/ext/</pre>
<p><strong>STEP 4 :</strong> Generate configure files in order to build the PHP rrdtool. In rrdtool directory, run <strong>phpize &#8211; prepare a PHP extension for compiling</strong>. Please follow the below commands:</p>
<pre>cd /usr/include/php5/ext/rrdtool
phpize
./configure --with-php-config=/usr/bin/php-config --with-rrdtool=/usr/
make
make test
Build complete.
make install
=====================================================================
PHP         : /usr/bin/php
PHP_SAPI    : cli
PHP_VERSION : 5.3.2-1ubuntu4.7
ZEND_VERSION: 2.3.0
PHP_OS      : Linux - Linux sns 2.6.35-25-server #44~lucid1-Ubuntu SMP Tue Jan 25 19:34:09 UTC 2011 x86_64
INI actual  : /usr/include/php5/ext/rrdtool/tmp-php.ini
More .INIs  :
CWD         : /usr/include/php5/ext/rrdtool
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2011-03-31 11:44:13
=====================================================================</pre>
<p>Note : <strong>Make sure you have librrd.so file in library. If you don’t have that file, you can do a symbol link as bellow:</strong></p>
<pre>ln -s /usr/lib/librrd.so.2 /usr/lib/librrd.so</pre>
<p><strong>STEP 5</strong> : Build the PHP rrdtool. Just use make and make install commands.<br />
<strong> STEP 6</strong> : Configure rrdtool.so in php configuration file (if you&#8217;ll use cli php rrdtool extension in /etc/php5/cli/php.ini).</p>
<pre>joe /etc/php5/apache2/php.ini
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
extension=rrdtool.so</pre>
<p><strong>STEP 7</strong>: restart apache:</p>
<pre>/etc/init.d/apache2 restart</pre>
<p><strong>STEP 8</strong>: Create in your DocumentRoot Directory info.php:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php echo phpinfo(); ?</pre>
<p>If everything is ok you will see :</p>
<p><img class="alignleft size-full wp-image-438" title="php_rrdtool" src="http://blog.webdir.bg/wp-content/uploads/2011/03/php_rrdtool.png" alt="" width="623" height="179" /></p>
<p>This tutorial is based on: <a href="http://www.samtseng.liho.tw/~samtz/blog/2009/03/11/howto-build-the-php-rrdtool-extension/" target="_blank">http://www.samtseng.liho.tw/~samtz/blog/2009/03/11/howto-build-the-php-rrdtool-extension/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/install-php-rrdtool-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Clear Windows Samba Login Password</title>
		<link>http://blog.webdir.bg/clear-windows-samba-login-password/</link>
		<comments>http://blog.webdir.bg/clear-windows-samba-login-password/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 11:45:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=430</guid>
		<description><![CDATA[How to clear windows share login cache. Clear Windows login password.]]></description>
			<content:encoded><![CDATA[<p>If you connect for example on Linux Samba server, for example \\192.168.2.1, and use for first shared folder one user and pass, and after that you try to login to second folder with another user and pass, Windows can&#8217;t login. The only way to login ( I found ) is to delete share, to clear window&#8217;s share cache. Open cmd, and type the following command:</p>
<pre>
net use /delete \\192.168.2.1
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/clear-windows-samba-login-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Huawei S2300/3300 default BootROM password</title>
		<link>http://blog.webdir.bg/huawei-s23003300-default-bootrom-password/</link>
		<comments>http://blog.webdir.bg/huawei-s23003300-default-bootrom-password/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 09:58:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Huawei]]></category>

		<guid isPermaLink="false">http://blog.webdir.bg/?p=425</guid>
		<description><![CDATA[Huawei S2300/3300 default BootROM password]]></description>
			<content:encoded><![CDATA[<p>Before entering the BootROM menu, you need to restart the S2300. During the restart of the S2300, the following information is displayed:</p>
<pre>Press Ctrl+B to enter BOOTROM menu... 1</pre>
<p>Press Ctrl+B within one second, and then enter the password. The default password is <strong>huawei</strong> or <strong>www.huawei.com </strong>. Then the advanced BootROM menu is displayed. The following information is displayed:<br />
BOOTROM  MENU</p>
<p>1. Boot with default mode<br />
2. Enter serial submenu<br />
3. Enter startup submenu<br />
4. Enter ethernet submenu<br />
5. Enter filesystem submenu<br />
6. Modify BOOTROM password<br />
7. Reboot</p>
<p>Enter your choice(1-7):</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webdir.bg/huawei-s23003300-default-bootrom-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

