<?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>Blog for the Web Programmers &#187; Linux</title>
	<atom:link href="http://blog.chandanweb.com/tags/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chandanweb.com</link>
	<description>A useful blog with code assitance on Typo3, Drupal, PHP, Apache, OpenSSL and PHP Frameworks</description>
	<lastBuildDate>Thu, 08 Jul 2010 05:44:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Some of the most important things to know about Linux</title>
		<link>http://blog.chandanweb.com/linux/some-of-the-most-important-things-to-know-about-linux</link>
		<comments>http://blog.chandanweb.com/linux/some-of-the-most-important-things-to-know-about-linux#comments</comments>
		<pubDate>Tue, 10 Mar 2009 12:31:51 +0000</pubDate>
		<dc:creator>spabhat</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache config]]></category>
		<category><![CDATA[file locations in linux]]></category>
		<category><![CDATA[linux administration]]></category>
		<category><![CDATA[managing linux services]]></category>

		<guid isPermaLink="false">http://blog.chandanweb.com/linux/some-of-the-most-important-things-to-know-about-linux</guid>
		<description><![CDATA[&#160; These settings are applicable to Redhat/ Fedora / CentOS and I am not aware if this holds good even on other Distros. Important File / Folder Locations Location of HTTPD (Apache) Configuration File: /etc/httpd/conf/httpd.conf Location of PHP Configuration File (php.ini): /etc/php.ini Service Related Information Enabling / Disabling Services The chkconfig command can be used [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>These settings are applicable to Redhat/ Fedora / CentOS and I am not aware if this holds good even on other Distros.</p>
<h4>Important File / Folder Locations</h4>
<ul>
<li>Location of HTTPD (Apache) Configuration File:      <br />/etc/httpd/conf/httpd.conf       </li>
<li>Location of PHP Configuration File (php.ini):      <br />/etc/php.ini </li>
</ul>
<h4>Service Related Information</h4>
<p><strong>Enabling / Disabling Services      <br /></strong>The chkconfig command can be used for enabling / disabling services on Redhat based linux distributions.</p>
<blockquote><p>EX: # chkconfig httpd &#8211;add       <br />EX: # chkconfig httpd on       <br />EX: # chkconfig –list httpd       <br />EX: # chkconfig httpd of       <br />EX: # chkconfig httpd –del       </p>
</blockquote>
<p><strong></strong></p>
<p><strong>Starting / stopping / a service</strong></p>
<blockquote><p>service &lt;service name&gt; start/stop      <br />EX: # service httpd stop       <br />EX: # service httpd start</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.chandanweb.com/linux/some-of-the-most-important-things-to-know-about-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running several name-based web sites on single IP address on Fedora 8</title>
		<link>http://blog.chandanweb.com/linux/running-several-name-based-web-sites-on-single-ip-address-on-fedora-8</link>
		<comments>http://blog.chandanweb.com/linux/running-several-name-based-web-sites-on-single-ip-address-on-fedora-8#comments</comments>
		<pubDate>Tue, 03 Jun 2008 12:23:17 +0000</pubDate>
		<dc:creator>spabhat</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache config]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Fedora 8]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[linux administration]]></category>
		<category><![CDATA[restart apache]]></category>
		<category><![CDATA[Vhost]]></category>

		<guid isPermaLink="false">http://blog.spabhat.com/?p=44</guid>
		<description><![CDATA[I have given below a few main points which may be useful in setting up a virtual host on Fedora 8. I would give these examples considering you wish to have www.url-1.com and www.url-2.com. Step 1: Add your new domain to hosts file. This is very essential else you will get address not found error! [...]]]></description>
			<content:encoded><![CDATA[<p>I have given below a few main points which may be useful in setting up a virtual host on Fedora 8.</p>
<blockquote><p>I would give these examples considering you wish to have</p>
<p>www.url-1.com and <a href="http://www.url-2.com">www.url-2.com</a>.      </p>
</blockquote>
<p><strong>Step 1: Add your new domain to hosts file. </strong></p>
<p>This is very essential else you will get address not found error!   </p>
<p>Host file is usually located in /etc/hosts</p>
<p>Double click on the &quot;hosts&quot; file, and it should open in &quot;gedit&quot;.   <br />The configuration should resemble something like this:</p>
<blockquote><p>#if you would like to setup only for local system</p>
<p>127.0.0.1 url1.com www.url1.com url2.com www.url2.com</p>
<p>#setting up for a IP which can be accessessible outside</p>
<p>192.168.1.1 url1.com www.url1.com url2.com <a href="http://www.url2.com">www.url2.com</a></p>
</blockquote>
<p><strong></strong>&#160;</p>
<p><strong>Step 2: Load VHOST Module in Apache</strong></p>
<p>Now open the Apache configuration file &quot;httpd.conf&quot; and make sure that vhost alias module is loaded as shown.</p>
<blockquote><p>Usual FILE LOCATION: etc/httpd/conf/httpd.conf      </p>
<p>LoadModule vhost_alias_module modules/mod_vhost_alias.so      </p>
</blockquote>
<p><strong></strong></p>
<p><strong>Step 3: Add Virtual Host Entries</strong>    <br />Now it is time to make proceed and configure Apache Server (the httpd service) to serve files for the different websites.</p>
<blockquote><p>NameVirtualHost 127.0.0.1:80      </p>
<p>&lt;/VirtualHost 127.0.0.1:80&gt;      <br />&#160;&#160;&#160;&#160;&#160; ServerName www.url-1.com      <br />&#160;&#160;&#160;&#160;&#160; DocumentRoot /var/www/url1-folder      <br />&lt;/virtualhost&gt;       <br />&lt;/VirtualHost 127.0.0.1:80&gt;      <br />&#160;&#160;&#160;&#160;&#160; ServerName www.url-2.com      <br />&#160;&#160;&#160;&#160;&#160; DocumentRoot /var/www/url2-folder      <br />&lt;/VirtualHost&gt;</p>
</blockquote>
<p><strong>OR </strong></p>
<blockquote><p>NameVirtualHost 192.168.1.7:80</p>
<p>&lt;/VirtualHost 192.168.1.7:80&gt;     <br />&#160;&#160;&#160;&#160;&#160; ServerName www.url-1.com      <br />&#160;&#160;&#160;&#160;&#160; DocumentRoot /var/www/url1-folder      <br />&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.1.7:80&gt;     <br />&#160;&#160;&#160;&#160;&#160; ServerName www.url-2.com      <br />&#160;&#160;&#160;&#160;&#160; DocumentRoot /var/www/url2-folder      <br />&lt;/VirtualHost&gt;</p>
</blockquote>
<p>NOTE: The following settings usually do not work on Linux platform:</p>
<blockquote><p>&lt;VirtualHost *:80&gt; or NameVirtualHost *.80</p>
</blockquote>
<p>Instead you need to use the actual IP address such as:</p>
<blockquote><p>&lt;VirtualHost 192.168.1.7:80&gt; or NameVirtualHost 192.168.1.7.80</p>
</blockquote>
<p>If you use *.80, you may always see the default website for both url-1.com and url-2.com.</p>
<p>You may find more virtualhost examples at the following URL: <a href="http://httpd.apache.org/docs/2.2/vhosts/examples.html">http://httpd.apache.org/docs/2.2/vhosts/examples.html</a></p>
<p>For CentOS There are a few strict rules to follow as given in:   <br /><a title="http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-apache-virtualhosts.html" href="http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-apache-virtualhosts.html">http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-apache-virtualhosts.html</a></p>
<p>&#160;</p>
<p><strong>Setup 4: The final Step – Restart Apache</strong>    <br />&#160;&#160;&#160;&#160;&#160; The final step is to re-start httpd service using the following command.</p>
<blockquote><p>service httpd restart      </p>
</blockquote>
<p>&#160;</p>
<p>Now you should be able to browse www.url-1.com and www.url-2.com using any web-browser such as Mozilla firefox.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chandanweb.com/linux/running-several-name-based-web-sites-on-single-ip-address-on-fedora-8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
