<?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>Armand Brahaj - Blog Personal &#187; Linux Root Servers</title>
	<atom:link href="http://armandbrahaj.blog.al/category/web/linux-root-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://armandbrahaj.blog.al</link>
	<description>Mendime te ndryshme, probleme teknike e te ngjashme</description>
	<lastBuildDate>Wed, 21 Jul 2010 13:22:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<image>
  <link>http://armandbrahaj.blog.al</link>
  <url>http://armandbrahaj.blog.al//wp-content/uploads/2009/04/shqiperiacom-logo.png</url>
  <title>Armand Brahaj - Blog Personal</title>
</image>
	<atom:link rel='hub' href='http://armandbrahaj.blog.al/?pushpress=hub'/>
<cloud domain='armandbrahaj.blog.al' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Jail proftpd user virtualmin</title>
		<link>http://armandbrahaj.blog.al/2010/04/23/jail-proftpd-user-virtualmin/</link>
		<comments>http://armandbrahaj.blog.al/2010/04/23/jail-proftpd-user-virtualmin/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 07:43:48 +0000</pubDate>
		<dc:creator>Mandi</dc:creator>
				<category><![CDATA[Linux Root Servers]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[virtualmin]]></category>

		<guid isPermaLink="false">http://armandbrahaj.blog.al/?p=1521</guid>
		<description><![CDATA[This is a quick reminder on how to chroot FTP users with Virtualmin (Webmin). What exactly is needed is the modification of the DefaultRoot setting in ProFTPd. This can be set that in Virtualmin by browsing to Webmin&#62;Servers&#62;ProFTPd Server&#62;Files and Directories, and setting the option labeled &#8220;Limit users to directories&#8221; to &#8220;Home directory&#8221;. Saving it, [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick reminder on how to chroot FTP users with Virtualmin (Webmin).</p>
<p>What exactly is needed is the modification of the DefaultRoot setting in ProFTPd.</p>
<p>This can be set that in Virtualmin by browsing to  Webmin&gt;Servers&gt;ProFTPd Server&gt;Files and Directories, and setting  the option labeled &#8220;Limit users to directories&#8221; to &#8220;Home directory&#8221;.   Saving it, and clicking  &#8220;Apply changes&#8221; in the upper right corner.<br />
<h3>Artikuj të ngjashëm</h3>
<ul class="related_post">
<li>04/15/2009 &#8212; <a href="http://armandbrahaj.blog.al/2009/04/15/email-statusdeferred-delivery-temporarily-suspended/" title="Email status=deferred delivery temporarily suspended">Email status=deferred delivery temporarily suspended (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://armandbrahaj.blog.al/2010/04/23/jail-proftpd-user-virtualmin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Restarto Apache nese serveri arrin nje limit te caktuar ngarkese</title>
		<link>http://armandbrahaj.blog.al/2010/01/25/restarto-apache-nese-serveri-arrin-nje-limit-te-caktuar-ngarkese/</link>
		<comments>http://armandbrahaj.blog.al/2010/01/25/restarto-apache-nese-serveri-arrin-nje-limit-te-caktuar-ngarkese/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 11:58:00 +0000</pubDate>
		<dc:creator>Mandi</dc:creator>
				<category><![CDATA[Linux Root Servers]]></category>
		<category><![CDATA[high load]]></category>
		<category><![CDATA[linux administration]]></category>
		<category><![CDATA[ngarkese]]></category>

		<guid isPermaLink="false">http://armandbrahaj.blog.al/?p=1371</guid>
		<description><![CDATA[Scripti me poshte mund te perdoret nga administratoret e serverave Linux. Sa here qe ngarkesa e serverit ngrihet mbi nje vlere te caktuar (percaktuar ne variablin: HTTPD_RESTART_LOAD), scripti ben nje restart te procesit.
Me ane te ketij scripti eshte e lehte te parandalohen crashet e serverave qe jane ne pune. Per cdo rast te sherbimit web (httpd), scripti dergon nje email (ne adresen e percaktuar tek EMAIL_ADDRESS).]]></description>
			<content:encoded><![CDATA[<p>Scripti me poshte mund te perdoret nga administratoret e serverave Linux. Sa here qe ngarkesa e serverit ngrihet mbi nje vlere te caktuar (percaktuar ne variablin: HTTPD_RESTART_LOAD), scripti ben nje restart te procesit.<br />
Me ane te ketij scripti eshte e lehte te parandalohen crashet e serverave qe jane ne pune. Per cdo rast te sherbimit web (httpd), scripti dergon nje email (ne adresen e percaktuar tek EMAIL_ADDRESS).</p>
<p>Perdorimi:</p>
<ol>
<li>Krijoni nje skedar me emer kontrApache.sh ne te cilin vendoset kodi me poshte.  (/home/root/.scripts/kontrApache.sh)</li>
<li>Scripti duhet te jete i ekzekutueshem: chmod 775 /home/root/.scripts/kontrApache.sh</li>
<li>Krijoni nje crontab (crontab -e per te edituar crontab) ku te therritet ky script cdo x min. Psh: */2     *       *       *       *       sh /home/root/.scripts/kontrApache.sh &gt;/dev/null 2&gt;&amp;1</li>
</ol>
<p>Meritat per scriptin:<br />
?nobaloney.net</p>
<div class="syhi_block"><code>#!/bin/bash<br />
# Kontrollo ngarkesen e serverit dhe nese kalon nje kufi e ri-fillon si sherbim<br />
LOAD_TIME=`date '+%F %H:%M'`<br />
SERVER_NAME=&quot;EmriIServerit.host.al&quot;<br />
EMAIL_ADDRESS=&quot;AdresaJuajeEmailit@&quot;<br />
UP_TIME=`uptime`<br />
#101 means no warning emails.<br />
LOAD_WARNING=&quot;101&quot;<br />
HTTPD_RESTART_LOAD=&quot;20&quot;<br />
TOP_OP=`top -b -n 1 | head -20`<br />
TOP[1]=`echo &quot;$UP_TIME&quot;`<br />
TOP[2]=`echo &quot;$TOP_OP&quot; | grep 'zombie'`<br />
TOP[3]=`echo &quot;$TOP_OP&quot; | grep '%' | grep -v 'PID'`<br />
TOP[4]=`echo &quot;$TOP_OP&quot; | grep '^Swap\:'`<br />
TOP[5]=`echo &quot;$TOP_OP&quot; | grep '^Mem\:'`<br />
ONE_LOAD=`echo &quot;${TOP[1]}&quot; | awk '{print $10}' | cut -c1-4`<br />
#echo $ONE_LOAD<br />
if [ &quot;$ONE_LOAD&quot; == &quot;aver&quot; ]; then<br />
ONE_LOAD=`echo &quot;${TOP[1]}&quot; | awk '{print $11}'| cut -c1-4`<br />
fi<br />
#echo $ONE_LOAD<br />
ONE_LOAD_CALC=`echo &quot;${TOP[1]}&quot; |awk '{print $10}' | cut -c1-4 | awk 'BEGIN {FS = &quot;.&quot;}{print $1}'`<br />
#echo $ONE_LOAD_CALC<br />
if [ &quot;$ONE_LOAD_CALC&quot; == &quot;aver&quot; ]; then<br />
ONE_LOAD_CALC=`echo &quot;${TOP[1]}&quot;| awk '{print $11}'| cut -c1-4 | awk 'BEGIN {FS = &quot;.&quot;}{print $1}'`<br />
fi<br />
#echo $ONE_LOAD_CALC<br />
ONE_LOAD_SUB=&quot;$ONE_LOAD(1min) - $LOAD_TIME&quot;<br />
#echo $ONE_LOAD_SUB<br />
MAIL_OUTPUT=`echo -e &quot;${TOP[1]}\n${TOP[2]}\n${TOP[3]}\n${TOP[4]}\n${TOP[5]}\n&quot;`<br />
#echo -e &quot;\n$MAIL_OUTPUT\n&quot;<br />
if [ &quot;$ONE_LOAD_CALC&quot; -ge &quot;$LOAD_WARNING&quot; ]; then<br />
echo -e &quot;\nSERVER LOAD of $SERVER_NAME is $ONE_LOAD_SUB\n\n$MAIL_OUTPUT\n&quot; | mail -s &quot;LOAD WARNING : $SERVER_NAME - $ONE_LOAD_SUB&quot; $EMAIL_ADDRESS<br />
fi<br />
if [ &quot;$ONE_LOAD_CALC&quot; -ge &quot;$HTTPD_RESTART_LOAD&quot; ]; then<br />
/sbin/service httpd restart 2&amp;amp;&amp;gt; /var/log/cron_load.log  &amp;amp;&amp;amp; echo -e &quot;\nSERVER LOAD of $SERVER_NAME is $ONE_LOAD_SUB\n&quot; &amp;gt;&amp;gt; /var/log/cron_load.log &amp;amp;&amp;amp; echo -e &quot;$MAIL_OUTPUT\n&quot; &amp;gt;&amp;gt; /var/log/cron_load.log &amp;amp;&amp;amp; cat /var/log/cron_load.log | mail -s &quot;HTTPD RESTART : $SERVER_NAME - $ONE_LOAD_SUB&quot; $EMAIL_ADDRESS<br />
fi<br />
exit 0<br />
#END</code></div>
<h3>Artikuj të ngjashëm</h3>
<ul class="related_post">
<li>06/07/2009 &#8212; <a href="http://armandbrahaj.blog.al/2009/06/07/how-to-install-mysql-monitoring-tools-mtop-for-centos-debian/" title="How to install MySQL Monitoring Tools mtop for CentOS Debian ">How to install MySQL Monitoring Tools mtop for CentOS Debian  (1)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://armandbrahaj.blog.al/2010/01/25/restarto-apache-nese-serveri-arrin-nje-limit-te-caktuar-ngarkese/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
