<?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>Kurinchi Blogger Scribbles ... &#187; ubuntu</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Beginner: Why there are many Linux Distributions?</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/06/beginner-why-there-are-many-linux-distributions.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/06/beginner-why-there-are-many-linux-distributions.html#comments</comments>
		<pubDate>Sat, 05 Jun 2010 14:29:51 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[different distribution]]></category>
		<category><![CDATA[linux distribution]]></category>
		<category><![CDATA[mandrake]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[suse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=863</guid>
		<description><![CDATA[There are different variants of Linux in the market like RedHat, Debian, CentOS, Ubuntu, Mandrake, Suse and a Linux beginner often ponder why they call Linux distributions by various names. The kernel or the heart of all the distributions is Linux and in bringing it to different market usage different community or vendors have adopted [...]]]></description>
			<content:encoded><![CDATA[<p>There are different variants of Linux in the market like <strong>RedHat, Debian, CentOS, Ubuntu, Mandrake, Suse</strong> and a Linux beginner often ponder why they call Linux distributions by various names. The kernel or the heart of all the distributions is Linux and in bringing it to different market usage different community or vendors have adopted the kernel to serve that purpose.<br />
<span id="more-863"></span><br />
<em>Some of the key differences in these distributions are listed below</em>,</p>
<p><strong>Usage</strong>: In addition to the different flavors of Linux in the market, comes the usage of Linux. Some variants are developed as Desktops and a major as servers. In addition to that, there are virtual appliances that are packaged with other applications for easy deployment across environments. The choice is many and the usage determines the choice of the Linux flavor in most cases.</p>
<p><strong>Client Support</strong>: All distributions are open source &#8211; FREE for usage. Red Hat and Ubuntu are maintained by organizations which provide commercial support which bigger organizations prefer. CentOS, Debian, Fedora are maintained by volunteers.</p>
<p><strong>Commands used</strong>: For an administrator it will be easy if ALL the systems in the network use the same distribution. Some commands that are used to achieve a functionality are not consistent across distributions.</p>
<p><strong>Packaging</strong>: Feature enhancements, application patches, software installation and management differ from one distribution to the other making the need for the administrator to remember the subtle keys. </p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/06/beginner-why-there-are-many-linux-distributions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache: Where to put site configuration settings?</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/03/apache-where-to-put-site-configuration-settings.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/03/apache-where-to-put-site-configuration-settings.html#comments</comments>
		<pubDate>Sun, 07 Mar 2010 20:55:45 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[enable disable site]]></category>
		<category><![CDATA[port configuration]]></category>
		<category><![CDATA[symbolic link]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=763</guid>
		<description><![CDATA[/etc/apache2/conf.d/ and /etc/apache2/sites-enabled are the two locations from where configuration settings are ready by apache Apache configuration file has two lines (listed below) in /etc/apache2/apache2.conf which does that # Include generic snippets of statements Include /etc/apache2/conf.d/ # Include the virtual host configurations: Include /etc/apache2/sites-enabled/]]></description>
			<content:encoded><![CDATA[<p><strong>/etc/apache2/conf.d/</strong> and <strong>/etc/apache2/sites-enabled </strong>are the two locations from where configuration settings are ready by apache</p>
<p>Apache configuration file has two lines (listed below) in <strong>/etc/apache2/apache2.conf</strong> which does that</p>
<p># Include generic snippets of statements<br />
Include /etc/apache2/conf.d/</p>
<p># Include the virtual host configurations:<br />
Include /etc/apache2/sites-enabled/</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/03/apache-where-to-put-site-configuration-settings.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Configuring Virtual Hosts to listen on different ports</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/03/ubuntu-configuring-virtual-hosts-to-listen-on-different-ports.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/03/ubuntu-configuring-virtual-hosts-to-listen-on-different-ports.html#comments</comments>
		<pubDate>Fri, 05 Mar 2010 20:50:53 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[enable disable site]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[port configuration]]></category>
		<category><![CDATA[symbolic link]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Virtual Host Configuration]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=760</guid>
		<description><![CDATA[Files to check - /etc/apache2/ports.conf - /etc/apache2/apache2.conf Consider the ServerName to be &#8220;myserver&#8221;. Check /etc/hosts for an entry 127.0.0.1 localhost 192.168.1.100 myserver.com myserver &#8230; We will see an example where by we can change/add apache ports in order to have two sites hosted on different ports. Example: http://myserver:8001 http://myserver:8002 First, we need to edit ports.conf [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Files to check</strong><br />
- /etc/apache2/ports.conf<br />
- /etc/apache2/apache2.conf</p>
<p>Consider the ServerName to be &#8220;myserver&#8221;. Check /etc/hosts for an entry </p>
<p>127.0.0.1       localhost<br />
192.168.1.100   myserver.com    myserver<br />
&#8230;<br />
<span id="more-760"></span><br />
We will see an example where by we can change/add apache ports in order to have two sites hosted on different ports. </p>
<p>Example:<br />
<em>http://myserver:8001</p>
<p>http://myserver:8002</em></p>
<p>First, we need to edit ports.conf file to add two port numbers 8001, 8002</p>
<p><strong>$ vi /etc/apache2/ports.conf</strong></p>
<p>File Content</p>
<p>Listen 80<br />
Listen 8001<br />
Listen 8002</p>
<p><IfModule mod_ssl.c><br />
    Listen 443<br />
</IfModule></p>
<p>Now, ports.conf file is configured to listen on 80, 8001, 8002</p>
<p>Restart apache for the changes to take effect<br />
<strong>$ /etc/init.d/apache2 restart</strong></p>
<p>To check if Apache is listening on the correct port, netstat command comes in handy</p>
<p><strong>$ netstat -tulpn<br />
$ netstat -tulpn | grep :8002</strong></p>
<p>Setup two site location in /var/www<br />
<strong>$ mkdir /var/www/site1<br />
$ cd /var/www/site1<br />
$ echo &#8220;In site1&#8243; > index.html</strong></p>
<p><strong>$ mkdir /var/www/site2<br />
$ cd /var/www/site2<br />
$ echo &#8220;In site2&#8243; > index.html</strong></p>
<p>Now, lets create myserver.conf file in /etc/apache2/sites-available with the content shown below</p>
<p><VirtualHost 192.168.1.100:8001><br />
        ServerName greenland<br />
        DocumentRoot /var/www/site1<br />
</VirtualHost></p>
<p><VirtualHost 192.168.1.100:8002><br />
        ServerName greenland<br />
        DocumentRoot /var/www/site2<br />
</VirtualHost></p>
<p>Create a symbolic link to enable the site in sites-enabled folder<br />
<strong>$ cd /etc/apache2/sites-enabled<br />
$ ln -s ../sites-available/myserver.conf myserver.conf</strong></p>
<p>In Debian, a2ensite and a2dissite comes in handy to enable, disable sites</p>
<p>Again, restart apache for the changes to take effect<br />
<strong>$ /etc/init.d/apache2 restart</strong></p>
<p>In the browser, type </p>
<p>http://myserver:8001</p>
<p>http://myserver:8002</p>
<p>to see the two sites in action.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/03/ubuntu-configuring-virtual-hosts-to-listen-on-different-ports.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Where to find Apache Error log?</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/02/ubuntu-where-to-find-apache-error-log.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/02/ubuntu-where-to-find-apache-error-log.html#comments</comments>
		<pubDate>Wed, 10 Feb 2010 07:55:14 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[error log]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=754</guid>
		<description><![CDATA[Location where the Apache error log entries can be found in Ubuntu user@server:~# less /var/log/apache2/error.log]]></description>
			<content:encoded><![CDATA[<p>Location where the Apache error log entries can be found in Ubuntu</p>
<p><strong>user@server:~# less /var/log/apache2/error.log</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/02/ubuntu-where-to-find-apache-error-log.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring postfix to send mail via satellite system</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-postfix-sendmail.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-postfix-sendmail.html#comments</comments>
		<pubDate>Mon, 10 Aug 2009 07:11:19 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=595</guid>
		<description><![CDATA[Step 1: $ sudo apt-get install postfix Postfix configuration screen throws you with the following options to choose from i) No changes (no changes to configuration settings) ii) Internet site (Mail sent and received using SMTP) iii) Internet with smarthost (Mail sent to another machine called smarthost) iV) Satellite system (All mail sent to another [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Step 1: $ sudo apt-get install postfix</strong></p>
<p>Postfix configuration screen throws you with the following options to choose from<br />
i) No changes (no changes to configuration settings)<br />
ii) Internet site (Mail sent and received using SMTP)<br />
iii) Internet with smarthost (Mail sent to another machine called smarthost)<br />
iV) Satellite system (All mail sent to another machine for delivery)<br />
v) Local only (No network based mail system. Only applied to this local machine)<br />
<span id="more-595"></span><br />
For this example let us choose the option (iv) where we have a Linux server connected to external network through another server.</p>
<p><strong>Step 2: sudo dpkg-reconfigure postfix</strong></p>
<p>Next screen will ask you for the &#8220;System mail name&#8221;. Give the name of the mail server in this location. Go with the default options.</p>
<p>To test if the configuration has gone through successfully I have used two methods. One using <strong>telnet</strong> and other using <strong>sendmail</strong> program.</p>
<p><strong>root@greenland:/# telnet mail-server 25</strong><br />
Trying 172.24.8.11&#8230;<br />
Connected to mail-server.domain.com.<br />
Escape character is &#8216;^]&#8217;.<br />
220 mailserver.domain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Thu, 6 Aug 2009 12:36:38 -0400<br />
helo gmail.com<br />
250 mail.domain.com Hello [192.168.1.116]<br />
mail from: tester@gmail.com<br />
250 2.1.0 tester@gmail.com&#8230;.Sender OK<br />
rcpt to:receiver@gmail.com<br />
250 2.1.5 receiver@gmail.com<br />
data<br />
354 Start mail input; end with &lt;CRLF&gt;.&lt;CRLF&gt;<br />
testing email to google output<br />
, yes<br />
.<br />
250 2.6.0 <mail-server0iUb00003dbe@mail.domain.com> Queued mail for delivery<br />
quit<br />
221 2.0.0 mail.domain.com Service closing transmission channel<br />
Connection closed by foreign host.</p>
<p>For further modification to the configuration you can edit<strong> /etc/postfix/main.cf</strong> file</p>
<p><strong>~ Sample main.cf configuration ~</strong></p>
<p>#myorigin = /etc/mailname</p>
<p>smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)<br />
biff = no</p>
<p># appending .domain is the MUA&#8217;s job.<br />
append_dot_mydomain = no</p>
<p># Uncomment the next line to generate &#8220;delayed mail&#8221; warnings<br />
#delay_warning_time = 4h</p>
<p>readme_directory = no</p>
<p># TLS parameters<br />
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem<br />
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key<br />
smtpd_use_tls=yes<br />
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache<br />
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache</p>
<p># See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for<br />
# information on enabling SSL in the smtp client.</p>
<p>myhostname = linuxserver.domain.com<br />
alias_maps = hash:/etc/aliases<br />
alias_database = hash:/etc/aliases<br />
mydestination =<br />
relayhost = mail-server.domain.com<br />
mynetworks = 127.0.0.0/8 172.24.8.0/24<br />
mailbox_size_limit = 0<br />
recipient_delimiter = +<br />
inet_interfaces = loopback-only<br />
inet_protocols = ipv4<br />
myorigin = /etc/mailname</p>
<p>Another way to check if mail is working or not is to use the sendmail program in verbose mode<br />
<strong>$ sendmail -v &#8216;tester@gmail.com&#8217;</strong><br />
This is a test email&lt;CRLF&gt;.&lt;CRLF&gt;</p>
<p><strong>Reference</strong>:<br />
<a href="http://www.rdpslides.com/webresources/FAQ00035.htm" target="_blank">http://www.rdpslides.com/webresources/FAQ00035.htm</a><br />
<a href="http://pccicla.blogspot.com/2007/02/ubuntu-smtp-server.html" target="_blank">http://pccicla.blogspot.com/2007/02/ubuntu-smtp-server.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-postfix-sendmail.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find the version of Apache?</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/how-to-find-the-version-of-apache.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/how-to-find-the-version-of-apache.html#comments</comments>
		<pubDate>Fri, 07 Aug 2009 06:43:12 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[apache version]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[find version in apache]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=584</guid>
		<description><![CDATA[In ubuntu, it is $ apache2 -v In CentOS, it is $ httpd -v To find out where apache2 or httpd program is installed you can do the $ whereis apache2 or, $ locate httpd]]></description>
			<content:encoded><![CDATA[<p>In ubuntu, it is</p>
<p><strong>$ apache2 -v</strong></p>
<p>In CentOS, it is</p>
<p><strong>$ httpd -v</strong></p>
<p>To find out where apache2 or httpd program is installed you can do the<br />
<strong>$ whereis apache2 or,<br />
$ locate httpd</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/how-to-find-the-version-of-apache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to burn ISO image from Ubuntu Command Line?</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/how-to-burn-iso-image-from-ubuntu-command-line.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/how-to-burn-iso-image-from-ubuntu-command-line.html#comments</comments>
		<pubDate>Thu, 06 Aug 2009 16:30:16 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[command line burn cd]]></category>
		<category><![CDATA[genisoimage]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu feisty]]></category>
		<category><![CDATA[wodim]]></category>
		<category><![CDATA[write cd command line]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=579</guid>
		<description><![CDATA[First list down the CD/DVD devices connected to your machine and find the device name. Some of the tools that comes handy in an Ubuntu machine are &#8216;wodim&#8217;, &#8216;genisoimage&#8217; Wodim stands for Write Data to Optical Disk Media. If you don&#8217;t have the software installed in your Ubuntu release do an apt-get $ apt-get install [...]]]></description>
			<content:encoded><![CDATA[<p>First list down the CD/DVD devices connected to your machine and find the device name. Some of the tools that comes handy in an Ubuntu machine are &#8216;wodim&#8217;, &#8216;genisoimage&#8217;</p>
<p><strong>Wodim</strong> stands for <em>Write Data to Optical Disk Media</em>. If you don&#8217;t have the software installed in your Ubuntu release do an apt-get</p>
<p><strong>$ apt-get install wodim</strong></p>
<p>To know more about wodim and its parameter definition try man on wodim</p>
<p>To list the CD/DVD devices on the machine, issue </p>
<p><strong>$ wodim &#8211;devices</strong></p>
<p>wodim: Overview of accessible drives (2 found) :<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 0  dev=&#8217;/dev/scd0&#8242;     rwrw&#8211; : &#8216;HL-DT-ST&#8217; &#8216;CD-RW GCE-8481B&#8217;<br />
 1  dev=&#8217;/dev/scd1&#8242;     rwrw&#8211; : &#8216;HL-DT-ST&#8217; &#8216;DVD-ROM GDR8161B&#8217;</p>
<p>Our read-write CD device is in <strong>/dev/scd0</strong>. So our command for burning the .iso image</p>
<p><strong>$ wodim dev=/dev/scd0 driveropts=burnfree -v -data ubuntu8desktop.iso</strong></p>
<p>To burn audio files</p>
<p>$ wodim dev=/dev/scd0 driveropts=burnfree -v -audio one.wav two.wav three.wav</p>
<p><strong>Further read </strong><br />
i) ubuntu guide <strong>http://ubuntuguide.org/wiki/Ubuntu:Feisty/CDDVDBurning</strong></p>
<p>ii) ubuntu site <strong>https://help.ubuntu.com/community/CdDvd/Burning</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/how-to-burn-iso-image-from-ubuntu-command-line.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Hardy Heron, CakePHP Setting in Virtual Host Environment</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-hardy-heron-cakephp-setting-in-virtual-host-environment.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-hardy-heron-cakephp-setting-in-virtual-host-environment.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 13:14:57 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[cakePHP]]></category>
		<category><![CDATA[hardy heron]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Virtual Host]]></category>
		<category><![CDATA[virtual hosting]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=577</guid>
		<description><![CDATA[If you are to setup CakePHP in a virtual hosting environment, we need to ensure that the DocumentRoot is setup correctly. Based on the experience I have had I thought to list down the virtual host setting and cakephp .htaccess setting files. root@myserver:/etc/apache2/conf.d# cat vhosts.conf NameVirtualHost 192.168.1.100:80 &#60;VirtualHost 192.168.1.100:80&#62; ServerName cakeapp DocumentRoot /var/www/cakeapp &#60;/VirtualHost&#62; (Note [...]]]></description>
			<content:encoded><![CDATA[<p>If you are to setup CakePHP in a virtual hosting environment, we need to ensure that the DocumentRoot is setup correctly. Based on the experience I have had I thought to list down the virtual host setting and cakephp .htaccess setting files.</p>
<p><strong>root@myserver:/etc/apache2/conf.d# cat vhosts.conf</strong><br />
NameVirtualHost 192.168.1.100:80</p>
<p>&lt;VirtualHost 192.168.1.100:80&gt;<br />
 ServerName cakeapp<br />
 DocumentRoot /var/www/cakeapp<br />
&lt;/VirtualHost&gt;</p>
<p>(Note that there is no ending forward slash after /var/www/cakeapp. If there had been one, it might cause a problem if the /var/www/cakeapp/app/config/routes.php is not configured correctly indicating a never ending loop in resolving domain name)</p>
<p><strong>root@myserver:/etc/apache2/conf.d# cat /var/www/cakeapp/.htaccess</strong><br />
&lt;IfModule mod_rewrite.c&gt;<br />
   RewriteEngine on<br />
   RewriteRule    ^$ app/webroot/    [L]<br />
   RewriteRule    (.*) app/webroot/$1 [L]<br />
&lt;/IfModule&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-hardy-heron-cakephp-setting-in-virtual-host-environment.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu, Apache: Virtual Hosting</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-apache-virtual-hosting.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-apache-virtual-hosting.html#comments</comments>
		<pubDate>Tue, 04 Aug 2009 10:49:42 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[hardy heron]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual hosting]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=567</guid>
		<description><![CDATA[Virtual Hosting in Ubuntu Hardy Heron: Case Example Consider the case of two domain names mysite1 and site2 to be served on IP Address 192.168.1.100 (port 80) Before proceeding let us look at how resolv.conf and hosts file are set up &#8230; $ cat /etc/resolv.conf search kurinchilion.com nameserver 192.168.1.100 $ cat /etc/hosts 127.0.0.1 localhost 192.168.1.100 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Virtual Hosting in Ubuntu Hardy Heron: Case Example</strong></p>
<p><font color="blue">Consider the case of two domain names <strong>mysite1 </strong>and <strong>site2 </strong>to be served on IP Address <strong>192.168.1.100 (port 80)</strong></font></p>
<p>Before proceeding let us look at how resolv.conf and hosts file are set up &#8230;</p>
<p><strong>$ cat /etc/resolv.conf</strong><br />
search kurinchilion.com<br />
nameserver 192.168.1.100</p>
<p><strong>$ cat /etc/hosts</strong><br />
127.0.0.1       localhost<br />
192.168.1.100    myserver.kurinchilion.com    myserver</p>
<p># The following lines are desirable for IPv6 capable hosts<br />
::1     ip6-localhost ip6-loopback<br />
fe00::0 ip6-localnet<br />
ff00::0 ip6-mcastprefix<br />
ff02::1 ip6-allnodes<br />
ff02::2 ip6-allrouters<br />
ff02::3 ip6-allhosts</p>
<p><span id="more-567"></span><br />
We can organize the name server information, directory to serve under each circumstance, folder permission in different ways</p>
<p>i) organize all name server information under /etc/apache2/conf.d/vhosts.conf</p>
<p>NameVirtualHost 192.168.1.100<br />
&lt;VirtualHost 192.168.1.100:80&gt;<br />
  ServerName mysite1<br />
  DocumentRoot /var/www/mysite1<br />
  &lt;Directory /var/www/mysite1&gt;<br />
        Options -Indexes FollowSymLinks<br />
        AllowOverride All<br />
&lt; </Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.1.100:80&gt;<br />
  ServerName mysite2<br />
  DocumentRoot /home/mysite2<br />
&lt;/VirtualHost&gt;</p>
<p>After creating the above file, issue the following commands</p>
<p><strong>$ sudo /etc/init.d/apache2 restart</strong></p>
<p><strong>$ sudo /etc/init.d/apache2 force-reload</strong></p>
<p>ii) have a modular approach to site organization and list separate files based on domain name under /etc/apache2/sites-enabled</p>
<p><strong>File: mysite1</strong><br />
&lt;VirtualHost 192.168.1.100:80&gt;<br />
  ServerName mysite1<br />
  DocumentRoot /var/www/mysite1<br />
  <Directory /var/www/mysite1><br />
        Options FollowSymLinks<br />
        AllowOverride All<br />
  </Directory><br />
&lt;/VirtualHost&gt;</p>
<p><strong>File: mysite2</strong><br />
&lt;VirtualHost 192.168.1.100:80&gt;<br />
  ServerName mysite2<br />
  DocumentRoot /home/mysite2<br />
&lt;/VirtualHost&gt;</p>
<p>After creating the above files, issue the following commands</p>
<p><strong>$ a2ensite mysite1</strong></p>
<p><strong>$ a2ensite mysite2</strong></p>
<p>(If you want to disable the site configuration, then issue a2dissite sitename)</p>
<p><strong>$ sudo ln -s /etc/apache2/sites-available/mysite1 /etc/apache2/sites-enabled/mysite1</p>
<p>$ sudo ln -s /etc/apache2/sites-available/mysite2 /etc/apache2/sites-enabled/mysite2</p>
<p>$ sudo /etc/init.d/apache2 restart</p>
<p>$ sudo /etc/init.d/apache2 force-reload</strong></p>
<p>iii) Organize the same information stated in step (i) but under /etc/apache2/sites-available/default (This already has a symbolic link to /etc/apache2/sites-enabled/000-default)</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/ubuntu-apache-virtual-hosting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache, Ubuntu, CentOS: Virtual Host Configuration</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/apache-ubuntu-centos-virtual-host-configuration.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/apache-ubuntu-centos-virtual-host-configuration.html#comments</comments>
		<pubDate>Mon, 03 Aug 2009 11:16:36 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Virtual Host Configuration]]></category>
		<category><![CDATA[virtual hosting]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=564</guid>
		<description><![CDATA[What is Virtual Hosting? Virtual Hosting is a technique by which web servers can serve more than one domain name on the same server. It can also be a variation of serving different sites on the same IP but on different ports. If Ubuntu, you may need to edit i) /etc/hosts ii) /etc/apache2/conf.d/vhosts.conf (or /etc/apache2/sites-available/default) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is Virtual Hosting?</strong></p>
<p>Virtual Hosting is a technique by which web servers can serve more than one domain name on the same server. It can also be a variation of serving different sites on the same IP but on different ports.<br />
<span id="more-564"></span><br />
If <strong>Ubuntu</strong>, you may need to edit<br />
i) /etc/hosts</p>
<p>ii) /etc/apache2/conf.d/vhosts.conf (or /etc/apache2/sites-available/default) depending on how you have configured the virtual host environment</p>
<p>If <strong>CentOS</strong>, you may need to edit</p>
<p>i) /etc/hosts</p>
<p>ii) /etc/httpd/conf/httpd.conf</p>
<p>For listening to different ports Listen directive should be added to /etc/httpd/conf/httpd.conf file</p>
<p><strong>References:</strong></p>
<p><a href="http://httpd.apache.org/docs/2.0/vhosts/examples.html" target="_blank">http://httpd.apache.org/docs/2.0/vhosts/examples.html (Apache&#8217;s virtual host configuration documentation)</a></p>
<p><a href="http://en.wikipedia.org/wiki/Virtual_host" target="_blank">http://en.wikipedia.org/wiki/Virtual_host</a></p>
<p><a href="http://apptools.com/phptools/virtualhost.php" target="_blank">http://apptools.com/phptools/virtualhost.php (For configuring Apache server on Windows)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/apache-ubuntu-centos-virtual-host-configuration.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

