<?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>Hayatgarip's Blog</title>
	<atom:link href="http://hayatgarip.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hayatgarip.wordpress.com</link>
	<description>Bilişim Günlüğüm</description>
	<lastBuildDate>Fri, 01 Oct 2010 12:08:05 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hayatgarip.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Hayatgarip's Blog</title>
		<link>http://hayatgarip.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hayatgarip.wordpress.com/osd.xml" title="Hayatgarip&#039;s Blog" />
	<atom:link rel='hub' href='http://hayatgarip.wordpress.com/?pushpress=hub'/>
		<item>
		<title>MySQL COALESCE</title>
		<link>http://hayatgarip.wordpress.com/2010/10/01/mysql-coalesce/</link>
		<comments>http://hayatgarip.wordpress.com/2010/10/01/mysql-coalesce/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 11:57:17 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[coalesce]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/?p=89</guid>
		<description><![CDATA[Coalesce fonksiyonu, değeri boş olan bir alanın değerinin boş değilde fonksiyonda parametre olarak verilen değeri döndürmesini sağlar. Örneğin user diye bir tablomuz olsun ve bu tablonun alanlarıda ad, soyad, tel, sifre olsun.Ancak bütün kullanıcıların tel numarası olmasın. Select ad,soyad,COALESCE(&#8216;Telefonu Yok&#8217;,tel),sifre From user; diye bir sorgu yaptığımızda tel numarası olmayan kullanıcılar için &#8216;Telefonu Yok&#8217; ibaresi çıkar.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=89&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Coalesce fonksiyonu, değeri boş olan bir alanın değerinin boş değilde fonksiyonda parametre olarak verilen değeri döndürmesini sağlar.<br />
Örneğin user diye bir tablomuz olsun ve bu tablonun alanlarıda ad, soyad, tel, sifre olsun.Ancak bütün kullanıcıların tel numarası olmasın.</p>
<p>Select ad,soyad,COALESCE(&#8216;Telefonu Yok&#8217;,tel),sifre  From user;<br />
diye bir sorgu yaptığımızda tel numarası olmayan kullanıcılar için &#8216;Telefonu Yok&#8217; ibaresi çıkar.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=89&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2010/10/01/mysql-coalesce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>XAMPP Virtual Host Ayarları &#8211; Windows</title>
		<link>http://hayatgarip.wordpress.com/2010/02/22/xampp-virtual-host-ayarlari-windows/</link>
		<comments>http://hayatgarip.wordpress.com/2010/02/22/xampp-virtual-host-ayarlari-windows/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 11:07:13 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[XAMPP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Virtual Host]]></category>
		<category><![CDATA[XAMMP]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/2010/02/22/xampp-virtual-host-ayarlari-windows/</guid>
		<description><![CDATA[Xampp paketi ile kendi bilgisayarımda php-mysql uygularımı çalıştırırken artık localhost yazmaktan gına geldi.Bunun üzerine küçük bir araştırma yaptım ve sanal domainler olusturarak istersem projemin domain adıyla bile kendi bilgisarımda sanal domain adları yaratabildiğimi gördüm. Şimdi gelelim bu işin nasıl yapıldığına. 1.Bilgisayarınızda xampp ı kurduğunuz dizinde X:\\apache\conf\extra\httpd-vhosts.conf dosyasını herhangi bir text editörü ile açıyoruz. 2.Açtığımız httpd-vhosts.conf [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=62&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Xampp paketi ile kendi bilgisayarımda php-mysql uygularımı çalıştırırken artık localhost yazmaktan gına geldi.Bunun üzerine küçük bir araştırma yaptım ve sanal domainler olusturarak istersem projemin domain adıyla bile kendi bilgisarımda sanal domain adları yaratabildiğimi gördüm.</p>
<p>Şimdi gelelim bu işin nasıl yapıldığına.</p>
<p>1.Bilgisayarınızda xampp ı kurduğunuz dizinde<br />
X:\\apache\conf\extra\httpd-vhosts.conf<br />
dosyasını herhangi bir text editörü ile açıyoruz.<br />
2.Açtığımız httpd-vhosts.conf dosyasında<br />
# You may use the command line option &#8216;-S&#8217; to verify your virtual host<br />
# configuration.</p>
<p>satırlarından sonra biir satır boşluk bırakıp başlıyoruz yazmaya.</p>
<p>&lt;Directory X:/vhosts&gt;</p>
<p>Order Deny,Allow<br />
Allow from all</p>
<p>&lt;/Directory&gt;</p>
<p>3.Yukarıdaki satırları yazdıktan sonra httpd-vhosts.conf dosyamızın en sonuna geliyor ve başlıyoruz yeniden yazmaya.</p>
<p>&lt;VirtualHost 127.0.0.2:80&gt;<br />
DocumentRoot &#8220;H:/vhosts/hayatgarip.com&#8221;<br />
ServerName hayatgarip.com<br />
&lt;/VirtualHost&gt;</p>
<p>httpd-vhosts.conf dosyasıyla işimiz bitti.Kaydedip kapatabiliriz.</p>
<p>4.Şimdi sıra geldi Windows u ayarlamaya.Bunun için ilk önce klasör ayarlarında gizli dosya ve klasörler i göster le birlikte korunan sistem dosyalarına da göster diyoruz.</p>
<p>5.Yukarıdaki işlemi tamamladıktan sonra c:/windows/system32/drivers/etc klasörünün içine giriyoruz.</p>
<p>6.Bu dizinde host dosyasını görüyor olmalıyız.Dosyanın üzerine sağ tıklayıp salt okunur özelliğini kaldırmalıyız.</p>
<p>7.Dosyayı acıp en sonuna temiz bir satır açıp</p>
<p>127.0.0.2  hayatgarip.com</p>
<p>yazıp dosyamızı kaydedip çıkıyoruz.</p>
<p>8.Kaydettikten sonra dosyamızı yeniden salt okunur hale getiriyoruz.Güvenlik için.</p>
<p>9.XAMPP kontrol panelinde Apache serverı yeniden başlatıyoruz.</p>
<p>10.Hepsi bu kadar.Artık kendi bilgisayarınızda herhangi bir browser ı açıp adres satırına<br />
http://127.0.0.2 veya http://hayatgarip.com yazdınız yeterli.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=62&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2010/02/22/xampp-virtual-host-ayarlari-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows7 32 bit 4gb Sorunu</title>
		<link>http://hayatgarip.wordpress.com/2010/01/06/windows7-32-bit/</link>
		<comments>http://hayatgarip.wordpress.com/2010/01/06/windows7-32-bit/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 10:28:31 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[32 bit]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/?p=54</guid>
		<description><![CDATA[Windows 7 nin 32 bit versiyonunda bilgisayarımda 4 gb ram takılı olmasına rağmen sistem özellikleri sayfasında 3 gb ulaşılabilir ram olduğunu görüyorum. İnternette yaptığım araştırmalar sonucu bunun 32 bit işletim sisteminden kaynaklandığını ve ancak 64 bit işletim sistemi yüklersem 4 gb ram kullanabileceğimi gördüm. Ayrıca bazı forumlarda ve bloglarla 3 gb ram gözükme sorununu registry [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=54&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Windows 7 nin 32 bit versiyonunda bilgisayarımda 4 gb ram takılı olmasına rağmen sistem özellikleri sayfasında 3 gb ulaşılabilir ram olduğunu görüyorum.</p>
<p>İnternette yaptığım araştırmalar sonucu bunun 32 bit işletim sisteminden kaynaklandığını ve ancak 64 bit işletim sistemi yüklersem 4 gb ram kullanabileceğimi gördüm.</p>
<p>Ayrıca bazı forumlarda ve bloglarla 3 gb ram gözükme sorununu registry de yapılacak bi değişiklikle düzeltilebileceği yazılmış.Bunun sadece bir göz boyama tekniği olduğunu söylemeden geçemeyeceğim.Sisteminiz yine 3 gb çalışacak ama siz bi sorun yokmuş gibi sistem özellikleri penceresinde 4 gb ram göreceksiniz.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=54&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2010/01/06/windows7-32-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>MySql&#8217;de root kullanıcısına şifre koyma veya değiştirme</title>
		<link>http://hayatgarip.wordpress.com/2009/12/24/mysqlde-root-kullanicisina-sifre-koyma-veya-degistirme/</link>
		<comments>http://hayatgarip.wordpress.com/2009/12/24/mysqlde-root-kullanicisina-sifre-koyma-veya-degistirme/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 15:14:32 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/?p=52</guid>
		<description><![CDATA[Xampp veya diğer hazır kurulum paketleri ile yapılan Mysql yüklemelerinde root kullanıcısının şifresi default olarak boş geliyor.Bunun oluşturduğu güvenlik açıklarını gidermek için root kullanıcısına şifre koyulmalıdır.İşlem sırası aşağıdaki gibidir. 1-Komut satırı ile ilk önce mysql&#8217;in yüklendiği klasöre geliyoruz ve bin klasörünün içine giriyoruz. 2- mysql &#8211; u root &#8211; p diyoruz.Bize şifre soracak ancak şifremiz [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=52&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Xampp veya diğer hazır kurulum paketleri ile yapılan Mysql yüklemelerinde root kullanıcısının şifresi default olarak boş geliyor.Bunun oluşturduğu güvenlik açıklarını gidermek için root kullanıcısına şifre koyulmalıdır.İşlem sırası aşağıdaki gibidir.</p>
<p>1-Komut satırı ile ilk önce mysql&#8217;in yüklendiği klasöre geliyoruz ve bin klasörünün içine giriyoruz.</p>
<p>2- mysql &#8211; u root &#8211; p</p>
<p>diyoruz.Bize şifre soracak ancak şifremiz olmadığı için enter diyoruz ve mysql komut satırı açılıyor.</p>
<p>3-use mysql diyerdatabase olarak mysql e geçiyoruz.kullanıcı tablolarımızın olduğu database burası.</p>
<p>4-update user set password=PASSWORD(&#8220;NEWPASSWORD&#8221;) where User=&#8217;root&#8217;; diyerek yeni şifremizi giriyoruz.</p>
<p>5-flush privileges; diyerekte kullanıcı izinlerimizi ayarladıktan sonra komut satırımızı kapatabiliriz.</p>
<p>Hepsi bu kadar.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=52&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2009/12/24/mysqlde-root-kullanicisina-sifre-koyma-veya-degistirme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP &amp; MySQL Resim Yükleme ve Yeniden Boyutlandırma</title>
		<link>http://hayatgarip.wordpress.com/2009/08/06/php-mysql-resim-yukleme-ve-yeniden-boyutlandirma/</link>
		<comments>http://hayatgarip.wordpress.com/2009/08/06/php-mysql-resim-yukleme-ve-yeniden-boyutlandirma/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 23:00:12 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/?p=41</guid>
		<description><![CDATA[PHP ile MySQL kullanarak oluşturduğum, resimleri dosyaya yazarken resimlerin isimlerini veritabanına kaydeden bi script.Script &#8216;de ayrıca resimler yeniden boyutlandırılıp küçük halleride hem dosyaya hemde veritabanına yazılmakta. İlk önce bilgisayarımızdan resimleri alacağımız formu oluşturuyoruz.Sayfanın adı gonder.php &#8216; dir. gonder.php &#60;form action=&#8221;resim_isle.php&#8221; enctype=&#8221;multipart/form-data&#8221; method=&#8221;post&#8221;&#62;Yeni Resim Ekle &#60;input name=&#8221;kull_dosya&#8221; type=&#8221;file&#8221; /&#62; &#60;input type=&#8221;submit&#8221; value=&#8221;Gönder&#8221; /&#62; &#60;/form&#62; Formumuzu oluşturduktan [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=41&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PHP ile MySQL kullanarak oluşturduğum, resimleri dosyaya yazarken resimlerin isimlerini veritabanına kaydeden bi script.Script &#8216;de ayrıca resimler yeniden boyutlandırılıp küçük halleride hem dosyaya hemde veritabanına yazılmakta.</p>
<p>İlk önce bilgisayarımızdan resimleri alacağımız formu oluşturuyoruz.Sayfanın adı gonder.php &#8216; dir.</p>
<p><strong>gonder.php</strong></p>
<p>&lt;form action=&#8221;resim_isle.php&#8221; enctype=&#8221;multipart/form-data&#8221; method=&#8221;post&#8221;&gt;Yeni Resim Ekle</p>
<p>&lt;input name=&#8221;kull_dosya&#8221; type=&#8221;file&#8221; /&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;Gönder&#8221; /&gt;</p>
<p>&lt;/form&gt;</p>
<p>Formumuzu oluşturduktan sonra sıra geldi asıl işlemi gerçekleştiren resim_isle.php sayfamıza;</p>
<p><strong>resim_isle.php</strong></p>
<p>$resim_kaynagi = $_FILES["kull_dosya"]["tmp_name"];<br />
$resim_ismi = $_FILES["kull_dosya"]["name"];<br />
$resim_turu = $_FILES["kull_dosya"]["type"];<br />
$resim_boyutu = $_FILES["kull_dosya"]["size"];</p>
<p>//resim ismini değiştiriyoruz çünkü aynı isimle başka bir dosya yüklenebilir.Bu durumda eski dosyamızı kaybederiz.</p>
<p>$resim_uzantisi = substr($resim_ismi, -4);<br />
$rasgeleisim = substr(md5(uniqid(rand())), 0, 12);<br />
$resim_yeniismi = $rasgeleisim.$resim_uzantisi ;</p>
<p>//gonderdiğimiz dosyanın bilgilerini ekrana yazıyoruz</p>
<p>echo &#8220;Gönderdiğiniz Resmin Adı: : &#8220;.$resim_ismi.&#8221;";<br />
echo &#8220;Gönderdiğiniz Resmin Yeni Adı : &#8220;.$resim_yeniismi.&#8221;";<br />
echo &#8220;Gönderdiğiniz Resmin Boyutu : &#8220;.$resim_boyutu.&#8221;";</p>
<p>//dosyayı daha once sunucuda manuel olarak olusturduğumuz gonderilen_resimler adlı klasöre  gönderiyoruz.</p>
<p>$dosya_hedef = &#8220;gonderilen_resimler&#8221;;<br />
$dosya_yukle = move_uploaded_file($resim_kaynagi, $dosya_hedef.&#8217;/&#8217;.$resim_yeniismi);</p>
<p>//Yüklediğimiz resmin küçük halini oluşturoruz.</p>
<p>$kucuk_resim = imagecreatefromjpeg($dosya_hedef.&#8217;/&#8217;.$resim_yeniismi);<br />
$boyut = getimagesize($dosya_hedef.&#8217;/&#8217;.$resim_yeniismi);<br />
$resimorani=112/$boyut[0];</p>
<p>$yeniyukseklik = $resimorani*$boyut[1];</p>
<p>$yeniresim = imagecreatetruecolor(&#8220;112&#8243;,$yeniyukseklik);<br />
imagecopyresampled($yeniresim, $kucuk_resim, 0, 0, 0, 0, &#8220;112&#8243;, $yeniyukseklik, $boyut[0], $boyut[1]);<br />
$hedefdosya = $dosya_hedef.&#8221;/&#8221;.$rasgeleisim.&#8221;_kucuk&#8221;.$resim_uzantisi;</p>
<p>imagejpeg($yeniresim,$hedefdosya,100);<br />
$dosya_yukle2 = move_uploaded_file($resim_kaynagi, $hedefdosya);<br />
$kucuk_yeniisim = $rasgeleisim.&#8221;_kucuk&#8221;.$resim_uzantisi ;</p>
<p>//dosyanın yüklenip yüklenmediğini kontrol ediyoruz.</p>
<p>echo &#8221;&lt;pre&gt; &#8221;;</p>
<p>if ($dosya_yukle){</p>
<p>echo &#8220;Dosya yüklendi&#8230;&#8221;;</p>
<p>echo &#8220;&lt;img src=&#8217;&#8221;.$dosya_hedef.&#8221;/&#8221;.$kucuk_yeniisim.&#8221;&#8216;&gt;&lt;br&gt;&#8221;;</p>
<p>}</p>
<p>else{</p>
<p>echo &#8220;Dosya Kaydedilemedi. Tekrar Deneyiniz&#8230;<br />
&#8220;;</p>
<p>}</p>
<p>$ekleme_tarihi = date(&#8220;Y-m-d H:i:s&#8221;);</p>
<p>//Klasöre kaydettiğimiz dosyanın ismini ve tarih bilgisini veritabanına ekliyoruz.</p>
<p>mysql_select_db($db, $resim_sql);</p>
<p>$veri_ekle = &#8220;insert into resimler (r_adi, r_adi_minik, ekleme_tarihi) values (&#8216;$resim_yeniismi&#8217;,'$kucuk_yeniisim&#8217;, &#8216;$ekleme_tarihi&#8217;)&#8221;;</p>
<p>if (mysql_query(&#8220;$veri_ekle&#8221;)){</p>
<p>echo &#8220;Resim Bilgisi Veri TabanÄ±na BaÅŸarÄ±yla Kaydedildi&#8221;;</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>echo mysql_error();</p>
<p>}</p>
<p>?&gt;</p>
<p>Evet gönderme işlemini tamamladık.Şimdi MySql tablomuzu oluşralım.</p>
<p><strong>resimler databasenin sql &#8216;i;</strong></p>
<p>CREATE DATABASE /*!32312 IF NOT EXISTS*/ &#8220;resimler&#8221; /*!40100 DEFAULT CHARACTER SET utf8 */;</p>
<p>USE &#8220;resimler&#8221;;</p>
<p>#<br />
# Table structure for table &#8216;resimler&#8217;<br />
#</p>
<p>CREATE TABLE /*!32312 IF NOT EXISTS*/ &#8220;resimler&#8221; (<br />
&#8220;no&#8221; int(11) NOT NULL AUTO_INCREMENT,<br />
&#8220;r_adi&#8221; varchar(50) COLLATE utf8_unicode_ci NOT NULL,<br />
&#8220;r_adi_minik&#8221; varchar(50) COLLATE utf8_unicode_ci NOT NULL,<br />
&#8220;ekleme_tarihi&#8221; datetime NOT NULL DEFAULT &#8217;0000-00-00 00:00:00&#8242;,<br />
PRIMARY KEY (&#8220;no&#8221;)<br />
) AUTO_INCREMENT=10;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=41&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2009/08/06/php-mysql-resim-yukleme-ve-yeniden-boyutlandirma/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>mysql&#8217;e kullanıcı ekleme ve kullanıcı izinleri</title>
		<link>http://hayatgarip.wordpress.com/2009/07/29/mysqle-kullanici-ekleme-ve-kullanici-izinleri/</link>
		<comments>http://hayatgarip.wordpress.com/2009/07/29/mysqle-kullanici-ekleme-ve-kullanici-izinleri/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 09:38:35 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/?p=39</guid>
		<description><![CDATA[- mysql&#8217;e root ile bağlanılır. $ mysql -u root -p mysql&#62; - daha sonra bir veritabanı oluşturulur mysql&#62; create database denemedb; - ve kullanıcı oluşturma ve veritabanıyla ilişkilendirme işlemi aynı anda gerçekleştirilir. (bu örnekte kullanıcının ilgili veritabanı üzerindeki erişimi &#8220;tam&#8221;dır. Bazı durumlarda sadece okuma, sadece yazma gibi haklar tanımlanabilir) mysql&#62; grant all on denemedb.* to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=39&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>- mysql&#8217;e root ile bağlanılır.</p>
<p>$ mysql -u root -p<br />
mysql&gt;</p>
<p>- daha sonra bir veritabanı oluşturulur</p>
<p>mysql&gt; create database denemedb;</p>
<p>- ve kullanıcı oluşturma ve veritabanıyla ilişkilendirme işlemi aynı anda gerçekleştirilir.<br />
(bu örnekte kullanıcının ilgili veritabanı üzerindeki erişimi &#8220;tam&#8221;dır. Bazı durumlarda sadece okuma, sadece yazma gibi haklar tanımlanabilir)</p>
<p>mysql&gt; grant all on denemedb.* to usrname@localhost identified by &#8216;password&#8217;;</p>
<p>mysql&gt; flush privileges;</p>
<p>- sadece okuma hakları vermek istiyorsanız.</p>
<p>mysql&gt; grant select on denemedb.* to usrname@localhost identified by &#8216;password&#8217;;</p>
<p>mysql&gt; flush privileges;</p>
<p>- kullanıcı mevcutsa;</p>
<p>mysql&gt; grant all on denemedb.* to username@localhost;</p>
<p>mysql&gt; flush privileges; </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=39&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2009/07/29/mysqle-kullanici-ekleme-ve-kullanici-izinleri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu&#8217; ya LastFm yükleme</title>
		<link>http://hayatgarip.wordpress.com/2009/03/15/ubuntu-ya-lastfm-yukleme/</link>
		<comments>http://hayatgarip.wordpress.com/2009/03/15/ubuntu-ya-lastfm-yukleme/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 18:33:50 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[LastFm]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/?p=34</guid>
		<description><![CDATA[Ubuntu &#8216; da LastFm dinleyebilmek için LastFm&#8217;in .deb paketini yuklemek gerekmektedir.Buradan LastFm in .deb paketleri ile ilerlemelerini görebilir ve yükleme için geken komutları alabiliriz. İlk önce Ubuntu&#8217; da GPG keyi guncellemeliyiz: Konsol u açarak; wget -q http://apt.last.fm/last.fm.repo.gpg -O- &#124; sudo apt-key add- Sonra apt-get update, and apt-get install lastfm komutlarıyla LasfFm i yuklemiş oluruz.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=34&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ubuntu &#8216; da LastFm dinleyebilmek için LastFm&#8217;in .deb paketini yuklemek gerekmektedir.<a href="http://apt.last.fm/">Buradan </a> LastFm in .deb paketleri ile ilerlemelerini görebilir ve yükleme için geken komutları alabiliriz.</p>
<p>İlk önce Ubuntu&#8217; da  GPG keyi guncellemeliyiz:</p>
<p>Konsol u açarak;</p>
<p><strong>wget -q http://apt.last.fm/last.fm.repo.gpg -O- | sudo apt-key add-</strong> </p>
<p>Sonra<br />
 <strong>apt-get update, and apt-get install lastfm</strong> </p>
<p>komutlarıyla LasfFm i yuklemiş oluruz.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=34&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2009/03/15/ubuntu-ya-lastfm-yukleme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu&#8217;da Apache Access Log Dosyası</title>
		<link>http://hayatgarip.wordpress.com/2009/03/14/ubuntuda-apache-access-log-dosyasi/</link>
		<comments>http://hayatgarip.wordpress.com/2009/03/14/ubuntuda-apache-access-log-dosyasi/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 21:21:20 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache access]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/?p=32</guid>
		<description><![CDATA[Ubuntu&#8217; da apache web serverın hata ve erişim logları default olarak ; /var/log/apache2 dizininde bulunmaktadır.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=32&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ubuntu&#8217; da apache web serverın hata ve erişim logları default olarak ;</p>
<p>/var/log/apache2</p>
<p>dizininde bulunmaktadır.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=32&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2009/03/14/ubuntuda-apache-access-log-dosyasi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>Open SSH</title>
		<link>http://hayatgarip.wordpress.com/2009/03/14/open-ssh/</link>
		<comments>http://hayatgarip.wordpress.com/2009/03/14/open-ssh/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 02:01:59 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[ssh server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/2009/03/14/open-ssh/</guid>
		<description><![CDATA[ssh serverı başlatmak için; $ sudo /etc/init.d/ssh start ssh serverı durdurmak için; $ sudo /etc/init.d/ssh stop ssh serverı yeniden başlatmak için; $ sudo /etc/init.d/ssh restart<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=30&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ssh serverı başlatmak için;<br />
$ sudo /etc/init.d/ssh start</p>
<p>ssh serverı durdurmak için;<br />
$ sudo /etc/init.d/ssh stop</p>
<p>ssh serverı yeniden başlatmak için;<br />
$ sudo /etc/init.d/ssh restart</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=30&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2009/03/14/open-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu Apache2 Web Server</title>
		<link>http://hayatgarip.wordpress.com/2009/03/13/ubuntu-apache2-web-server/</link>
		<comments>http://hayatgarip.wordpress.com/2009/03/13/ubuntu-apache2-web-server/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 23:45:57 +0000</pubDate>
		<dc:creator>hayatgarip</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://hayatgarip.wordpress.com/2009/03/13/ubuntu-apache2-web-server/</guid>
		<description><![CDATA[Apache HTTP Server is a free software/open source web server for Unix-like systems, Microsoft Windows, Novell NetWare and other platforms. Apache is notable for playing a key role in the initial growth of the World Wide Web,and continues to be the most popular web server in use, serving as the de facto reference platform against [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=26&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Apache HTTP Server is a free software/open source web server for Unix-like systems, Microsoft Windows, Novell NetWare and other platforms. Apache is notable for playing a key role in the initial growth of the World Wide Web,and continues to be the most popular web server in use, serving as the de facto reference platform against which other web serversare designed and judged.</p>
<p>Apache features configurable error messages, DBMS-based authentication databases, and content negotiation. It is also supported by several graphical user interfaces (GUIs) which permit easier, more intuitive configuration of the server.</p>
<p>Install apache2 in Ubuntu server</p>
<p>sudo apt-get install apache2 apache2-common apache2-mpm-prefork apache2-utils ssl-cert<br />
This will complete the installation of apache2 web server and now you need to know where the configuration files and document root for your apache web server.</p>
<p>By default all your configuration files are located at /etc/apache2</p>
<p>Default document root for apache2 is /var/www.If you want to change the default document root you need to edit the /etc/apache2/sites-available/default file and look for this line “DocumentRoot /var/www/” here you can change whereever you want to change.For example if you want to change /home/wwww the above line looks like this “DocumentRoot/home/www/”.</p>
<p>The main configuration file located at /etc/apache2/apche2.conf.</p>
<p>Bydefault Apache2 to Listen on port 80. If this is not desired, please edit /etc/apache2/ports.conf and /etc/apache2/sites-available  as desired.after changing you need restart apache server.</p>
<p>For example if you want to change your apache webserver port to 78 you need to edit /etc/apache2/ports.conf</p>
<p>sudo gedit /etc/apache2/ports.conf</p>
<p>Look for the following line</p>
<p>Listen 80</p>
<p>Replace with the following line</p>
<p>Listen 78</p>
<p>Save the edited file</p>
<p>sudo /etc/init.d/apache2 restart<br />
Installing php and cgi support for apache2 in Ubuntu</p>
<p>you need to have universe source list in your sources.list file</p>
<p>sudo apt-get install libapache2-mod-php4 php4-cli php4-common php4-cgi</p>
<p>Next we edit /etc/apache2/apache2.conf file and check the index files are correct</p>
<p>DirectoryIndex index.html index.cgi index.pl index.php index.xhtml</p>
<p>If you want to enable some Apache modules (SSL, rewrite, suexec, and include)</p>
<p>sudo a2enmod ssl</p>
<p>sudo a2enmod rewrite</p>
<p>sudo a2enmod suexec</p>
<p>sudo a2enmod include</p>
<p>Restart Apache to make sure all is well.</p>
<p>sudo /etc/init.d/apache2 restart</p>
<p>Test your apache Server</p>
<p>You can access you apache using http://yourserverip/apache2-default/ it should appear the following screen</p>
<p>Test apache with PHP<br />
To test if php4 installed correctly</p>
<p>sudo gedit /var/www/test.php</p>
<p>Insert the following line into the new file</p>
<p>Save this file</p>
<p>Now access this page http://yourserverip/test.php you should see the following screen</p>
<p>my last default and ports.conf files are like;</p>
<p><strong>default</strong></p>
<p>	ServerAdmin webmaster@localhost</p>
<p>	DocumentRoot /home/gurhan/www/</p>
<p>		Options FollowSymLinks<br />
		AllowOverride None</p>
<p>		Options Indexes FollowSymLinks MultiViews<br />
		AllowOverride None<br />
		Order allow,deny<br />
		allow from all</p>
<p>	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/</p>
<p>		AllowOverride None<br />
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br />
		Order allow,deny<br />
		Allow from all</p>
<p>	ErrorLog /var/log/apache2/error.log</p>
<p>	# Possible values include: debug, info, notice, warn, error, crit,<br />
	# alert, emerg.<br />
	LogLevel warn</p>
<p>	CustomLog /var/log/apache2/access.log combined</p>
<p>    Alias /doc/ &#8220;/usr/share/doc/&#8221;</p>
<p>        Options Indexes MultiViews FollowSymLinks<br />
        AllowOverride None<br />
        Order deny,allow<br />
        Deny from all<br />
        Allow from 127.0.0.0/255.0.0.0 ::1/128</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>ports.conf</strong></p>
<p># If you just change the port or add more ports here, you will likely also<br />
# have to change the VirtualHost statement in<br />
#/etc/apache2/sites-enabled/000-default</p>
<p>NameVirtualHost 192.168.1.10:78<br />
Listen 78</p>
<p>    # SSL name based virtual hosts are not yet supported, therefore no<br />
    # NameVirtualHost statement here<br />
    Listen 443</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hayatgarip.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hayatgarip.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hayatgarip.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hayatgarip.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hayatgarip.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hayatgarip.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hayatgarip.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hayatgarip.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hayatgarip.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hayatgarip.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hayatgarip.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hayatgarip.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hayatgarip.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hayatgarip.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hayatgarip.wordpress.com&amp;blog=6606525&amp;post=26&amp;subd=hayatgarip&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hayatgarip.wordpress.com/2009/03/13/ubuntu-apache2-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e36ef0f6bd1e16b1fab3ce78a950715c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hayatgarip</media:title>
		</media:content>
	</item>
	</channel>
</rss>
