<?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>Linux Windows System Administrator Help</title>
	<atom:link href="http://linuxwindowsmaster.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxwindowsmaster.com</link>
	<description></description>
	<lastBuildDate>Fri, 23 Oct 2009 19:41:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to fix HTTP Error on Wordpress 2.6 Flash Uploader</title>
		<link>http://linuxwindowsmaster.com/http-error-on-wordpress-flash-uploader/</link>
		<comments>http://linuxwindowsmaster.com/http-error-on-wordpress-flash-uploader/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 01:24:31 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Flash Uploader]]></category>
		<category><![CDATA[HTTP Error]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=312</guid>
		<description><![CDATA[
Whenever you are trying to upload an image using the flash uploader in Wordpress   and received a “HTTP error”? and uploading images status stuck in crunching ……..
 Here solutions::
 
The problem has something to do with mod_security,  which is basically a web application firewall that protects your website from a range of [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Georgia&quot;,&quot;serif&quot;;">Whenever you are trying to upload an image using the flash uploader in Wordpress <span> </span><span> </span>and received a “HTTP error”? and uploading images status stuck in crunching ……..</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Georgia&quot;,&quot;serif&quot;;"><span> </span><strong>Here solutions::</strong></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Georgia&quot;,&quot;serif&quot;;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Georgia&quot;,&quot;serif&quot;;">The problem has something to do with mod_security, <span> </span>which is basically a web application firewall that protects your website from a range of attacks. So you shouldn’t turn off this module as it protects your site from such <span> </span>malicious attack , You can add a special rule in .htaccess file which can be found in the root folder of your Wordpress installation<span> </span>to get work <span> </span>the flash uploader.</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Georgia&quot;,&quot;serif&quot;;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Georgia&quot;,&quot;serif&quot;;">Open the <strong><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;;">.htaccess</span></strong> file in your website document root and add the following lines:</span></p>
<ul>
<li><span style="font-size: 10pt; font-family: &quot;Georgia&quot;,&quot;serif&quot;;"> <strong>For Apache 1.X<br />
</strong></p>
<pre>&lt;IfModule mod_security.c&gt;
&lt;Files async-upload.php&gt;
SecFilterEngine Off
SecFilterScanPOST Off
&lt;/Files&gt;
&lt;/IfModule&gt;</pre>
<p></span></li>
<li><span style="font-size: 10pt; font-family: &quot;Georgia&quot;,&quot;serif&quot;;"><strong>For Apache 2.X<br />
</strong></p>
<pre>&lt;IfModule mod_security2.c&gt;
&lt;Files async-upload.php&gt;
SecRuleEngine Off
SecAuditEngine Off
&lt;/Files&gt;
&lt;/IfModule&gt;</pre>
<p></span></li>
</ul>
<p><strong><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;; color: black;"> </span></strong><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;; color: black;">Then try to upload the images it should be work like charm D:</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/http-error-on-wordpress-flash-uploader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to hide your shell commands</title>
		<link>http://linuxwindowsmaster.com/how-to-hide-your-shell-commands/</link>
		<comments>http://linuxwindowsmaster.com/how-to-hide-your-shell-commands/#comments</comments>
		<pubDate>Mon, 11 May 2009 23:19:49 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Shell Scripts]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[stty]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/how-to-hide-your-shell-commands/</guid>
		<description><![CDATA[Have you thought of hiding what you are doing on your linux bash shell prompt? and not allowing your colleague to see what command you are entering  or do you want to confuse your colleague by showing something invisible but work as visible?  then read out this…
Today I came across a neat, but [...]]]></description>
			<content:encoded><![CDATA[<p>Have you thought of hiding what you are doing on your linux bash shell prompt? and not allowing your colleague to see what command you are entering  or do you want to confuse your colleague by showing something invisible but work as visible?  then read out this…</p>
<p>Today I came across a neat, but pointless shell command. By running the following in shell, it will hide any commands you run.</p>
<pre><strong>root@server2 [/]# stty -echo</strong></pre>
<p><strong>In order to disable this mode, simply remove the “-” before echo.</strong></p>
<pre><strong>root@server2 [/]# stty echo</strong></pre>
<p>I guess there really is no point to the command, though you could always mess with your coworkers if they leave their shell prompt open</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-to-hide-your-shell-commands/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>configure: error: C++ preprocessor &#8220;/lib/cpp&#8221; fails sanity check</title>
		<link>http://linuxwindowsmaster.com/configure-error-c-preprocessor-libcpp-fails-sanity-check/</link>
		<comments>http://linuxwindowsmaster.com/configure-error-c-preprocessor-libcpp-fails-sanity-check/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 21:01:43 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[/lib/cpp]]></category>
		<category><![CDATA[error: C++ preprocessor "/lib/cpp" fails sanity check]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=283</guid>
		<description><![CDATA[
Hello,
If you having trouble compiling any application manually using &#8220;configure&#8221; , here simple fix for this error. 
Error ::
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Solution::

Centos/Fedora/RHEL
yum install gcc gcc-cpp gcc-c++



Ubuntu/Debain
apt-get [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--></p>
<p class="MsoNormal"><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;;">Hello,</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;;">If you having trouble compiling any application manually using &#8220;configure&#8221; , here simple fix for this error. </span></p>
<p class="MsoNormal"><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;;">Error ::</span></p>
<pre><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;;">checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
<strong>configure: error: C++ preprocessor "/lib/cpp" fails sanity check</strong>
See `config.log' for more details.</span></pre>
<p class="MsoNormal"><span style="font-family: &quot;Georgia&quot;,&quot;serif&quot;;">Solution::</span></p>
<ul>
<li><strong>Centos/Fedora/RHEL</strong>
<pre><strong>yum install gcc gcc-cpp gcc-c++</strong></pre>
</li>
</ul>
<ul>
<li><strong>Ubuntu/Debain</strong>
<pre><strong>apt-get install gcc gcc-cpp gcc-c++</strong></pre>
</li>
</ul>
<p>Regards</p>
<p>AlexP</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/configure-error-c-preprocessor-libcpp-fails-sanity-check/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>What is the advantge and disadvantage of mysql_connect() and mysql_pconnect() ?</title>
		<link>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/</link>
		<comments>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 00:41:19 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql_connect]]></category>
		<category><![CDATA[mysql_pconnect]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=279</guid>
		<description><![CDATA[
mysql_pconnect() will maintain a persistent connection to the database. Whenever your script calls the connect to database function, it first searches already existing connections to the database and if exists it will use the same connection to connect to the database, if not it will open a new connection to the database. ie. Connection is [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 11pt; font-family: Georgia;">mysql_pconnect() </span></strong><span style="font-size: 11pt; font-family: Georgia;">will maintain a persistent connection to the database. Whenever your script calls the connect to database function, it first searches already existing connections to the database and if exists it will use the same connection to connect to the database, if not it will open a new connection to the database. ie. Connection is Persistent</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Georgia;">where as <strong>mysql_connect()</strong> function will establish a new connection whenever a connection to database needed, and after executing the script, this function disconnects the connection. ie. connection is not a persistent one.</span></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 11pt; font-family: Georgia;">mysql_pconnect()</span></strong><span style="font-size: 11pt; font-family: Georgia;"> function is used where your site has a Heavy Traffic and where as <strong>mysql_connect()</strong> function is used when there is moderate/less traffic to your site.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">Regard’s</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">Alex P</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">System Administrator.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to update/install latest RoundCube on cPanel</title>
		<link>http://linuxwindowsmaster.com/how-to-update-install-latest-roundcube-on-cpanel/</link>
		<comments>http://linuxwindowsmaster.com/how-to-update-install-latest-roundcube-on-cpanel/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 19:57:34 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[install RoundCube]]></category>
		<category><![CDATA[RoundCube]]></category>
		<category><![CDATA[update  RoundCube]]></category>
		<category><![CDATA[upgrade roundcube]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=258</guid>
		<description><![CDATA[Update/install latest RoundCube on cPanel
First you will have to uninstall/remove exiting RoundCube files/folder/database on your server,

Uninstall/remove exiting RoundCube 

cd /usr/local/cpanel/base
rm -rf roundcube*
mysql -e 'drop database roundcube';
/scripts/upcp
Now follow the following steps to  update/install latest roundcube  version ,we need to get Roundcube before we can use it. The easiest way to get it is to visit http://www.roundcube.net [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update/install latest RoundCube on cPanel</strong></p>
<p>First you will have to uninstall/remove exiting RoundCube files/folder/database on your server,</p>
<ul>
<li><strong>Uninstall/remove exiting RoundCube </strong></li>
</ul>
<pre><strong>cd /usr/local/cpanel/base
rm -rf roundcube*
mysql -e 'drop database roundcube';
/scripts/upcp</strong></pre>
<p>Now follow the following steps to  update/install latest roundcube  version ,we need to get Roundcube before we can use it. The easiest way to get it is to visit http://www.roundcube.net and click on &#8220;Downloads&#8221; or just go to http://roundcube.net/downloads. Wait for it to download and then unzip (using WinZip or ZipGenius or tar -xzf roundcubemail-0.1.tar.gz) in the current directory.</p>
<ul>
<li><strong>update/install latest roundcube</strong></li>
</ul>
<pre><strong>cd /usr/local/cpanel/base
wget -O roundcube.tar.gz http://nchc.dl.sourceforge.net/sourceforge/
roundcubemail/roundcubemail-0.2.1.tar.gz
rm -rf roundcube.tar.gz
mv -f roundcubemail-0.2.1/ roundcube
cd roundcube
chmod -R 777 temp
chmod -R 777 logs
</strong></pre>
<ul>
<li><strong>Database Configuration</strong></li>
</ul>
<p>Create the database, database user and install the intial sql file. The following commands will do this for you.</p>
<pre><strong>mysql -e "CREATE DATABASE roundcube;"
mysql -e "GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost IDENTIFIED BY
'DATABASEPASSWORD';"
mysql -e "FLUSH PRIVILEGES;"
mysql -e "use roundcube; source SQL/mysql.initial.sql;"
</strong></pre>
<p>You will have to replace the roundcube password with &#8216;DATABASEPASSWORD&#8217; field.</p>
<ul>
<li><strong>Configuring RoundCube</strong></li>
</ul>
<pre><strong>cd config
mv db.inc.php.dist db.inc.php
mv main.inc.php.dist main.inc.php
</strong></pre>
<p>then open database configruation file  db.inc.php in your favroite editor like vi or pico or nano<br />
vi db.inc.php<br />
Find following line</p>
<pre><strong>$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
</strong></pre>
<p>Replace it with</p>
<pre><strong>$rcmail_config['db_dsnw'] = 'mysql://roundcube:DATABASEPASSWORD@localhost/roundcube';
</strong></pre>
<p>Now Open main.inc.php</p>
<p>vi main.inc.php</p>
<p>Find</p>
<pre><strong>$rcmail_config['default_host'] = '';
</strong></pre>
<p>Replace with</p>
<pre><strong>$rcmail_config['default_host'] = 'localhost';
</strong></pre>
<p>Last steps , restart the mysql, cpanel services on your server. That&#8217;s it ,Have fun with your new Roundcube installation!!</p>
<p>Regards</p>
<p>AlexP</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-to-update-install-latest-roundcube-on-cpanel/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to install memcache on linux server?</title>
		<link>http://linuxwindowsmaster.com/how-to-install-memcache-on-linux-server/</link>
		<comments>http://linuxwindowsmaster.com/how-to-install-memcache-on-linux-server/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 21:02:03 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[ASP.NET, IIS, MS SQL]]></category>
		<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[PHP, MySQL, Apache]]></category>
		<category><![CDATA[Libevent]]></category>
		<category><![CDATA[memcache.so]]></category>
		<category><![CDATA[memcached]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=224</guid>
		<description><![CDATA[ 

memcached is a high-performance memory object caching system intended to speed up dynamic web applications by alleviating database load. 
 
memcached is meant to work in concert with something like the MySQL query cache, not replace it. The two implementations excel at vastly different things: memcached is an object cache, while MySQL provides a [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <!--[if gte mso 10]><br />
<mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman";} --></p>
<p><!--[endif]--></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"><strong>memcached</strong> is a high-performance memory object caching system intended to speed up dynamic web applications by alleviating database load. </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"><strong>memcached</strong> is meant to work in concert with something like the MySQL query cache, not replace it. The two implementations excel at vastly different things: <strong>memcached</strong> is an object cache, while MySQL provides a query cache.</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"><strong>memcached</strong> is extremely fast. It uses <strong>libevent</strong>, which provides a mechanism to execute a callback function when a specific event occurs on a file descriptor, to scale to any number of open connections. On a modern Linux system memcached utilizes epoll, is completely non-blocking for network I/O, ensures memory never gets fragmented, and uses its own slab allocator and hash table to achieve 0(1) virtual memory allocation.</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 10pt; font-family: Georgia;">How it install it on Linux server ?</span></strong></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<ul>
<li><span style="font-size: 10pt; font-family: Georgia;">Install dependency software (Libevent)</span></li>
</ul>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;">#curl -O http://monkey.org/~provos/libevent-1.4.9-stable.tar.gz
#tar -xzvf libevent-1.4.9-stable.tar.gz
#cd libevent*
#./configure
#make
#make install</span></strong></pre>
<p><strong></strong></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<ul>
<li><span style="font-size: 10pt; font-family: Georgia;">Now let’s download the newest Memcached source</span></li>
</ul>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<pre><strong>#curl -O http://www.danga.com/memcached/dist/memcached-1.3.0.tar.gz
#tar zxf memcached-1.3.0.tar.gz
#cd memcached-1.3.0
#./configure
#make
#make install</strong></pre>
<ul>
<li><span style="font-size: 10pt; font-family: Georgia;">Then add /usr/local/lib to LD_LIBRARY_PATH in your .bash_profile</span></li>
</ul>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<pre><strong>LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH</strong></pre>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 10pt; font-family: Georgia;">How it Works</span></strong></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;">First, you start up the memcached daemon on as many spare machines as you have. The daemon has no configuration file, just a few command line options, only 3 or 4 of which you’ll likely use:</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;">Run Memcached as a daemon (d = daemon, m = memory, u = user, l = IP to listen to, p = port)</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;">#memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211 –u nobody</span></strong></pre>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;">This starts memcached as a <strong>daemon (-d)</strong> on the<strong> IP addres</strong>s and <strong>port</strong> specified with<strong> -l </strong>and <strong>-p</strong>, respectively, running as the <strong>user nobody (-u),</strong> allocating<strong> 1024  for object storage (-m)</strong>. You should adjust the amount of storage to suit your needs; many memcached installs run with 4 GB. Once you are comfortable with your startup options, add the appropriate command to your startup scripts.</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;">Create a <strong>/etc/init.d/memcached</strong> file and add above line to start memcached when the server boots</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;">With memcached installed and running, it’s time to get PHP talking to the object cache. While multiple PHP API exists, the one in the PECL repository is recommended. If you are running a newer version of PHP, installation is as simple as:</span></p>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;"># pecl install memcache</span></strong></pre>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;">Or you can use following steps to install PECL memcache manually.</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<pre><strong>#cd /usr/local/src
#curl -O http://pecl.php.net/get/memcache
#tar zxvf memcache*
#cd memcache-*
#phpize
#./configure
#make &amp;&amp; make install</strong></pre>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 10pt; font-family: Georgia;"> </span></strong></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;">Now we have to make sure PHP loads the newly built memcache.so library by adding the following line to php.ini:</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 10pt;">extension=memcache.so</span></strong></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p><span style="font-size: 10pt; font-family: Georgia;">Now restart Apache:</span></p>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;">Service httpd restart</span></strong></pre>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"><span> </span>Once it sucussfully install you can create<span> </span>phpinfo() on your webserver should now confirm that memcache is installed.</span></p>
<p class="MsoNormal" style="text-align: center;"><span style="font-size: 10pt; font-family: Georgia;"><a href="http://linuxwindowsmaster.com/how-to-install-memcache/"><img class="aligncenter size-full wp-image-225" title="memcache" src="http://linuxwindowsmaster.com/wp-content/uploads/2009/04/memcache.jpg" alt="memcache How to install memcache on linux server?" width="733" height="393" /></a><br />
</span></p>
<p>Regards<br />
AlexP</p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-to-install-memcache-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install subversion client on Linux server?</title>
		<link>http://linuxwindowsmaster.com/how-to-install-subversion-client-on-linux-server/</link>
		<comments>http://linuxwindowsmaster.com/how-to-install-subversion-client-on-linux-server/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 23:30:50 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[error: missing dependency: perl(uri)]]></category>
		<category><![CDATA[Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion]]></category>
		<category><![CDATA[perl-URI]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[yum install subversion]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=216</guid>
		<description><![CDATA[ 

Svn(subversion)  is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).
It is very easy to install subversion client on linux OS using yum. You can us following command to [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <!--[if gte mso 10]><br />
<mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman";} --></p>
<p><!--[endif]--></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;"><strong>Svn(subversion)</strong> <span> </span>is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;">It is very easy to install subversion client on<strong> linux OS</strong> using <strong>yum</strong>. You can us following command to install subversion client.</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;">root@server [~]# yum install subversion</span></strong></pre>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;">while installing subversion if you are getting following error  then it seem sot be </span><span style="font-size: 10pt; font-family: Georgia;">perl-URI package is not installed on your server so </span><span style="font-size: 10pt; font-family: Georgia;">you will have to install first before installing subversion client.</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;">Please follow the following steps to install </span><span style="font-size: 10pt; font-family: Georgia;">perl-URI package</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;">You&#8217;ll login via SSH as root and run this command:</span></p>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;">root@server [~]# yum install subversion</span></strong></pre>
<p class="MsoNormal">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;">and then you may get this error:</span></p>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;">Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</span></strong></pre>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;">Here&#8217;s what you do next (copy/paste):</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;">root@server [~]# wget  ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/
fedora/linux/releases/7/Everything/i386/os/Fedora/
perl-URI-1.35-3.noarch.rpm </span></strong>

<strong><span style="font-size: 10pt; font-family: Georgia;">root@server [~]# rpm -i perl-URI-1.35-3.noarch.rpm</span></strong>

<strong><span style="font-size: 10pt; font-family: Georgia;">root@server [~]# yum install subversion</span></strong>

<span style="font-size: 10pt; font-family: Georgia;" lang="FR">Installed: subversion.x86_64 0:1.4.2-4.el5 subversion.i386 0:1.4.2-4.el5</span>

<span style="font-size: 10pt; font-family: Georgia;">Dependency Installed: neon.x86_64 0:0.25.5-10.el5 neon.i386 0:0.25.5-10.el5</span>

<span style="font-size: 10pt; font-family: Georgia;">Complete!</span></pre>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;">That’s it subversion client is successfully installed on your server you can check it using following command.</span></p>
<pre><strong><span style="font-size: 10pt; font-family: Georgia;">root@server [~]#</span><span style="font-size: 10pt; font-family: Georgia;">svn --version
svn, version 1.1.4 (r13838)
compiled Aug 21 2005, 20:56:55</span>

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' schema
- handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
- handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' schema</strong></pre>
<p>Regards</p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;">Alex P<br />
</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Georgia;"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-to-install-subversion-client-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Enable PHP function for a one account ?</title>
		<link>http://linuxwindowsmaster.com/how-to-enable-php-function-for-one-account/</link>
		<comments>http://linuxwindowsmaster.com/how-to-enable-php-function-for-one-account/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 22:32:45 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[PHP, MySQL, Apache]]></category>
		<category><![CDATA[PHP function]]></category>
		<category><![CDATA[shell_exec]]></category>
		<category><![CDATA[suhosin]]></category>
		<category><![CDATA[suhosin.executor.func.blacklist]]></category>
		<category><![CDATA[VirtualHost]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=205</guid>
		<description><![CDATA[IF you disable PHP function in php.ini file and if you want to enable any particular function only one account .Then You can however use suhosin to enable a function for one domain only.
How can you do that ?
After installing suhosin, remove all functions from disable_functions in php.ini and add in php.ini suhosin.executor.func.blacklist = “exec,passthru,shell_exec” [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><strong><span style="font-weight: normal;">IF you disable <strong>PHP function </strong>in php.ini file and if you want to enable any particular function only one account .Then </span></strong>You can however use suhosin to enable a function for one domain only.</p>
<p class="MsoNormal"><strong>How can you do that ?</strong></p>
<p class="MsoNormal">After installing suhosin, remove all functions from disable_functions in php.ini and add in <strong>php.ini</strong> <strong>suhosin.executor.func.blacklist = “exec,passthru,shell_exec”</strong> and all the functions that you want to disable globally.</p>
<p class="MsoNormal">After that for each domain in the virtual host section you can add <strong>suhosin.executor.func.blacklist</strong> again but without the function that you need to enable. And so you will enable that function only for one domain.</p>
<p class="MsoNormal">Example:</p>
<pre><strong>&lt;VirtualHost 127.0.0.1&gt;
………..
………..
&lt;IfModule mod_php4.c&gt;
php_admin_value open_basedir “/usr/lib/php”
&lt;/IfModule&gt;
&lt;IfModule mod_php5.c&gt;
php_admin_value open_basedir “/usr/lib/php”
php_admin_value suhosin.executor.func.blacklist = “passthru,shell_exec”
&lt;/IfModule&gt;
…….
……
&lt;/VirtualHost&gt;
</strong></pre>
<p>In this example exec has been enabled for the VirtualHost. This way it will be better as you do not neet to modify all the virtual hosts only the ones that you need to enable one or more functions.</p>
<p class="MsoNormal">Regard’s</p>
<p class="MsoNormal">Alex P</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-to-enable-php-function-for-one-account/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install mod_ruby and eruby on Linux server ?</title>
		<link>http://linuxwindowsmaster.com/how-to-install-mod_ruby-and-eruby-on-linux-server/</link>
		<comments>http://linuxwindowsmaster.com/how-to-install-mod_ruby-and-eruby-on-linux-server/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 22:53:56 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[eruby]]></category>
		<category><![CDATA[mod_ruby]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=192</guid>
		<description><![CDATA[
What is mod_ruby?
mod_ruby embeds the Ruby interpreter into the Apache web server, allowing Ruby CGI scripts to be executed natively. These scripts will start up much faster than without mod_ruby.


1) Install eRuby

# wget http://www.modruby.net/archive/eruby-1.0.5.tar.gz
# tar -xzvf eruby-1.0.5.tar.gz
# cd eruby-1.0.5/
# ./configure.rb –with-charset=euc-jp –enable-shared
# make; make install

2) Install mod_ruby

i)Download latest mod_ruby tar file
# wget http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz
# tar -xzvf [...]]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--></p>
<h2><span style="font-size: 12pt; font-family: Georgia;">What is mod_ruby?</span><em></em></h2>
<p><em><span style="font-size: 11pt; font-family: Georgia;">mod_ruby embeds the Ruby interpreter into the Apache web server, allowing Ruby CGI scripts to be executed natively. These scripts will start up much faster than without mod_ruby.</span></em></p>
<p><em><span style="font-size: 10pt; font-family: Georgia;"><br />
</span></em></p>
<p><strong><span style="font-family: Georgia;">1) Install eRuby</span></strong></p>
<pre>
<h3><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;">#</span><span style="font-size: 12pt; font-family: Georgia;"> </span></strong><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;">wget </span><span style="font-size: 12pt; font-family: Georgia;"><a href="http://www.modruby.net/archive/eruby-1.0.5.tar.gz" target="_top">http://www.modruby.net/archive/eruby-1.0.5.tar.gz</a></span></strong></h3>
<h3><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;"># tar -xzvf eruby-1.0.5.tar.gz</span></strong></h3>
<h3><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;"># cd eruby-1.0.5/</span></strong></h3>
<h3><strong><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;">#</span></strong><strong><span style="font-size: 12pt; font-family: Georgia;"> </span><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;">./configure.rb –with-charset=euc-jp –enable-shared</span></strong></h3>
<h3><strong><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;"># </span></em><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;">make; make install</span></em></strong></h3>
</pre>
<p><strong><span style="font-family: Georgia;">2) Install mod_ruby</span></strong></p>
<pre>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">i)Download latest mod_ruby tar file</span></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;"># wget </span></em><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;"><a href="http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz" target="_top">http://www.modruby.net/archive/mod_ruby-1.2.6.tar.gz</a></span></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;"># tar -xzvf mod_ruby-1.2.6.tar.gz</span></em><em></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;">#</span></em><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal;"> </span></em><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;">cd mod_ruby-1.2.6/</span></em><em></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;">#  ./configure.rb –enable-eruby –with-apxs=/usr/local/apache/bin/apxs</span></em><em></em></h3>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-weight: normal; font-style: normal;"># make; make install</span></em><em></em></h3>
</pre>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">ii)Edit apache configuration file ( httd.conf) and add following code</span></em><em></em></h3>
<pre><span style="font-size: 11pt; font-family: Georgia;">LoadModule ruby_module libexec/mod_ruby.so</span>
<span style="font-size: 10pt; font-family: Georgia;">ClearModuleList</span>
<span style="font-size: 10pt; font-family: Georgia;">AddModule mod_ruby.c</span>
<span style="font-size: 10pt; font-family: Georgia;">AddHandler cgi-script .rb</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;IfModule mod_mime.c&gt;</span>

<span style="font-size: 10pt; font-family: Georgia;"># for Ruby/eRuby</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;IfModule mod_ruby.c&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;"># for Apache::RubyRun</span>
<span style="font-size: 10pt; font-family: Georgia;">RubyRequire apache/ruby-run</span>
<span style="font-size: 10pt; font-family: Georgia;"># for Apache::ERubyRun</span>
<span style="font-size: 10pt; font-family: Georgia;">RubyRequire apache/eruby-run</span>
<span style="font-size: 10pt; font-family: Georgia;"># for development</span>
<span style="font-size: 10pt; font-family: Georgia;"># RubyRequire auto-reload</span>
<span style="font-size: 10pt; font-family: Georgia;"># for add library</span>
<span style="font-size: 10pt; font-family: Georgia;">#RubyAddPath /usr/local/lib/ruby</span>
<span style="font-size: 10pt; font-family: Georgia;"># exec *.rbx as ruby scripts.</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;Files *.rbx&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;">SetHandler ruby-object</span>
<span style="font-size: 10pt; font-family: Georgia;">RubyHandler Apache::RubyRun.instance</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;/Files&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;"># handle *.rhtml as eruby files.</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;Files *.rhtml&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;">SetHandler ruby-object</span>
<span style="font-size: 10pt; font-family: Georgia;">RubyHandler Apache::ERubyRun.instance</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;/Files&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;/IfModule&gt;</span>
<span style="font-size: 10pt; font-family: Georgia;">&lt;/IfModule&gt;</span></pre>
<h3><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">iii) Restart apache service on server</span></em></h3>
<p><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;"><br />
</span></em></p>
<p><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">Regards</span></em></p>
<p><em><span style="font-size: 12pt; font-family: Georgia; font-style: normal;">Alex P<br />
</span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-to-install-mod_ruby-and-eruby-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Mysql error : Can’t create new tempfile: ‘*.TMD file</title>
		<link>http://linuxwindowsmaster.com/mysql-error-can%e2%80%99t-create-new-tempfile-%e2%80%98tmd-file/</link>
		<comments>http://linuxwindowsmaster.com/mysql-error-can%e2%80%99t-create-new-tempfile-%e2%80%98tmd-file/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 15:10:12 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[*.TMD]]></category>
		<category><![CDATA[tempfile]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=187</guid>
		<description><![CDATA[
Hello,
If you are getting Can’t create new tempfile: ‘tablesname.TMD file error while repairing corrupted database tables please try use following command to fix it
Solution.
# myisamchk -r -f  tables.MYI
Regard’s
Stacy.
]]></description>
			<content:encoded><![CDATA[<div class="entry font-resize">
<p>Hello,</p>
<p>If you are getting <strong>Can’t create new tempfile: ‘tablesname.TMD file</strong> error while repairing corrupted database tables please try use following command to fix it</p>
<p>Solution.</p>
<pre><strong># myisamchk -r -f  tables.MYI</strong></pre>
<p>Regard’s</p>
<p>Stacy.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/mysql-error-can%e2%80%99t-create-new-tempfile-%e2%80%98tmd-file/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
