<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Samet Kilictas&#039;s Blog &#187; apache2</title>
	<atom:link href="http://samet.kilictas.com/tag/apache2/feed/" rel="self" type="application/rss+xml" />
	<link>http://samet.kilictas.com</link>
	<description>J2E, PHP, Linux, PL/SQL and other random rants</description>
	<lastBuildDate>Sun, 06 Nov 2011 04:36:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Manage your virtual hosts on apache server easily</title>
		<link>http://samet.kilictas.com/manage-your-virtual-hosts-on-apache-server-easily/</link>
		<comments>http://samet.kilictas.com/manage-your-virtual-hosts-on-apache-server-easily/#comments</comments>
		<pubDate>Sat, 28 May 2011 16:07:10 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[virtual host]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=445</guid>
		<description><![CDATA[Building up and making all modifications on your server is pretty boring. There is no need to find the sun again and again. I’ve had to go through the process of reconfiguring my virtual hosts for Apache2 several times and i found a pre modified shell script and modified the script according to my needs. [...]]]></description>
			<content:encoded><![CDATA[<p>Building up and making all modifications on your server is pretty boring. There is no need to find the sun again and again. I’ve had to go through the process of reconfiguring my virtual hosts for Apache2 several times and i found a pre modified shell script and modified the script according to my needs. This script enables you to create, destroy your virtual host in a second.</p>
<p>you can download the script from here : <a href="http://samet.kilictas.com/wp-content/uploads/2011/05/vhost.txt">vhost.txt</a> or;</p>
<pre class="brush: sh">mkdir ~/bin
cd ~/bin
wget http://samet.kilictas.com/wp-content/uploads/2011/05/vhost.txt
mv vhost.txt vhost
chmod 755 vhost</pre>
<p>Now, to invoke the script, type the following:</p>
<pre class="brush: sh">. ~/bin/vhost</pre>
<p>By using this script you can create, destroy a virtual host. In order to create a new host on your server user following command by replacing appreciate values:</p>
<pre class="brush: sql">vhost create &lt;domain&gt; &lt;admin-email&gt; &lt;host-ip&gt;</pre>
<p>The script creates required directories,files as shown below;</p>
<p><strong>Web directories</strong><br />
<em>/www/htdocs/$domain</em><br />
<strong> </strong></p>
<p><strong>Web cgi-bin</strong><br />
<em>/www/cgi-bin/$domain</em></p>
<p><strong>Web logs</strong><br />
<em>/www/logs/$domain/apache2</em><br />
<em> /www/logs/$domain/apache2/access.log</em><br />
<em> /www/logs/$domain/apache2/error.log</em></p>
<p>then builds virtual host config file and enables it right away (enabling is optional), which is placed in following directory</p>
<p><em>/etc/apache2/sites-available/$domain</em></p>
<p>After getting done with all these process it simply creates a little info file</p>
<p><em>/www/$domain/logs/site_info</em></p>
<p>Great you have created and enabled your virtual host, you may need to destroy a virtual host, here is how;</p>
<pre class="brush: sql">vhost destroy &lt;domain&gt;</pre>
<p><span id="more-445"></span></p>
<p>get some help with;</p>
<pre class="brush: sql">vhost help</pre>
<a href='http://twitter.com/share?url=http%3A%2F%2Fsamet.kilictas.com%2F%3Fp%3D445&count=vertical&related=&text=Manage%20your%20virtual%20hosts%20on%20apache%20server%20easily' class='twitter-share-button' data-text='Manage your virtual hosts on apache server easily' data-url='http://samet.kilictas.com/?p=445' data-counturl='http://samet.kilictas.com/manage-your-virtual-hosts-on-apache-server-easily/' data-count='vertical' data-via='sametkilictas'>Tweet</a>]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/manage-your-virtual-hosts-on-apache-server-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion (SVN) Server Nasıl Kurulur (Turkish)</title>
		<link>http://samet.kilictas.com/subversion-svn-server-nasil-kurulur/</link>
		<comments>http://samet.kilictas.com/subversion-svn-server-nasil-kurulur/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 01:18:35 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[SourceSafe]]></category>
		<category><![CDATA[SubVersion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Team Foundation Server]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=160</guid>
		<description><![CDATA[Merhaba arkadaşlar subversion hakkında türkçe yazılmış çok fazla kaynak olmamasından dolayı bu yazımı türkçe yazdığımı belirtmek istiyorum. Halen ingilizce dilinin artık global bir dil olduğunun bazı kişiler tarafından kabul edilmeyişide ayrı bir tartışma konusu bence. Neyse hemen anlatmaya başlıyorum. Aslında kişisel olarak bir projeyi tek başıma yapıyorsam bunda daha başarılı olabildiğimi düşünüyordum ancak bazı nedenlerden [...]]]></description>
			<content:encoded><![CDATA[<p>Merhaba arkadaşlar subversion hakkında türkçe yazılmış çok fazla kaynak olmamasından dolayı bu yazımı türkçe yazdığımı belirtmek istiyorum. Halen ingilizce dilinin artık global bir dil olduğunun bazı kişiler tarafından kabul edilmeyişide ayrı bir tartışma konusu bence.</p>
<p>Neyse hemen anlatmaya başlıyorum. Aslında kişisel olarak bir projeyi tek başıma yapıyorsam bunda daha başarılı olabildiğimi düşünüyordum ancak bazı nedenlerden dolayı anladım ki atasözümüz olan &#8220;Bir elin nesi var iki elin sesi&#8221; var sözü gerçekten yerinde ve mantıklı söylenmiş bir söz. <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Geçenlerde üniversitede grup çalışması yaptıgım samimi arkadaşlar ile bir projeye başlama kararı aldık ve ortak bir çalışma ortamı oluşturmam gerekiyordu. Ortak çalışma ortamı çok şekilde yaratılabilir aslında;</p>
<ul>
<li>Subversion</li>
<li>CVS</li>
<li>SourceSafe</li>
<li>Team Foundation Server</li>
<li>Birkaç duyulmamış sistem daha</li>
</ul>
<p>Bu sistemler arasında en mantıklı ve uygulanabilirliği açısından rahat olan sistemin subversion olduğunu düşünüyorum. Linux altında çalışmışlığınız var ise bir Subversion (SVN) server kurmak yanlızca 30 saniyenizi alacaktır. Subversion sistemini windows işletim sistemilerinde de kurabiliyoruz ancak tabiki biz linuxumuza kurup rahat ve hızlı çalışmanın tadına varacağız <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-160"></span></p>
<p>Ben extra bir server bulamadığımdan dolayı kendi bilgisayarıma Vmware kurup onun üzerindeki sanal makine yardımıyla subversion yayımı yapmaya başladım. Sizinde benim gibi bu aralar imkanlarınız biraz kısıtlı ise vmware tek çözüm gibi görünüyor. Kuruluma geçmeden önce ubuntu distromuzu bilgisayarımıza kuralım bu kısım tamamiyle size ait. (Vmware kullanacaksanız ubuntu server edition tavsiyemdir.)</p>
<p>Şimdi sisteminize yeni bir ubuntu kurulumu var ve üzerinde apache2 sunucusu sorunsuz olarak çalışıyor kabul edelim.  Bu aşamadan sonra yapmamız gereken sadece apache2 server a gerekli eklentileri yapıp subversion serveri kullanılabilir hale getirmek.</p>
<p>Subversion server için subversion ve libapache2-svn paketlerini kurmamız gerekli, bunu için</p>
<pre class="brush: php">sudo apt-get install subversion libapache2-svn</pre>
<p>komutunu kullanarak bu paketleri serverımıza kuruyoruz. Artık SVN modüllerini apache2 serverımızda port 80 ile kullanılabilir hale getirdik. Paketleri yüklediğimizde modüller otomatik olarak aktif hale gelmiş olması ancak biz yinede bi kontrol edelim. Bunun için</p>
<pre class="brush: php">sudo a2enmod dav_svn</pre>
<p>komutunu kullanıyoruz ve kullanım sonrasında bize &#8220;already enabled&#8221; gibi bir uyarı gelmesi gerekiyor şu an tam olarak hatırlamıyorum. Şimdide apache2 de bir kaç ayarlama yapmamız gerekiyor.</p>
<pre class="brush: php">sudo nano /etc/apache2/mods-enabled/dav_svn.conf</pre>
<p>açılan dosyarı konsolda şu şekilde değiştirmemiz gerekiyor. (Genelde satır önlerindeki # işaretini kaldırarak kolaylıkla yapabilirsiniz)</p>
<pre class="brush: php">
&amp;lt; Location /svn &amp;gt;
DAV svn
SVNPath /home/svn

AuthType Basic
AuthName &quot;Subversion Repository - veya repository adı&quot;
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
&amp;lt; / Location &amp;gt;
</pre>
<p>buradaki /home/svn dizinini kendi repository dizininize göre değiştirebilirsiniz. Aynı kalmasında bir sakınca yok aslında. dizinimizin /home/svn olduğunu varsayarak devam ediyorum.</p>
<pre class="brush: php">sudo mkdir /home/svn
sudo svnadmin create /home/svn</pre>
<p>şimdide apache2 yi bu repository için owner yapmamız gerekiyor.</p>
<pre class="brush: php">sudo chown -R www-data /home/svn</pre>
<p>repository&#8217; e erişimimizi biraz güvenli hale getirebilmek için bir şifre belirleyelim.</p>
<pre class="brush: php">sudo htpasswd -cm /etc/apache2/dav_svn.passwd kullanı_adınız</pre>
<p>daha sonra sistem sizden şifrenizi belirlemenizi isteyecektir. Bu aşamadan sonra yapmamız gereken tek şey apache serverimizi yeniden başlatmak.</p>
<pre class="brush: php">sudo /etc/init.d/apache2 restart</pre>
<p>bu aşamaya kadar kazasız belasız geldiyseniz artık sizin <span style="text-decoration: underline;"><strong>http://sun.ucu.nuz/svn</strong></span> altında bir subversion serverınız var. Tebrikler <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>İyi Çalışmalar&#8230;</p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fsamet.kilictas.com%2F%3Fp%3D160&count=vertical&related=&text=Subversion%20%28SVN%29%20Server%20Nas%C4%B1l%20Kurulur%20%28Turkish%29' class='twitter-share-button' data-text='Subversion (SVN) Server Nasıl Kurulur (Turkish)' data-url='http://samet.kilictas.com/?p=160' data-counturl='http://samet.kilictas.com/subversion-svn-server-nasil-kurulur/' data-count='vertical' data-via='sametkilictas'>Tweet</a>]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/subversion-svn-server-nasil-kurulur/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>.htaccess problem at Apache2 (Ubuntu)</title>
		<link>http://samet.kilictas.com/htaccess-problem-at-apache2-ubuntu/</link>
		<comments>http://samet.kilictas.com/htaccess-problem-at-apache2-ubuntu/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 00:07:02 +0000</pubDate>
		<dc:creator>Samet Kilictas</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache2]]></category>

		<guid isPermaLink="false">http://samet.kilictas.com/?p=63</guid>
		<description><![CDATA[Hi, Everyone, Today i have faced with a problem which made me sick of apache2. Since i&#8217;ve done with this stupid problem it will be my pleasure to writing solution to my blog page   Ok!, If you are running apache2 first you should know about that you got the configuration file at ; sudo nano [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, Everyone,</p>
<p>Today i have faced with a problem which made me sick of apache2. Since i&#8217;ve done with this stupid problem it will be my pleasure to writing solution to my blog page   <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ok!, If you are running apache2 first you should know about that you got the configuration file at ;</p>
<blockquote><p>sudo nano /etc/apache2/apache2.conf -&gt; just check out this file to see what it contains exaclty</p></blockquote>
<p>and you can see error log&#8217;s at ;</p>
<blockquote><p>sudo nano /var/log/apache2/error.log  -&gt; which helps a lot</p></blockquote>
<p>So, to enable .htaccess files on your server first you have to edit ;</p>
<blockquote><p>sudo nano /etc/apache2/sites-available/default</p></blockquote>
<p>when you open this file you have to see some lines like;</p>
<blockquote><p>DocumentRoot <span style="color: #ff9900;">/var/www/</span><br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
&lt;/Directory&gt;<br />
&lt;Directory /var/www/&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
<span style="color: #ff9900;">AllowOverride None</span><br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;</p></blockquote>
<p>you have to be sure the Document root is correct. Then you need to change the &#8220;<span style="color: #ff9900;">AllowOverride None</span>&#8221; to &#8220;<span style="color: #ff9900;">AllowOverride All</span>&#8221; then we are done with this part.</p>
<p><span id="more-63"></span></p>
<p>And now as step2 to enable .htaccess file your apache2 you should enable rewrite.load mod. If you take a look at /etc/apache2 directory you are going to see that there are some folders like &#8220;mods-available&#8221; and &#8220;mods-enabled&#8221;. mods-available folder contains some mods for apache2 which you may use. mods-enable folder only contains the mods which are enable <img src='http://samet.kilictas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
This is the tricky point, if you don&#8217;t copy the rewrite.load file from mods-available to mods-enable, your apache2 isn&#8217;t going to load rewrite mod.  Even you are done with /etc/apache2/sites-available/default file since the mod is didnt load so you will get &#8220;<span style="color: #ff0000;">500 Internal Server Error</span>&#8220;.</p>
<p>Samet</p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fsamet.kilictas.com%2F%3Fp%3D63&count=vertical&related=&text=.htaccess%20problem%20at%20Apache2%20%28Ubuntu%29' class='twitter-share-button' data-text='.htaccess problem at Apache2 (Ubuntu)' data-url='http://samet.kilictas.com/?p=63' data-counturl='http://samet.kilictas.com/htaccess-problem-at-apache2-ubuntu/' data-count='vertical' data-via='sametkilictas'>Tweet</a>]]></content:encoded>
			<wfw:commentRss>http://samet.kilictas.com/htaccess-problem-at-apache2-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

