<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Challenge</title>
	<atom:link href="http://smartbasha.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://smartbasha.wordpress.com</link>
	<description>Osama El-Far ..ITI-Alex UNIX 29 ..its me</description>
	<lastBuildDate>Wed, 17 Aug 2011 01:30:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='smartbasha.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Challenge</title>
		<link>http://smartbasha.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://smartbasha.wordpress.com/osd.xml" title="Challenge" />
	<atom:link rel='hub' href='http://smartbasha.wordpress.com/?pushpress=hub'/>
		<item>
		<title>مش لاقينى &#8230;&#8230;ببساطة</title>
		<link>http://smartbasha.wordpress.com/2011/08/17/%d9%85%d8%b4-%d9%84%d8%a7%d9%82%d9%8a%d9%86%d9%89-%d8%a8%d8%a8%d8%b3%d8%a7%d8%b7%d8%a9/</link>
		<comments>http://smartbasha.wordpress.com/2011/08/17/%d9%85%d8%b4-%d9%84%d8%a7%d9%82%d9%8a%d9%86%d9%89-%d8%a8%d8%a8%d8%b3%d8%a7%d8%b7%d8%a9/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 01:29:09 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[my life]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=62</guid>
		<description><![CDATA[السلام عليكم ورحمة الله وبركته من زمان مكتبتش من زمان ونا بحاول كل يوم يعدى وبس بحاول اخلينى على الشات اكبر وقت ممكن وانام اكبر وقت ممكن واهزر واضحك علشان اعدى  اكبر وقت ممكن بس انا تعبت انا فييييييييييين مش لاقينى !!!!!!!! ببساطة تعالو ناخد الجوانب الاساسية فى حياة الانسان وده حسب وصف الناس بتوع [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=62&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>السلام عليكم ورحمة الله وبركته</p>
<p>من زمان مكتبتش</p>
<p>من زمان ونا بحاول كل يوم يعدى وبس</p>
<p>بحاول اخلينى على الشات اكبر وقت ممكن</p>
<p>وانام اكبر وقت ممكن</p>
<p>واهزر واضحك علشان اعدى  اكبر وقت ممكن</p>
<p>بس انا تعبت</p>
<p>انا فييييييييييين مش لاقينى !!!!!!!!</p>
<p>ببساطة تعالو ناخد الجوانب الاساسية فى حياة الانسان</p>
<p>وده حسب وصف الناس بتوع التنمية البشرية</p>
<p>- الجانب الدينى</p>
<p>-جانب العمل</p>
<p>-العلاقات الأسرية</p>
<p>-العلاقات الاجتماعية العامة</p>
<p>-علاقات العمل</p>
<p>وحاجة سادسة انا مش فاكرها</p>
<p> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>المهم</p>
<p>ناخد جانب العمل</p>
<p>حتى الآن مش لاقى الحاجة اللى احس انى مش زهقان ونا بعملها</p>
<p>مش لاقى المتعة فى اى شغل</p>
<p>وحتى لو لقيته فى شغل شوية والاقى المتعة راحت</p>
<p>نستثنى من ذلك البرمجة</p>
<p>شوية حبيتها</p>
<p>بس مبحبش افضل اعمل ريسيرش على كل فنكشن</p>
<p>اعتقد ان لغة البرمجة اللى حبيتها بجد كانت السى</p>
<p>لانها كانت بتعتمد على استخدام الحاجات اللى فى ايديك وابنى انتا منها اللى انتا عايزه</p>
<p>البى اتش بى عجبنى لحد ما بدات اشتغل جملة</p>
<p>اتضايقت من احساس انى لسه حفضل اشوف كل فنكشن هما عملوها ليه وازاى استخدمها</p>
<p>بحب السيلز اوى بس بتخنق منه فى حاجات</p>
<p>الحاجة اللى مميزة فيا ومش عارف ازاى ممكن تتوظف انى بعرف اجيب افكار حلوة اوى لكل حاجة</p>
<p>جربتها مع مواقع الانترنت</p>
<p>كتير بعرف اجيب فكرة واحس انها  عبقرية وتنجح اوى</p>
<p>وبعد فترة حد ينفذ فكرتى</p>
<p>وتنجح</p>
<p>ويكسب من وراها</p>
<p>حاليا اتمنى انى انفذ اول فكرة جاية ان شاء الله</p>
<p>بس برده لسه مش لاقينى</p>
<p>طيب الجانب الدينى</p>
<p>ضااااااااااااايع</p>
<p>فين اسامة اللى كان بيصلى ال5 فروض فى المسجد وبيروح قرآن أحيانا وبيسمع خطب وبيذكر</p>
<p>فييييييييييييين؟؟</p>
<p>مش لاقيه</p>
<p>طيب العلاقات الاجتماعية</p>
<p>الحمد لله راضى عنها</p>
<p>بس مفتقد الصحبة الصالحة</p>
<p>نفسى فى الصاحب اللى يفكرنى بوقت الصلاة</p>
<p>اللى لما امشى معاه يفكرنى بربنا مش يبعدنى عنه</p>
<p>الصحبة الصالحة بمعنى الصحبة الصالحة</p>
<p>طيب</p>
<p>علاقات العمل</p>
<p>اول ما رجعت من اسكندرية كنت فعلا بكبرها</p>
<p>الواتى</p>
<p>ولااااااااااااا الهوا</p>
<p>العلاقات الاسرية</p>
<p>شاب اعزب نفسه يستقر ويتجوز</p>
<p>بس لسه فى معوقات</p>
<p>والبيت علاقتى بيهم طيبة بس مش مبسوط بيها برده</p>
<p>النتيجة</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p>بلاش نقول</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=62&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2011/08/17/%d9%85%d8%b4-%d9%84%d8%a7%d9%82%d9%8a%d9%86%d9%89-%d8%a8%d8%a8%d8%b3%d8%a7%d8%b7%d8%a9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>سلسلة تعليم بى اتش بى</title>
		<link>http://smartbasha.wordpress.com/2011/05/07/%d8%b3%d9%84%d8%b3%d9%84%d8%a9-%d8%aa%d8%b9%d9%84%d9%8a%d9%85-%d8%a8%d9%89-%d8%a7%d8%aa%d8%b4-%d8%a8%d9%89/</link>
		<comments>http://smartbasha.wordpress.com/2011/05/07/%d8%b3%d9%84%d8%b3%d9%84%d8%a9-%d8%aa%d8%b9%d9%84%d9%8a%d9%85-%d8%a8%d9%89-%d8%a7%d8%aa%d8%b4-%d8%a8%d9%89/#comments</comments>
		<pubDate>Sat, 07 May 2011 06:20:16 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=58</guid>
		<description><![CDATA[السلام عليكم ورحمة الله وبركاته اليوم نبدأ أولى حلقات تعليم بى اتش بى نرجو من الله تعالى أن تكون فى ميزان حسناتنا نبدأ بالسؤال المهم ما هى بى اتش بى ؟ server side programming language أى لغة برمجة يتم تشغيلها على الجانب الخاص بالسيرفر بمعنى آخر يتم تنفيذ الأكواد الخاصة باللغة على السيرفر وليس على [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=58&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:right;">
<p style="text-align:right;">السلام عليكم ورحمة الله وبركاته</p>
<p style="text-align:right;">
<p style="text-align:right;">اليوم نبدأ أولى حلقات تعليم بى اتش بى</p>
<p style="text-align:right;">نرجو من الله تعالى أن تكون فى ميزان حسناتنا</p>
<p style="text-align:right;">
<p style="text-align:right;">نبدأ بالسؤال المهم</p>
<p style="text-align:right;">ما هى بى اتش بى ؟</p>
<p style="text-align:right;">server side programming language</p>
<p style="text-align:right;">أى لغة برمجة يتم تشغيلها على الجانب الخاص بالسيرفر</p>
<p style="text-align:right;">بمعنى آخر</p>
<p style="text-align:right;">يتم تنفيذ الأكواد الخاصة باللغة على السيرفر وليس على جهاز العميل</p>
<p style="text-align:right;">
<p style="text-align:right;">وهى أيضا</p>
<p style="text-align:right;">scripting language and not programming language</p>
<p style="text-align:right;">وده حنتكلم عنه بعدين</p>
<p style="text-align:right;">
<p style="text-align:right;">طيب أيضا لغة بى اتش بى هى لغة للويب</p>
<p style="text-align:right;">يعنى ايه برده ؟؟</p>
<p style="text-align:right;">ببساطة الويب كله شغال فى النهاية باتش تى ام ال</p>
<p style="text-align:right;">بمعنى</p>
<p style="text-align:right;">انا لما بدخل على أى سايت</p>
<p style="text-align:right;">النتيجة اللى بتوصل للجهاز عندى وبشوفها على البراوزر سواء كان فايرفوكس أو انترنت اكسبلورر أو  غيره هى صفحة مكتوبة باتش تى ام ال</p>
<p style="text-align:right;">المشكلة ان اتش تى ام ال لغة محدودة جدا ومش لغة برمجة كمان</p>
<p style="text-align:right;">لانها مجرد</p>
<p style="text-align:right;">markup language</p>
<p style="text-align:right;">ودى حنعرف معناها بعدين بس باختصار مجرد شوية تاجات بتعرض حاجات بشكل معين</p>
<p style="text-align:right;">لكن مفيهاش مثلا انى أشوف حاجة استقبلتها صح ولا غلط</p>
<p style="text-align:right;">مفيهاش انى أبص على قيمة اليوزر دخلها وأقارنها بواحدة تانية من قاعدة البيانات</p>
<p style="text-align:right;">
<p style="text-align:right;">بالتالى كان الحل انهم يعملو لغات بتوسع نطاق التعامل داخل الويب</p>
<p style="text-align:right;">ببساطة</p>
<p style="text-align:right;">لغة بتنفذ كل اللوجيك أو المنطق اللى احنا عايزينه وتحوله فى الآخر لصفحة اتش تى ام ال</p>
<p style="text-align:right;">يعنى ناخد مثال</p>
<p style="text-align:right;">
<p style="text-align:right;">يوزر دخل على سايت معين</p>
<p style="text-align:right;">السايت رد عليه بصفحة اتش تى ام ال وفيهم خانات فاضية يكتب فيهم اليوزر نيم والباسوورد بتاعه</p>
<p style="text-align:right;">اليوزر كتب اليوزرنيم والباسوورد بتوعه</p>
<p style="text-align:right;">بمجرد ما عمل انتر البراوزر بعت البيانات دى كلها للسايت</p>
<p style="text-align:right;">هنا السيرفر بيلاقى انه محتاج يعمل عمليات منطقية معينة ويقارن اليوزر نيم والباسوورد دول باللى عنده فى قاعدة البيانات وخلافه فبيبعت للجزء جواه الخاص باللغة اللى مكتوب بيها الكود ده اللى فى حالتنا حيكون بى اتش بى</p>
<p style="text-align:right;">الجزء اللى فى السيرفر أو البرنامج يعنى اللى بيشغل كود البى اتش بى بيستقبل الطلب وينفذه ويطلع نتيجة عبارة عن كلام مكتوب بالاتش تى ام ال</p>
<p style="text-align:right;">السيرفر بيضم الكلام ده على الصفحة الرئيسية ويرد بيهم على اليوزر</p>
<p style="text-align:right;">
<p style="text-align:right;">
<p style="text-align:right;">أوك حنلاقى هنا كتب كتير وفيديوهات كتير بتبدأ تتكلم عن تاريح اللغة دى وتتغزل فيها شوية أنا حخش فى الموضوع بسرعة أكبر شوية</p>
<p style="text-align:right;">
<p style="text-align:right;">طيب حضرتك الوأتى عايز تبدأ تستعمل بى اتش بى</p>
<p style="text-align:right;">لو انتا على جهاز ويندوز وده غالبا للأسف فحتتحاج تنزل حاجة اسمها وامب</p>
<p style="text-align:right;">wamp</p>
<p style="text-align:right;">واعمل لها تثبيت</p>
<p style="text-align:right;">بعدها مفروض ان فى مكان معين فى الجهاز لو حطيت فيه ملفات بى اتش بى</p>
<p style="text-align:right;">وبعدها</p>
<p style="text-align:right;">رحت فتحت البراوزر بتاعك على</p>
<p style="text-align:right;">http://127.0.0.1/filename.php</p>
<p style="text-align:right;">انه يفتح معاك</p>
<p style="text-align:right;">ولو عملت فى المكان ده فايل اسمه</p>
<p style="text-align:right;">index.php</p>
<p style="text-align:right;">حيشتغل معاك من غير ما تكتب اسم الفايل أساسا</p>
<p style="text-align:right;">
<p style="text-align:right;">لو موصلتش انك قادر تكتب كود بى اتش بى وتشوف نتيجته عندك فى البراوزر تقدر تبص على اللنك ده على يوتيوب</p>
<p style="text-align:right;">http://www.youtube.com/results?search_query=wamp&amp;aq=f</p>
<p style="text-align:right;">الوأتى حنبدأ نشوف أشهر فنكشن فى البى اتش بى</p>
<p style="text-align:right;">phpinfo();</p>
<p style="text-align:right;">وده وظيفته اظهار معلومات عن الويب سيرفر والبى اتش بى</p>
<p style="text-align:right;">
<p style="text-align:right;">فى أمان الله والى اللقاء فى الحلقة التالية</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=58&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2011/05/07/%d8%b3%d9%84%d8%b3%d9%84%d8%a9-%d8%aa%d8%b9%d9%84%d9%8a%d9%85-%d8%a8%d9%89-%d8%a7%d8%aa%d8%b4-%d8%a8%d9%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux limits</title>
		<link>http://smartbasha.wordpress.com/2011/03/23/linux-limits/</link>
		<comments>http://smartbasha.wordpress.com/2011/03/23/linux-limits/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 22:24:35 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=56</guid>
		<description><![CDATA[Have you ever wander  about you linux system limitations ?? What if You tried to set the date to 1-1-100000000000000000000000 will your system accept it ?? what is the maximum number of terminals You can open ??10000000 or more ??may be less &#8230;may be it is the memory limit no more &#8230;.. &#160; &#160; ok [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=56&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you ever wander  about you linux system limitations ??</p>
<p>What if You tried to set the date to 1-1-100000000000000000000000 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
will your system accept it ??</p>
<p>what is the maximum number of terminals You can open ??10000000 or more ??may be less &#8230;may be it is the memory limit no more &#8230;..</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>ok</p>
<p>&nbsp;</p>
<p>I have no answer but I have the key &#8230;</p>
<p>/usr/include/limits.h</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p> <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  enjoooooooooooooy</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=56&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2011/03/23/linux-limits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>how to install rkhunter on centos</title>
		<link>http://smartbasha.wordpress.com/2011/03/22/how-to-install-rkhunter-on-centos/</link>
		<comments>http://smartbasha.wordpress.com/2011/03/22/how-to-install-rkhunter-on-centos/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 10:32:12 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=53</guid>
		<description><![CDATA[1- go to http://packages.sw.be/rkhunter/ 2-get the location /url of the needed package according to the version u use 3-wget [the url ] 4- yum install -Uvh [the package ] 5- if there is any dependcies it will tell You so take the package name and : yum install [package_name] 6-repeate step 4  again &#160; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=53&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1- go to http://packages.sw.be/rkhunter/</p>
<p>2-get the location /url of the needed package according to the version u use</p>
<p>3-wget [the url ]</p>
<p>4- yum install -Uvh [the package ]</p>
<p>5- if there is any dependcies it will tell You so take the package name and :</p>
<p>yum install [package_name]</p>
<p>6-repeate step 4  again</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=53&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2011/03/22/how-to-install-rkhunter-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>how to show cpu usage ,mem usage , uptime for a child processes of a process</title>
		<link>http://smartbasha.wordpress.com/2011/02/14/how-to-show-cpu-usage-mem-usage-uptime-for-a-child-processes-of-a-process/</link>
		<comments>http://smartbasha.wordpress.com/2011/02/14/how-to-show-cpu-usage-mem-usage-uptime-for-a-child-processes-of-a-process/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 12:06:21 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=50</guid>
		<description><![CDATA[SA I was asked by a developer to make a small script that take the ppid as a parameter then print and log some info about any child processes that it will fork . &#160; I used simply this line ps -o etime,pcpu,pmem &#8211;ppid [parent process id ] ps is a command that can be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=50&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SA</p>
<p>I was asked by a developer to make a small script that take the ppid as a parameter then print and log some info about any child processes that it will fork .</p>
<p>&nbsp;</p>
<p>I used simply this line</p>
<p>ps -o etime,pcpu,pmem  &#8211;ppid [parent process id ]</p>
<p>ps is a command that can be used to print some info about systems processes (Process State)</p>
<p>-o is a nice option which we tell what do we need to print about the process &#8230;</p>
<p>here I used:</p>
<p>etime : to show the up time</p>
<p>pcpu :  to show the cpu usage</p>
<p>pmem : to show the memory usage</p>
<p>&nbsp;</p>
<p>all what I had to do next is to use this command in a simple script depending on our  requirements .</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=50&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2011/02/14/how-to-show-cpu-usage-mem-usage-uptime-for-a-child-processes-of-a-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>ياترى لسه فى أمان؟؟</title>
		<link>http://smartbasha.wordpress.com/2011/01/08/%d9%8a%d8%a7%d8%aa%d8%b1%d9%89-%d9%84%d8%b3%d9%87-%d9%81%d9%89-%d8%a3%d9%85%d8%a7%d9%86%d8%9f%d8%9f/</link>
		<comments>http://smartbasha.wordpress.com/2011/01/08/%d9%8a%d8%a7%d8%aa%d8%b1%d9%89-%d9%84%d8%b3%d9%87-%d9%81%d9%89-%d8%a3%d9%85%d8%a7%d9%86%d8%9f%d8%9f/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 13:59:16 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[my life]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=47</guid>
		<description><![CDATA[السلام عليكم ورحمة الله وبركاته بجد الناس كلها وحشتنى اللى بتكلم معاهم تكنيكال والاصحاب اللى مش فى نفس المجال كل الناس &#160; النهارده حتكلم على حاجة معتقدش ان فى حد مجتش فى اله ولو مرات قليلة &#160; اللى هوا الاحساس بالأمان ياترى حاسين بيه؟؟ ياترى مستبعد انك تتخانق مع واحد ويطلع ظابط وتتشد على السجن [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=47&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>السلام عليكم ورحمة الله وبركاته</p>
<p>بجد الناس كلها وحشتنى</p>
<p>اللى بتكلم معاهم تكنيكال والاصحاب اللى مش فى نفس المجال</p>
<p>كل الناس</p>
<p>&nbsp;</p>
<p>النهارده حتكلم على حاجة معتقدش ان فى حد مجتش فى اله ولو مرات قليلة</p>
<p>&nbsp;</p>
<p>اللى هوا الاحساس بالأمان</p>
<p>ياترى حاسين بيه؟؟</p>
<p>ياترى مستبعد انك تتخانق مع واحد ويطلع ظابط وتتشد على السجن وتتعذب وتتعامل معاملة غير آدمية؟؟</p>
<p>آمن على بيتك وعلى أمك وعلى مراتك وعلى بنتك</p>
<p>حاسس براحة البال ونتا مسافر على الطريق بعربيتك بعد الساعة 10 بالليل؟؟</p>
<p>حاسس ان لو بنتك ماشية فى الشارع وحد تعرض لها الناس حتحوش؟؟؟</p>
<p>بصراحة انا شخصيا خلاص بقيت حاسس اننا عايشين فى غابة</p>
<p>والمشكلة ان اللى مفروض انهم يطردو المجرمين من المجتمع اتحولو لمجرمين</p>
<p>&nbsp;</p>
<p>كتير بقول المشكلة مش فى الواحد</p>
<p>بمعنى</p>
<p>&#8230;&#8230;&#8230;.</p>
<p>&nbsp;</p>
<p>ان الواحد بيبقا نفسه ان يبقا تفكيره انه يفضل فى مصر مهما حصل علشان نصلح</p>
<p>وعلشان منبقاش بعنا بلدنا</p>
<p>بس المشكلة الحقيقية مش فيا</p>
<p>&nbsp;</p>
<p>المشكلة ان فى يوم حكون مسئولة عن أسرة</p>
<p>بنى آدمة مفروض أحميها</p>
<p>وأطفال ضعاف فى وسط مجتمع متوحش</p>
<p>&nbsp;</p>
<p>شخصيا مستعد رقبتى تتقطع علشان بلدى وشرف ليا</p>
<p>لكن لو حطو ان تقع قنبلة على مصر ويموت فيها 100 ألف بنى ادم فى كفة</p>
<p>وان حد يلمس شعره منها فى كفة</p>
<p>&#8230;&#8230;&#8230;</p>
<p>يمون ال 100 ألف وربنا يرحم الجميع</p>
<p>&nbsp;</p>
<p>علشان كده بقول لكل الناس اللى ياااااما قلت لهم ان عمرى ما حطلع بره مصر انى خلاص مش مصر على القرار ده</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=47&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2011/01/08/%d9%8a%d8%a7%d8%aa%d8%b1%d9%89-%d9%84%d8%b3%d9%87-%d9%81%d9%89-%d8%a3%d9%85%d8%a7%d9%86%d8%9f%d8%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>how to backup your server files &amp;&amp; database</title>
		<link>http://smartbasha.wordpress.com/2010/04/28/how-to-backup-your-server-files-database/</link>
		<comments>http://smartbasha.wordpress.com/2010/04/28/how-to-backup-your-server-files-database/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 19:16:18 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=41</guid>
		<description><![CDATA[I was asked at spirula to write a simple script that will backup my server&#8217;s files ,and backup my db too , The files&#8217; backup script well as I am still a trainee and my server is v v simple they told me to write a small script that even copy ,it doesn&#8217;t matter but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=41&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was asked at spirula to write a simple script that will backup my server&#8217;s files ,and backup my db too ,</p>
<p style="text-align:center;">The files&#8217; backup script</p>
<p>well as I am still a trainee and my server is v v simple they told me to write a small script that even copy ,it doesn&#8217;t matter but I used rsync to synchornise the files instead of copying over .anyways this scripts has to</p>
<p>1- take a daily backup of the files</p>
<p>2-.tar.gz it</p>
<p>3-keep the last 6 days only backups and delete any before</p>
<p style="text-align:center;">
<p style="text-align:center;">
<blockquote><p>db_bkp.scr     files_bkp.scr<br />
zakishan:~# cat scripts/files_bkp.scr<br />
#!/bin/bash<br />
#this script was writeen by usama el far [u.elfar@gmail.com]<br />
#this script when put in corn and secheduled to run daily will backup  directory with all its contents using sync instead of copying every time .keeping last 7 days&#8217; backup files.,you just have to edit the next few lines and tell it the absolute path of both the directory which contain the files needed to be backed up and the directory which you want to backup your files to ,<br />
#space needed is .tar.gz of your directory space*7  for storing + 1* your directory space for uncompressing and compressing<br />
#please complete this<br />
#the directory of the backup files<br />
DIRECTORY=/home/usama/bkphere<br />
cd $DIRECTORY<br />
#the directory of the source files<br />
BKP_DIR=&#8217;/home/usama/testbkp&#8217;</p></blockquote>
<blockquote><p>yester=`date &#8211;date=&#8221;1 days ago&#8221; &#8220;+%d_%m_%Y&#8221;`<br />
today=`date  &#8220;+%d_%m_%Y&#8221;`<br />
yester=$yester</p></blockquote>
<blockquote><p>if test -f $yester.tar.gz<br />
then<br />
echo &#8220;founded yesterday&#8217;s backp and now copying it to begin sync&#8221;</p></blockquote>
<blockquote><p>tar xzvf $yester.tar.gz<br />
cp -r $yester $today</p></blockquote>
<blockquote><p>echo &#8220;copy done&#8221;<br />
else<br />
echo &#8220;did not found previous bkps ,so i will create a new from now&#8221;<br />
fi<br />
rsync -av $BKP_DIR $today<br />
tar czvf $today.tar.gz $today</p></blockquote>
<blockquote><p>if test $? -eq 0<br />
then<br />
rm -r $today<br />
else<br />
echo &#8220;I couldn&#8217;t tar and gzip it so I left the directory without removing&#8221;<br />
fi</p></blockquote>
<blockquote><p>from7=`date &#8211;date=&#8221;7 days ago&#8221; &#8220;+%d_%m_%Y&#8221;`</p>
<p>echo &#8220;now i am searching for previos backups from more than 1 week and remove it&#8221;</p>
<p>#ls -l $from7.tar.gz &gt;/dev/null 2&gt;/dev/null</p>
<p>if test -f $from7.tar.gz<br />
then<br />
echo &#8220;found the backup from 1 week and removing now&#8221;<br />
rm   $from7.tar.gz<br />
else<br />
echo &#8220;i did not found backups from 7 days ago to delete&#8221;<br />
fi</p></blockquote>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">The database backup script</p>
<p style="text-align:left;">Now lets go to the database part &#8230;</p>
<p style="text-align:left;">simply there is a single line command we can use to backup our db</p>
<p style="text-align:left;">which is</p>
<blockquote>
<p style="text-align:left;">mysqldump &#8211;opt -Q -u [DB_USERNAME]  -p[DB_PASSWORD]  [DB_NAME] &gt;[DBKP_FILE_NAME].sql</p>
</blockquote>
<p style="text-align:center;">to restore we use</p>
<blockquote>
<p style="text-align:left;">mysql -u root -p[MYSQL_ROOT_PASSWORD]  [DB_NAME]&lt;[DBKP_FILE_NAME].sql</p>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=41&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2010/04/28/how-to-backup-your-server-files-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>lemp server[Linux nginx mysql php]+wordpress+port forwarding + dynamic dns{2nd spirula task}</title>
		<link>http://smartbasha.wordpress.com/2010/04/25/lemp-serverlinux-nginx-mysql-phpwordpressport-forwarding_dynamic-dns2nd-spirula-task/</link>
		<comments>http://smartbasha.wordpress.com/2010/04/25/lemp-serverlinux-nginx-mysql-phpwordpressport-forwarding_dynamic-dns2nd-spirula-task/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 14:58:56 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=33</guid>
		<description><![CDATA[I would like to inform at the first that I wrote this after I finished my work and i couldn&#8217;t revise it well ,so fell free to ask,use ,or even correct whatever you want .Actually I mentioned the use/the reason for every single command here to give you the needed concept to search for the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=33&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I would like to inform at the first that I wrote this after I finished my work and i couldn&#8217;t revise it well ,so fell free to ask,use ,or even correct whatever you want .Actually I mentioned the use/the reason for every single command here to give you the needed concept to search for the reason if it didn&#8217;t work/gave you un expecteded o/p .</p>
<p>I would like too to mention that this tutorial helped me aloot even in writing this http://interfacelab.com/nginx-php-fpm-apc-awesome/</p>
<p>ok now i will write a fast How-to for my second task</p>
<p>I was asked to do the foloowing :</p>
<p>-Install a LEMP server {Linux nginx mysql php }</p>
<p>-choose any open source bloging project and install it {choosed wordpress}</p>
<p>-configure my ADSL router to port forward any requests to my server {http , ssh}</p>
<p>-install dynamic dns  client on my server and make it update my free sub-domian reserved at dyndns.net continously</p>
<p>Some notes &amp;&amp; background :</p>
<p>-nginx is a very powerfull web server which is well known with its great performance .although it is well known too that it dont have many modules and options like other web servers{apache &#8230;etc}.It is v v light though you can use it as a reversed proxy {This is actually one of the common uses for it }</p>
<p>-nginx dont handle php scripts from modules but the only way is to use fast cgi {http://en.wikipedia.org/wiki/FastCGI}as a concept .We can here use spawn-fgci or php-fpm .at the first i used spwn but later I moved to php-fpm .because it has less errors and better performance .</p>
<p>-php-fpm is actually a patching to the php source code no more .</p>
<p>-I choosed wordpress as I am using a P3 machine in my office,and wordpess is +performance than drupal{although drupal has many and many added options }</p>
<p>-I have a repotec ADSL router {will find the model and wirte it here later inshallah}.please note that there is some brands/models of ADSL modems+routers{including mine } don&#8217;t  provide the port forwarding in a stable way .and there is others that don&#8217;t work at all .</p>
<p>-As i don&#8217;t have a static IP in my ADSL line I have to setup a dynamic dns client that will update a sub dmoain registered for free on dyndns.net so that any time i want to access my server i will find that it has updated the real ip of my adsl line and binded it to my-sub-dmain.dyndns.net</p>
<p>Notes:</p>
<p>-Installation was not smooth at all .There was many and may depencies I had to reolve ,many errors to handle and so .For sorry I couldn&#8217;t take snapshots of all of them but :-I will try to remeber and search 2-You are welcomed to leave a comment/send me asking {actually I prefer to comment to let others see the question and the answer }</p>
<p style="text-align:center;">Now lets see the work plan</p>
<p style="text-align:left;">-install some depencies</p>
<p style="text-align:left;">-download php {i used 5.2.13 }</p>
<p style="text-align:left;">-download php-fpm {note that every php version has its php-fpm }</p>
<p style="text-align:left;">-compile,make,make install php</p>
<p style="text-align:left;">-some modules</p>
<p style="text-align:left;">-edit some php configuration files</p>
<p style="text-align:left;">-installing mysql</p>
<p style="text-align:left;">-install php5-mysql</p>
<p style="text-align:left;">-downloading and installing nginx</p>
<p style="text-align:left;">-configuring a default site for nginx</p>
<p style="text-align:left;">-starting &amp;&amp;testing</p>
<p style="text-align:left;">-adding them to startup</p>
<p style="text-align:left;">
<p style="text-align:center;">Step-by-step</p>
<p style="text-align:left;"><code>apt-get </code><code>install</code> <code>make</code> <code>bison flex gcc patch autoconf subversion </code><code>loca</code></p>
<div><code>apt-get </code><code>install</code> <code>libxml2-dev libbz2-dev libpcre3-dev libssl-dev zlib1g-dev libmcrypt-dev libmhash-dev libmhash2 libcurl4-openssl-dev libpq-dev libpq5 libsyck0-dev</code></div>
<div>#To me I found later many and many other depencies .</div>
<div><code>cd</code> <code>/usr/</code><code>local</code><code>/src/</code></div>
<div>#now you have to download php .choose a mirror from here ,copy its link location then wget it[http://www.php.net/get/php-5.2.13.tar.gz/from/a/mirror]..this is for php 5.2.13 which i used,feel free to choose any other version you want,just make sure you can find its php-fpm from here [http://php-fpm.org/downloads/]</div>
<div>tar zxvf  [php tarball name ]</div>
<div>#download its php-fpm from here [http://php-fpm.org/downloads/]</div>
<div>wget  [php-fpm source ]</div>
<div>#patch</div>
<div><code>gzip</code> <code>-</code><code>cd</code> <code>php-5.2.8-fpm-0.5.10.</code><code>diff</code><code>.gz |</code> <code>patch -d php-5.2.8 -p1</code></div>
<div>#compile &amp; install php</div>
<div><code>./configure --</code><code>enable</code><code>-fastcgi --</code><code>enable</code><code>-fpm --with-mcrypt --with-zlib --</code><code>enable</code><code>-mbstring --disable-pdo --with-pgsql --with-curl --disable-debug --</code><code>enable</code><code>-pic --disable-rpath --</code><code>enable</code><code>-inline-optimization --with-bz2 --with-xml --with-zlib --</code><code>enable</code><code>-sockets --</code><code>enable</code><code>-sysvsem --</code><code>enable</code><code>-sysvshm --</code><code>enable</code><code>-pcntl --</code><code>enable</code><code>-mbregex --with-mhash --</code><code>enable</code><code>-xslt --</code><code>enable</code><code>-memcache --</code><code>enable</code><code>-zip --with-pcre-regex --with-mysql</code></div>
<div>#at the last command you can have a look and remove any options you are sure you will not need it ..BUT &#8230;.please take care .To me I didn&#8217;t add &#8211;with-mysql at the first .this led me to many troubles ..{I will talk about this later inshallah}</div>
<div>#now installing</div>
<div><code>make</code> <code>all </code><code>install</code></div>
<div>#I dunno why this command but it is found in all How-Tos I used</div>
<div>
<div><code>strip /usr/</code><code>local</code><code>/bin/php-cgi</code></div>
</div>
<div>#installing some modules</div>
<div><code>pecl </code><code>install</code> <code>memcache</code></p>
<div><code>pecl </code><code>install</code> <code>apc</code></div>
<div><code>pecl </code><code>install</code> <code>syck-beta</code></div>
</div>
<div><code>cp</code> <code>/usr/</code><code>local</code><code>/src/php-5.2.8/php.ini-recommended /usr/</code><code>local</code><code>/lib/php.ini</code></div>
<div><code>mkdir</code> <code>/etc/php/</code></p>
<div><code>ln</code> <code>-s /usr/</code><code>local</code><code>/lib/php.ini /etc/php/php.ini</code></div>
<div><code>ln</code> <code>-s /usr/</code><code>local</code><code>/etc/php-fpm.conf /etc/php/php-fpm.conf</code></div>
</div>
<div>#now we have to edit <strong>/etc/php/php-fpm.conf to set the user and group options</strong></div>
<div><code>&lt;</code><code>value</code> <code>name</code><code>=</code><code>"owner"</code><code>&gt;www-data&lt;/</code><code>value</code><code>&gt;</code></p>
<div><code>&lt;</code><code>value</code> <code>name</code><code>=</code><code>"group"</code><code>&gt;www-data&lt;/</code><code>value</code><code>&gt;</code></div>
<div><code>&lt;</code><code>value</code> <code>name</code><code>=</code><code>"user"</code><code>&gt;www-data&lt;/</code><code>value</code><code>&gt;</code></div>
<div><code>&lt;</code><code>value</code> <code>name</code><code>=</code><code>"group"</code><code>&gt;www-data&lt;/</code><code>value</code><code>&gt;</code></div>
</div>
<div>#now its time for nginx,feel free to choose the vesrion you want</div>
<div><code>cd</code> <code>..</code></p>
<div><code>sudo</code> <code>wget <a href="http://sysoev.ru/nginx/nginx-0.6.35.">http://sysoev.ru/nginx/nginx-0.6.35.</a></code><code>tar</code><code>.gz</code></div>
<div><code>sudo</code> <code>tar</code> <code>zxvf nginx-0.6.35.</code><code>tar</code><code>.gz</code></div>
<div><code>sudo</code> <code>rm</code> <code>-f nginx-0.6.35.</code><code>tar</code><code>.gz</code></div>
<div><code>cd</code> <code>nginx-0.6.35</code></div>
<div><code>sudo</code> <code>./configure --sbin-path=/usr/</code><code>local</code><code>/sbin --with-http_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module</code></div>
<div><code>sudo</code> <code>make</code> <code>&amp;&amp; </code><code>sudo</code> <code>make</code> <code>install</code></div>
</div>
<div>#lets make it easier to reach config file</div>
<div><code>ln</code> <code>-s /usr/</code><code>local</code><code>/nginx/conf /etc/nginx</code></div>
<div>#at <strong>/etc/nginx/fastcgi_params </strong>we have to add some parameters for fast cgi</div>
<div><code>fastcgi_connect_timeout 60;</code></p>
<div><code>fastcgi_send_timeout 180;</code></div>
<div><code>fastcgi_read_timeout 180;</code></div>
<div><code>fastcgi_buffer_size 128k;</code></div>
<div><code>fastcgi_buffers 4 256k;</code></div>
<div><code>fastcgi_busy_buffers_size 256k;</code></div>
<div><code>fastcgi_temp_file_write_size 256k;</code></div>
<div><code>fastcgi_intercept_errors on;</code></div>
</div>
<div>#now we have to make a startup file called /etc/init.d/nginx like this :  note that I have added a comment to inform you with the end of the file</div>
<div>#! /bin/sh</p>
<p>### BEGIN INIT INFO<br />
# Provides:          nginx<br />
# Required-Start:    $all<br />
# Required-Stop:     $all<br />
# Default-Start:     2 3 4 5<br />
# Default-Stop:      0 1 6<br />
# Short-Description: starts the nginx web server<br />
# Description:       starts nginx using start-stop-daemon<br />
### END INIT INFO</p>
<p>PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin<br />
DAEMON=/usr/local/sbin/nginx<br />
NAME=nginx<br />
DESC=nginx</p>
<p>test -x $DAEMON || exit 0</p>
<p># Include nginx defaults if available<br />
if [ -f /etc/default/nginx ] ; then<br />
. /etc/default/nginx<br />
fi</p>
<p>set -e</p>
<p>case &#8220;$1&#8243; in<br />
start)<br />
echo -n &#8220;Starting $DESC: &#8220;<br />
start-stop-daemon &#8211;start &#8211;quiet &#8211;pidfile /usr/local/nginx/logs/$NAME.pid \<br />
&#8211;exec $DAEMON &#8212; $DAEMON_OPTS<br />
echo &#8220;$NAME.&#8221;<br />
;;<br />
stop)<br />
echo -n &#8220;Stopping $DESC: &#8220;<br />
start-stop-daemon &#8211;stop &#8211;quiet &#8211;pidfile /usr/local/nginx/logs/$NAME.pid \<br />
&#8211;exec $DAEMON<br />
echo &#8220;$NAME.&#8221;<br />
;;<br />
restart|force-reload)<br />
echo -n &#8220;Restarting $DESC: &#8220;<br />
start-stop-daemon &#8211;stop &#8211;quiet &#8211;pidfile \<br />
/usr/local/nginx/logs/$NAME.pid &#8211;exec $DAEMON<br />
sleep 1<br />
start-stop-daemon &#8211;start &#8211;quiet &#8211;pidfile \<br />
/usr/local/nginx/logs/$NAME.pid &#8211;exec $DAEMON &#8212; $DAEMON_OPTS<br />
echo &#8220;$NAME.&#8221;<br />
;;<br />
reload)<br />
echo -n &#8220;Reloading $DESC configuration: &#8220;<br />
start-stop-daemon &#8211;stop &#8211;signal HUP &#8211;quiet &#8211;pidfile /usr/local/nginx/logs/$NAME.pid \<br />
&#8211;exec $DAEMON<br />
echo &#8220;$NAME.&#8221;<br />
;;<br />
*)<br />
N=/etc/init.d/$NAME<br />
#echo &#8220;Usage: $N {start|stop|restart|force-reload}&#8221; &amp;gt;&amp;2<br />
exit 1<br />
;;<br />
esac</p>
<p>exit 0</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;This is the end of the file &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-#</p>
</div>
<p><code>mkdir</code> <code>/usr/</code><code>local</code><code>/nginx/sites-enabled</code></p>
<div><code>sudo</code> <code>ln</code> <code>-s /usr/</code><code>local</code><code>/nginx/sites-enabled /etc/sites</code></div>
<div>
<p>#And now let’s add a conf file for our default site at <strong>/etc/sites/default.conf</strong>.  The contents:,note that this some times this is in different file .</p>
<div id="highlighter_954717" class="syntaxhighlighter">
<div class="bar">
<div class="toolbar"><a class="item viewSource" style="width:16px;height:16px;" title="view source" href="http://interfacelab.com/nginx-php-fpm-apc-awesome/#viewSource"><br />
</a><a class="item about" style="width:16px;height:16px;" title="?" href="http://interfacelab.com/nginx-php-fpm-apc-awesome/#about"></a></div>
</div>
<div class="lines">
<div class="line alt1"><span class="content"><span class="block" style="margin-left:0!important;"><code class="plain">server {</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">listen *:80;</code></span></span></div>
<div class="line alt1"><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">location / {</code></span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">root   /</code><code class="keyword">var</code><code class="plain">/www/</code><code class="keyword">default</code><code class="plain">/pub;</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">index index.php;</code></span></span></div>
<div class="line alt1"><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="preprocessor"># if file exists return it right away</code></span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="keyword">if</code> <code class="plain">(-f $request_filename) {</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:168px!important;"><code class="keyword">break</code><code class="plain">;</code></span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">}</code></span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="preprocessor"># otherwise rewrite the fucker</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="keyword">if</code> <code class="plain">(!-e $request_filename) {</code></span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:168px!important;"><code class="plain">rewrite ^(.+)$ /index.php$1 last;</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:168px!important;"><code class="keyword">break</code><code class="plain">;</code></span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">}</code></span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">}</code></span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="preprocessor"># if the request starts with our frontcontroller, pass it on to fastcgi</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">location ~ ^/index.php</code></span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">{</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">fastcgi_pass 127.0.0.1:9000;</code></span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">fastcgi_param SCRIPT_FILENAME /</code><code class="keyword">var</code><code class="plain">/www/</code><code class="keyword">default</code><code class="plain">/pub$fastcgi_script_name;</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">fastcgi_param PATH_INFO $fastcgi_script_name;</code></span></span></div>
<div class="line alt1"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">include /usr/local/nginx/conf/fastcgi_params;</code></span></span></div>
<div class="line alt2"><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">}</code></span></span></div>
<div class="line alt1"><span class="content"><span class="block" style="margin-left:0!important;"><code class="plain">}</code></span></span></div>
</div>
</div>
</div>
<div>#now start</div>
<div><span class="content"><span class="block" style="margin-left:0!important;"> <code class="plain">php-fm start</code></span></span></p>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;"> <code class="plain">/etc/init.d/nginx start</code></span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">#then  test </span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">-create a html file called index.htm which just contain any sentense  like hi this is my server &#8230; </span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">-open a browser then write the ip address of the server &#8230;you must see the sentense </span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">-delete the first file and create another one called index.php and copy&amp; paste these lines into it</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">&lt;?php</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;"> echo &#8220;if i saw ONLY this sentense ,then webserver and php are running &#8220;;<br />
</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">?&gt;</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">-you must see this only </span></span><span class="content"><span class="block" style="margin-left:0!important;">&#8220;if i saw ONLY this sentense ,then webserver and php are running &#8220;</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">#ok ,now congratulations ,your server is running ,just we have to make it startup with  the system startup automaticlly </span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">update-rc.d nginx defaults</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">#this will add the script we created before {/etc/init.d/nginx } to the directories that control the run levels so that it start with the system startup</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">#now we have to create a nother 1 for php-fpm</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">vi /etc/php-fpm</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">#then add this line</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">php-fpm $1</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">#then add it to startup</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">update-rc.d php-fpm</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">#note: this didn&#8217;t work with me so i edited /etc/init.d/nginx and added the line</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">php-fpm start </span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">and</span></span></div>
<div class="line alt2"><span class="content"><span class="block" style="margin-left:0!important;">php-fpm stop at the two condition parts </span></span></div>
<div class="line alt2" style="text-align:center;"><span class="content"><span class="block" style="margin-left:0!important;">Port forwarding </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">simply  configuring port forwarding on my ADSL modem+routr means that I am telling my router to redirect requests that come to defined ports to a local machine that is connected to the lan card .</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">Simply we will need to port-foward 2 ports :</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">- 80 which the web server use</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">- 22 which ssh use {you may prefer ot to add it if you dont ssh your server from any other network}</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">port forwarding is pretty easy ,you can find the instructions for your router model from [www.portforward.com]</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">it is some times called virtual server too</span></span></div>
<div class="line alt2" style="text-align:center;"><span class="content"><span class="block" style="margin-left:0!important;">dynamic dns </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#ok ,now we have a problem ,which is &#8230;&#8230;every time I restart my router it is granted a new ip address fromt he isp so if i found that this is myu ip today [x.x.x.x] then tried after the next reboot to use it  iw ill find that it has changed &#8230;.so as we are having a dynamic changing of ip addresses we will solve it with dynamic dns <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">&#8230;simsply i will reserve a free sub domain then install a small program called dynamic dns client on my server ..this client will have to update my subdomain with the new ip address every time it is changed &#8230;so i can access my server through this sub domain </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#go to www.dyndns.com</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">create a free account </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">choose to add a host</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">create a sub domain </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">then </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#install inadyn</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">apt-get install inadyn </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">now use this command </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">inadyn &#8211;username [username u reserved at dyndns] &#8211;password [your password ] &#8211;update_period_sec 600 &#8211;alias [your sub domain name] &amp;</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#try to access your server from internet &#8230;PLEASE note that if you tried from the local network you MUST use any online proxy </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#finally we have to create a /etc/init.d file for inadyn </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#here is mine {note that i will tell you in a comment that this is the end if the file }</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#!/bin/sh</p>
<p>case &#8220;$1&#8243; in<br />
&#8220;start&#8221;)inadyn &#8211;username zakishan &#8211;password master77 &#8211;update_period_sec 600 &#8211;alias zakishan.dnsalias.net &amp;<br />
;;<br />
&#8220;stop&#8221;)<br />
x=`pgrep inadyn`<br />
kill -9 $x<br />
;;<br />
*)echo enter valid start/stop<br />
esac</p>
<p></span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#finally add it to the system startup using update-rc.d</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">update-rc.d inadyn defaults</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#reboot your server ,check your log files ,test your server again and &#8230;..get ready to install the word press &#8230;..<br />
</span></span></div>
<div class="line alt2" style="text-align:center;"><span class="content"><span class="block" style="margin-left:0!important;">Word press installation </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#You can easily follow this [http://codex.wordpress.org/Installing_WordPress],I just quoted some of its instructions<br />
</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#simply wordpress will use our mysql database so we have to</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">-create a username and password for it to use</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">-create a databse</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">-grant the user privileges on this DB</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">-edit the wordpress configuration files and tell him what user ,pass and db will it use </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">-run the installation script which will create the tables the application need  and set the configuration entries </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">ok .now lets begin with mysql</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">mysql -u root -p</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#it will ask you about the password you entered when you installed it </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">now </span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">create user [username] identfied by [password ];</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">then</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">create database [db-name];</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">then</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">grant [username] *.* on [db-name]</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#now we have to download the wordpress project tarball</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">wget http://wordpress.org/latest.tar.gz</span></span></div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;">#extract it to the path you want inside the root directory of the site you created before#</span></span>Rename the <tt>wp-config-sample.php</tt> file to <tt>wp-config.php</tt></div>
<div class="line alt2" style="text-align:left;">#edit it ,find these lines  and give it the username/password/db</div>
<div class="line alt2" style="text-align:left;">#now from your browser access the install.php file inside the wp-admin directory which you can found in your extracted folder of wordpress inside the root /whatever where you placed it</div>
<div class="line alt2" style="text-align:left;">&#8230;&#8230;</div>
<div class="line alt2" style="text-align:left;">congratulaitions</div>
<div class="line alt2" style="text-align:left;"><span class="content"><span class="block" style="margin-left:0!important;"><br />
</span></span></div>
</div>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:3829px;width:1px;height:1px;">
<p>And now let’s add a conf file for our default site at <strong>/etc/sites/default.conf</strong>.  The contents:</p>
<div id="highlighter_954717" class="syntaxhighlighter">
<div class="bar">
<div class="toolbar"><a class="item viewSource" style="width:16px;height:16px;" title="view source" href="http://interfacelab.com/nginx-php-fpm-apc-awesome/#viewSource">view source</a></p>
<div class="item copyToClipboard"></div>
<p><a class="item printSource" style="width:16px;height:16px;" title="print" href="http://interfacelab.com/nginx-php-fpm-apc-awesome/#printSource">print</a><a class="item about" style="width:16px;height:16px;" title="?" href="http://interfacelab.com/nginx-php-fpm-apc-awesome/#about">?</a></p>
</div>
</div>
<div class="lines">
<div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left:0!important;"><code class="plain">server {</code></span></span></div>
<div class="line alt2"><code class="number">02.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">listen *:80;</code></span></span></div>
<div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt2"><code class="number">04.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">location / {</code></span></span></div>
<div class="line alt1"><code class="number">05.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">root   /</code><code class="keyword">var</code><code class="plain">/www/</code><code class="keyword">default</code><code class="plain">/pub;</code></span></span></div>
<div class="line alt2"><code class="number">06.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">index index.php;</code></span></span></div>
<div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt2"><code class="number">08.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="preprocessor"># if file exists return it right away</code></span></span></div>
<div class="line alt1"><code class="number">09.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="keyword">if</code> <code class="plain">(-f $request_filename) {</code></span></span></div>
<div class="line alt2"><code class="number">10.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:168px!important;"><code class="keyword">break</code><code class="plain">;</code></span></span></div>
<div class="line alt1"><code class="number">11.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">}</code></span></span></div>
<div class="line alt2"><code class="number">12.</code><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt1"><code class="number">13.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="preprocessor"># otherwise rewrite the fucker</code></span></span></div>
<div class="line alt2"><code class="number">14.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="keyword">if</code> <code class="plain">(!-e $request_filename) {</code></span></span></div>
<div class="line alt1"><code class="number">15.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:168px!important;"><code class="plain">rewrite ^(.+)$ /index.php$1 last;</code></span></span></div>
<div class="line alt2"><code class="number">16.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:168px!important;"><code class="keyword">break</code><code class="plain">;</code></span></span></div>
<div class="line alt1"><code class="number">17.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">}</code></span></span></div>
<div class="line alt2"><code class="number">18.</code><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt1"><code class="number">19.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">}</code></span></span></div>
<div class="line alt2"><code class="number">20.</code><span class="content"><span class="block" style="margin-left:0!important;"> </span></span></div>
<div class="line alt1"><code class="number">21.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="preprocessor"># if the request starts with our frontcontroller, pass it on to fastcgi</code></span></span></div>
<div class="line alt2"><code class="number">22.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">location ~ ^/index.php</code></span></span></div>
<div class="line alt1"><code class="number">23.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">{</code></span></span></div>
<div class="line alt2"><code class="number">24.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">fastcgi_pass 127.0.0.1:9000;</code></span></span></div>
<div class="line alt1"><code class="number">25.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">fastcgi_param SCRIPT_FILENAME /</code><code class="keyword">var</code><code class="plain">/www/</code><code class="keyword">default</code><code class="plain">/pub$fastcgi_script_name;</code></span></span></div>
<div class="line alt2"><code class="number">26.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">fastcgi_param PATH_INFO $fastcgi_script_name;</code></span></span></div>
<div class="line alt1"><code class="number">27.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:112px!important;"><code class="plain">include /usr/local/nginx/conf/fastcgi_params;</code></span></span></div>
<div class="line alt2"><code class="number">28.</code><span class="content"><code class="spaces"> </code><span class="block" style="margin-left:56px!important;"><code class="plain">}</code></span></span></div>
<div class="line alt1"><code class="number">29.</code><span class="content"><span class="block" style="margin-left:0!important;"><code class="plain">}</code></span></span></div>
</div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=33&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2010/04/25/lemp-serverlinux-nginx-mysql-phpwordpressport-forwarding_dynamic-dns2nd-spirula-task/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>how to LVM on RAID +encrypted /home partition</title>
		<link>http://smartbasha.wordpress.com/2010/04/20/how-to-lvm-on-raid-encrypted-home-partition/</link>
		<comments>http://smartbasha.wordpress.com/2010/04/20/how-to-lvm-on-raid-encrypted-home-partition/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 14:00:09 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=27</guid>
		<description><![CDATA[Asslamo 3likom wara7matt Allah , I was asked by spirula[www.spirulasystems.com] as the 1st task in my training program to finish these tasks 1-prepare a small p2/3 p.c  with 3 hard disks 2- make the 3 HDs as the following : -The 1st one as the root system - The other 2 hard disks are in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=27&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Asslamo 3likom wara7matt Allah ,</p>
<p>I was asked by spirula[www.spirulasystems.com] as the 1st task in my training program to finish these tasks</p>
<p>1-prepare a small p2/3 p.c  with 3 hard disks</p>
<p>2- make the 3 HDs as the following :</p>
<p>-The 1st one as the root system</p>
<p>- The other 2 hard disks are in raid0 {mirrored }</p>
<p>-Create a volume group on the raid</p>
<p>-create a /home partition encrypted logical volume</p>
<p>- add it to fstab to make it be mounted with the system start up</p>
<p>Now we will begin</p>
<p style="text-align:center;">Installing the system</p>
<p style="text-align:left;">-I used the Debian lenny net install cd .You can get it from here [http://www.debian.org/CD/netinst/]</p>
<p style="text-align:left;">-I will escape the installation part to make the topic more short but you can get the installation instructions from here [http://www.debian.org/releases/stable/i386/].For more short steps just use google and you will find many</p>
<p style="text-align:center;">RAID0 installation</p>
<p style="text-align:left;">-for more information about RAID .You can have a look at my post about it here [http://smartbasha.wordpress.com/2010/04/15/the-raid-technology/].It is totally quoted from its page on wikipedia</p>
<p style="text-align:left;">-Now the steps:</p>
<p style="text-align:left;">-apt-get update                                  #this will refresh the repositery</p>
<p style="text-align:left;">-apt-get upgrade                              #this will upgrade the installed packages</p>
<p style="text-align:left;">-apt-get install openssh-server  #I have to access the server remotely thats why i installed ssh</p>
<p style="text-align:left;">&gt;Now I have hda formatted and have the / file system on it [including /home ].so I will begin working with hdb and hdc</p>
<p style="text-align:left;">-fdisk  /dev/hdb     #fdisk is the utitlity to edit the partition table for any H.D .Now I followed some steps and formatted the harddisk as 1 row partition{with no file system on it}</p>
<p style="text-align:left;">-fdisk /dev/hdc   #did the same with the 3rd H.D</p>
<p style="text-align:left;">&gt;&gt;Now I have to install mdadm .mdadm is the utitlity which we will use to initiate the raid array and create the raid0 .it has a previous name in old versions i dont remeber now</p>
<p style="text-align:left;">-apt-get install mdadm</p>
<p style="text-align:left;">&gt;&gt;now we have to create the raid0 array which contain hdb1 and hdc1 {the 2 partitions we got after fdisk the 2 H.Ds}</p>
<p style="text-align:left;">-mdadm -C /dev/md0 &#8211;level=raid0 &#8211;raid-devices=2 /dev/hdb1 /dev/hdc1</p>
<p style="text-align:left;">&gt;&gt;Lets check if it really worked and the system now has this array/no</p>
<p style="text-align:left;">-cat /proc/mdstat</p>
<p style="text-align:left;">&gt;&gt;we should have something like information about our raid array.Here we have successfully created the RAID part and have to go to the LVM part</p>
<p style="text-align:center;">LVM</p>
<p style="text-align:left;">pvcreate /dev/md0  #pvcreate initializes PhysicalVolume for later use by the Logical Volume<br />
Manager (LVM).and told him to use md0</p>
<p style="text-align:left;">pvdisplay               #We should have here md0 listed</p>
<p style="text-align:left;">vgcreate vg0 /dev/md0</p>
<p style="text-align:left;">lvcreate &#8211;name homes &#8211;size 5G vg0  #now i have created a  logcial volume of 5 G.B using the vg0</p>
<p style="text-align:center;">Encryption</p>
<p style="text-align:left;">cryptsetup luksFormat /dev/vg0/homes                    #initializes a LUKS partition and sets the  initial  key,,we will be asked to enter a key to be used in the encryption<br />
cryptsetup isLuks /dev/vg0/homes                   #this command for sorry I tried it with true and false arguments and in all times it give no answer .after search i found that the best way to make sure it was successed is to check its exit status</p>
<p style="text-align:left;">echo $?</p>
<p style="text-align:left;">&gt;&gt;it must give 0</p>
<p style="text-align:left;">cryptsetup luksOpen /dev/vg0/homes secureddev    #it creates a mapping to it as secureddev</p>
<p style="text-align:left;">dmsetup info secureddev             #get some info about</p>
<p style="text-align:left;">mkfs.ext3 /dev/mapper/secureddev     #format the encrypted volume with ext3 file system</p>
<p style="text-align:left;">mount -t ext3 /dev/mapper/secureddev /temp   #to mount it</p>
<p style="text-align:left;">
<p style="text-align:left;">&gt;&gt;ok,now i have to transfer all the /home to the new volume .</p>
<p style="text-align:left;">cp -rp /home/* /temp</p>
<p style="text-align:left;">&gt;&gt;final step is to make it be mounted with startup</p>
<p style="text-align:left;">&gt;&gt;After reading many articles about this I found this is the most simple here [http://www.howtoforge.com/automatically-unlock-luks-encrypted-drives-with-a-keyfile]</p>
<p style="text-align:left;">&gt;&gt;so ,I &#8230;&#8230;&#8230;&#8230;</p>
<p style="text-align:left;">cryptsetup luksAddKey /dev/vg0/[my_partition]    /etc/volume_key</p>
<p style="text-align:left;">&gt;&gt;now lets add this to the /etc/crypttab file</p>
<p style="text-align:left;">secureddev      /dev/vg0/homes  /etc/volume_key luks</p>
<p style="text-align:left;">&gt;&gt;then add this to /etc/fstab to make the system automatic mount it</p>
<p style="text-align:left;">/dev/mapper/secureddev  /home   ext3    defaults        0       2</p>
<p style="text-align:left;">&gt;&gt;now ,my task is done &#8230;rebooted ,tested &#8230;&#8230;every thinh is okay .thank you</p>
<p style="text-align:left;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=27&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2010/04/20/how-to-lvm-on-raid-encrypted-home-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
		<item>
		<title>The RAID technology</title>
		<link>http://smartbasha.wordpress.com/2010/04/15/the-raid-technology/</link>
		<comments>http://smartbasha.wordpress.com/2010/04/15/the-raid-technology/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 00:11:41 +0000</pubDate>
		<dc:creator>smartbasha</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://smartbasha.wordpress.com/?p=25</guid>
		<description><![CDATA[Asslamo 3likom , Today I am going to share some informatio about what I AM CURRENTLY TRYING TO GET CLOSER AND DO &#8230;these capital words is a warning that I don&#8217;t have a big experince about it but &#8230;.I am trying just to share here .this doesnt mean that questions or comments are not welcomed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=25&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Asslamo 3likom ,</p>
<p>Today I am going to share some informatio about what I AM CURRENTLY TRYING TO GET CLOSER AND DO &#8230;these capital words is a warning that I don&#8217;t have a big experince about it but &#8230;.I am trying just to share here .this doesnt mean that questions or comments are not welcomed <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . and yes .. i will talk here about RAID 0,1 and 5 only</p>
<p>First :What is RAID ?</p>
<p>RAID is: Redundant Array of Inexpensive Disks &#8230;but later mrketrs changed it into Redundant Array of Independant Disks &#8230;{v  intelegant}</p>
<p>RAID has many schemes /architectures named by the word RAID then a number like RAID 0 ,1,&#8230;..etc</p>
<p>RAID various designs always try to enhance 1 of 2 things: Reliability / performance .</p>
<p>RAID array: when there is multiple disks are set up to use the RAID technology they are a RAID array &#8230;&#8230;&#8230;.finally the computer will see this Array as a single disk .</p>
<p>well,We have now 2 choices for Implementing RAID .1 is the hardware solutions and the software solution.Think of it like hardware and software firewalls .You can have a firewall device in your network or you can have a machine with s/w installed on it to turn it into a Firewall .and the applications will be the only who don&#8217;t know anything about your RAID</p>
<p>if you choose the h/w your operating system will not even know that you are using raid .if you used the software solution you will have to learn how to make it using your OS .I am going to write a post about that v soon inshallah .</p>
<p>now ,please pay attention to these 3 concepts here :</p>
<p>1-Mirroring : having two disks mirrored means that you are writing identical data to more than one disk.</p>
<p>2-Striping: means splitting data across more than one disk</p>
<p>3-Error correction: simply ,there is a redundant data stored to allow problems to be detected and POSSIBLY repaired .</p>
<p>please again and again don&#8217;t continue reading this unless you understand these 3 words:mirroring,stripping and Error correction .if not go back /search &#8230;..and so</p>
<p>From here I will begin talking about RAID levels .open this link now and find the table which compares different levels of RAID ..don&#8217;t close it but keep it opened  in another tab in your browser and continue reading my words here</p>
<p>RAID 0   {Stripped disks} :</p>
<p>It distribues data across multiple disks ,so if we have disk0 and disk1 in RAID0 this means that the data is written to the 2 H.Ds in the same time which means  better performance .but this mean that we dont have another copy of data written here &#8230;if 1 of the 2 disks fail you lose ALL THE DATA ON THE 2 disks{ALL the data saved to the array simply}.</p>
<p>Now: Can I add additional hard disk to the this RAID0 ??yes ,logicically why not?? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>RAID1:</p>
<p>RAID1 mirrors the contents of the disks {1:1}..the contents of each disk is identical .data written here,here and there &#8230;lets think here &#8230;do we have incresed perofrmance??no ..ok do we have better avaiablilty? efcourse yes &#8230;.look at the table in the posted before link .</p>
<p>RAIND5:</p>
<p>here You will need&gt;2 disks .at least 3 .simply what happens in RAID5 is Strped set with ditributed parity or interactive parity This requires all drives but one to be present to operate .This maens that single disk failure wont be a problem .you can recover and replace later but&#8230;its failure will affect the performance .</p>
<p>Well .I have now to thank wikipedia v v v v much as it was my reference in writing this &#8230;actually you can say that this is just some quotes of the RAID page here [http://en.wikipedia.org/wiki/Redundant_array_of_independent_disks]</p>
<p>Now I am going to write a Topic about : Linux software RAID</p>
<p>thank you</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smartbasha.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smartbasha.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smartbasha.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smartbasha.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smartbasha.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smartbasha.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smartbasha.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smartbasha.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smartbasha.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smartbasha.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smartbasha.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smartbasha.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smartbasha.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smartbasha.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smartbasha.wordpress.com&amp;blog=7496926&amp;post=25&amp;subd=smartbasha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smartbasha.wordpress.com/2010/04/15/the-raid-technology/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1cebe2dddf84a139fbf0a78637969024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">smartbasha</media:title>
		</media:content>
	</item>
	</channel>
</rss>
