<?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 &#187; Cpanel Server</title>
	<atom:link href="http://linuxwindowsmaster.com/category/cpanel-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxwindowsmaster.com</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 19:54:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Agent is not in recovery mode but recovery mode is required</title>
		<link>http://linuxwindowsmaster.com/agent-is-not-in-recovery-mode-but-recovery-mode-is-required/</link>
		<comments>http://linuxwindowsmaster.com/agent-is-not-in-recovery-mode-but-recovery-mode-is-required/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 19:54:25 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=389</guid>
		<description><![CDATA[I have seen &#8216; Agent is not in recovery mode but recovery mode is required&#8217; error while restoring complete backup of one partition so can try below steps to fixed it. Linux Installations 1. Start a remote SSH session or access a GUI terminal window (Konsole in KDE, Gnome Terminal in Gnome, etc.) 2. Use [...]]]></description>
			<content:encoded><![CDATA[<p>I have seen &#8216;  Agent is not in recovery mode but recovery mode is required&#8217; error while restoring complete backup of one partition so can try below steps to fixed it.</p>
<p>Linux Installations</p>
<p>1. Start a remote SSH session or access a GUI terminal window (Konsole in KDE, Gnome Terminal in Gnome, etc.)</p>
<p>2. Use one of the following commands to stop the buagent service:</p>
<p># /etc/init.d/cdp-agent stop</p>
<p>or</p>
<p># service cdp-agent stop</p>
<p>3. Create the empty file /usr/sbin/r1soft/.recovery-mode:touch /usr/sbin/r1soft/.recovery-mode<br />
as shown:</p>
<p>4. And last, save the /etc/init.d/buagent file, and restart the agent service.</p>
<p>/etc/init.d/cdp-agent start</p>
<p>or</p>
<p>service cdp-agent start</p>
<p>This will successfully place the Linux R1Soft Agent into recovery mode.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/agent-is-not-in-recovery-mode-but-recovery-mode-is-required/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel : UPCP error : Undefined subroutine &amp;Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273</title>
		<link>http://linuxwindowsmaster.com/cpanel-upcp-error-undefined-subroutine-cpanelupdateautomatic_updates_enabled-called-at-scriptsupcp-line-273/</link>
		<comments>http://linuxwindowsmaster.com/cpanel-upcp-error-undefined-subroutine-cpanelupdateautomatic_updates_enabled-called-at-scriptsupcp-line-273/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 11:43:07 +0000</pubDate>
		<dc:creator>AlexP</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=387</guid>
		<description><![CDATA[I have seen recent cPanel upgrade from old version 11.24 to 11.30 and got the following error. # /scripts/upcp /scripts/upcp syntax OK Running Futex Check/Fix……Done Undefined subroutine &#38;Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273. This can be fixed using below : wget -O /root/updatenow.static http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static &#38;&#38; perl /root/updatenow.static --manual Upgrade the cPanel : /scripts/upcp --force it [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I have seen recent cPanel upgrade from old version 11.24 to 11.30 and got the following error.</p>
<p><em># /scripts/upcp<br />
/scripts/upcp syntax OK<br />
Running Futex Check/Fix……Done<br />
Undefined subroutine &amp;Cpanel::Update::automatic_updates_enabled  called at /scripts/upcp line 273.<br />
</em><br />
This can be fixed using below :</p>
<p><code>wget -O /root/updatenow.static   http://httpupdate.cpanel.net/cpanelsync/RELEASE/scripts/updatenow.static   &amp;&amp; perl /root/updatenow.static --manual</code></p>
<p>Upgrade the cPanel :</p>
<p><code>/scripts/upcp --force</code></p>
<p>it should be work perfect.</p>
<p>Regards</p>
<p>Alex P</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/cpanel-upcp-error-undefined-subroutine-cpanelupdateautomatic_updates_enabled-called-at-scriptsupcp-line-273/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin Error &#8211; Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly</title>
		<link>http://linuxwindowsmaster.com/phpmyadmin-error-cannot-start-session-without-errors-please-check-errors-given-in-your-php-andor-webserver-log-file-and-configure-your-php-installation-properly/</link>
		<comments>http://linuxwindowsmaster.com/phpmyadmin-error-cannot-start-session-without-errors-please-check-errors-given-in-your-php-andor-webserver-log-file-and-configure-your-php-installation-properly/#comments</comments>
		<pubDate>Sun, 16 May 2010 12:00:58 +0000</pubDate>
		<dc:creator>AlexP</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Cannot start session without errors]]></category>
		<category><![CDATA[cpanelphpmyadmin]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=358</guid>
		<description><![CDATA[Last night I had migrated one our client accounts from old cpanel server to new cpanel server , customers reported their phpMyAdmin install was showing the error message &#8220;Cannot start session without errors&#8221;  and they were unable to even get to the phpMyAdmin login page on the new server. This post looks at what caused [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I had migrated one our client accounts from old cpanel server to new cpanel server , customers reported their phpMyAdmin install was showing the error  message &#8220;Cannot start session without errors&#8221;  and they were unable to  even get to the phpMyAdmin login page on the new server.</p>
<p><strong>This post looks at what caused  the issue and how to fix it.</strong></p>
<p>Clearly there&#8217;s something wrong with the way phpmyadmin sessions are being used. Cpanel work with is own internal PHP and store the application session files in different folder for security reason.</p>
<p>On Cpanel server, every application as his own php configuration setting like phpmyadmin , php configuration file is /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini , roundcube (/usr/local/cpanel/3rdparty/etc/roundcube/php.ini)</p>
<p><strong>PHPmyAdmin</strong> session files are store in <strong>/var/cpanel/userhomes/cpanelphpmyadmin/</strong> folder.  The <strong>/var/cpanel/userhomes/cpanelphpmyadmin/</strong> folder ownership should be <strong>cpanelphpmyadmin.cpanelphpmyadmin</strong>n  /var/cpanel/userhomes/cpanelphpmyadmin/ in order to get phpmyadmin work perfect.</p>
<p><strong>root@server [/var/cpanel/userhomes]# chown cpanelphpmyadmin.cpanelphpmyadmin cpanelphpmyadmin/ -R </strong></p>
<p>If session folder owned by any other username rather than cpanelphpmyadmin then you will get &#8220;Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly&#8221; error.</p>
<pre>root@server [/var/cpanel/userhomes]# ll
drwxr-xr-x  4 cpanel           cpanel            4096 Dec 11 23:04 cpanel/
drwx--x--x  4 cpanelhorde      cpanelhorde       4096 Sep 24  2009 cpanelhorde/
drwx--x--x  4 cpanelphpmyadmin cpanelphpmyadmin  4096 Sep 24  2009 cpanelphpmyadmin/
drwx--x--x  4 cpanelphppgadmin cpanelphppgadmin  4096 Sep 24  2009 cpanelphppgadmin/
drwx--x--x  4 cpanelroundcube  cpanelroundcube   4096 Sep 24  2009 cpanelroundcube/
root@server [/var/cpanel/userhomes]#</pre>
<p>Regards</p>
<p>Alex P</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/phpmyadmin-error-cannot-start-session-without-errors-please-check-errors-given-in-your-php-andor-webserver-log-file-and-configure-your-php-installation-properly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 attacks. So you [...]]]></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>6</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 [...]]]></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 query cache. [...]]]></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>5</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 install [...]]]></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>5</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 [...]]]></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>11</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 [...]]]></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>6</slash:comments>
		</item>
		<item>
		<title>Fixing Apache “No space left on device: Couldn’t create accept lock” errors</title>
		<link>http://linuxwindowsmaster.com/fixing-apache-%e2%80%9cno-space-left-on-device-couldn%e2%80%99t-create-accept-lock%e2%80%9d-errors/</link>
		<comments>http://linuxwindowsmaster.com/fixing-apache-%e2%80%9cno-space-left-on-device-couldn%e2%80%99t-create-accept-lock%e2%80%9d-errors/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 20:48:26 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[Couldn’t create accept lock]]></category>
		<category><![CDATA[No space left on device]]></category>
		<category><![CDATA[Semget: No space left on device]]></category>
		<category><![CDATA[[emerg] (28)No space left on device: Couldn't create accept lock]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=171</guid>
		<description><![CDATA[Hello, I was facing same error with one of my shared server last couple of week, apache was broke on server and getting following error in apache error logs file. [emerg] (28)No space left on device: Couldn't create accept lock [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [notice] Digest: generating secret for digest authentication ... [notice] [...]]]></description>
			<content:encoded><![CDATA[<div class="entry font-resize">
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal">I was facing same error with one of my shared server last couple of week, apache was broke on server and getting following error in apache error logs file.</p>
<p class="MsoNormal">
<pre>[emerg] (28)No space left on device: Couldn't create accept lock</pre>
<pre>[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)</pre>
<pre>[notice] Digest: generating secret for digest authentication ...</pre>
<pre>[notice] Digest: done</pre>
<pre>[warn] pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?</pre>
<pre>[emerg] (28)No space left on device: Couldn't create accept lock</pre>
<p class="MsoNormal">
<p>I checked disk space, or <span> </span>quota limit but everything was fine. I through it seem to apache semaphore problem <span> </span></p>
<p>Apache can create the “accept lock” is with a semaphore. A semaphore is an inter-process communication tool that is used by Apache to communicate with it’s child processes. This error message may mean that Apache couldn’t create a new semaphore.</p>
<p>Check to see how many semaphores are currently in use. If Apache is running correctly, you should see something like this:</p>
<p class="MsoNormal">
<pre># ipcs -s</pre>
<p class="MsoNormal">
<p class="MsoNormal">If Apache is stopped, and you still see these semaphores, then you can safely kill them by running this command for each semaphore id (in the second column)</p>
<pre>$ ipcrm -s &lt;semid&gt;</pre>
<p class="MsoNormal">To destroy all semaphores, you can run this from the command line (with “apache” being the apache-user:</p>
<p class="MsoNormal">
<pre>for semid in `ipcs -s | grep apachec | cut -f2 -d" "`; do ipcrm -s $semid; done</pre>
<p class="MsoNormal">OR</p>
<pre>
<p class="MsoNormal"><code><span style="font-size: 10pt;">ipcs -s | grep apache | perl -e ‘while (&lt;STDIN&gt;) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’</span></code>
</pre>
<p class="MsoNormal"><code><span style="font-size: 10pt;"> </span></code></p>
<p class="MsoNormal"><code><span style="font-size: 10pt;">OR</span></code></p>
<pre>
<p class="MsoNormal">ipcs -s | grep nobody | perl -e ‘while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}’
ipcs -m | grep nobody | perl -e ‘while () { @a=split(/\s+/); print `ipcrm -m $a[1]`}’
<p class="MsoNormal">
<p class="MsoNormal">OR
<p class="MsoNormal"><code><span style="font-size: 10pt;">for i in `ipcs -s | awk ‘/httpd/ {print $2}’`; do (ipcrm -s $i); done</span></code>
<p class="MsoNormal">
</pre>
<p class="MsoNormal">How to increase semaphore limit</p>
<p class="MsoNormal">
<p class="MsoNormal">To view the current parameters:</p>
<pre>ipcs -l</pre>
<p class="MsoNormal">
<p class="MsoNormal">To change these parameters, modify the file /etc/sysctl.conf and add the following lines:</p>
<pre>kernel.msgmni = 1024</pre>
<pre>kernel.sem = 250 256000 32 1024</pre>
<p class="MsoNormal">
<p class="MsoNormal">Then load these settings with the command:</p>
<pre>sysctl -p</pre>
<p class="MsoNormal">Regards</p>
<p class="MsoNormal">StacyM</p>
<p class="MsoNormal">System Administrator</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/fixing-apache-%e2%80%9cno-space-left-on-device-couldn%e2%80%99t-create-accept-lock%e2%80%9d-errors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

