<?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>Tuts4Tech &#187; web</title>
	<atom:link href="http://tuts4tech.net/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Sun, 18 Jul 2010 01:41:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Lighttpd virtual hosting</title>
		<link>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/</link>
		<comments>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 01:42:51 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[port 80]]></category>
		<category><![CDATA[vhosts]]></category>
		<category><![CDATA[virtual hosting]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://tuts4tech.co.cc/?p=258</guid>
		<description><![CDATA[Virtual hosting allows you to host many websites from one server. Setup The Folders and users adduser domain1 addgroup domain1 adduser www-data domain1 mkdir -p /home/domain1 chown domain1:domain1 -R /home/domain1 chmod 750 -R /home/domain1 adduser domain2 addgroup domain2 adduser www-data domain2 mkdir -p /home/domain2 chown domain2:domain2 -R /home/domain2 chmod 750 -R /home/domain2 Lighttpd Config Open [...]]]></description>
			<content:encoded><![CDATA[<p>Virtual hosting allows you to host many websites from one server.</p>
<ol>
<h3>Setup The Folders and users</h3>
<li>
<pre class="brush: plain;">adduser domain1
addgroup domain1
adduser www-data domain1
mkdir -p /home/domain1
chown domain1:domain1 -R /home/domain1
chmod 750 -R /home/domain1</pre>
<p>
<pre class="brush: plain;">adduser domain2
addgroup domain2
adduser www-data domain2
mkdir -p /home/domain2
chown domain2:domain2 -R /home/domain2
chmod 750 -R /home/domain2</pre>
</li>
</ol>
<ol>
<h3>Lighttpd Config</h3>
<li>Open your lighttpd.conf
<pre class="brush: plain;">nano /etc/lighttpd.conf</pre>
</li>
<li>Add the following for the virtual host configuration
<pre class="brush: plain;">$HTTP[&quot;host&quot;] == &quot;domain1.com&quot; {
server.document-root = &quot;/home/domain1&quot;
accesslog.filename = &quot;/var/log/lighttpd/domain1/access.log&quot;
}</pre>
<p></p>
<pre class="brush: plain;">$HTTP[&quot;host&quot;] == &quot;domain2.com&quot; {
server.document-root = &quot;/home/domain2&quot;
accesslog.filename = &quot;/var/log/lighttpd/domain2/access.log&quot;
}</pre>
</li>
<li>Save your config and restart lighttpd
<pre class="brush: plain;">/etc/init.d/lighttpd restart</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/06/13/lighttpd-virtual-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elements made easy</title>
		<link>http://tuts4tech.net/2009/05/25/elements-made-easy/</link>
		<comments>http://tuts4tech.net/2009/05/25/elements-made-easy/#comments</comments>
		<pubDate>Mon, 25 May 2009 21:38:57 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[westciv.com]]></category>
		<category><![CDATA[xray]]></category>

		<guid isPermaLink="false">http://tuts4tech.co.cc/?p=191</guid>
		<description><![CDATA[XRAY is a bookmarklet that will allow you to quickly and easily view the elements of a webpage Drag Xray to your bookmarks tab XRAY Load any webpage Click on the xray bookmark Then click on any element and it will show you all its css values]]></description>
			<content:encoded><![CDATA[<p>XRAY is a bookmarklet that will allow you to quickly and easily view the elements of a webpage</p>
<ol>
<li>Drag Xray to your bookmarks tab
<p class="xraybutton"><a href="javascript:function%20loadScript(scriptURL)%20{%20var%20scriptElem%20=%20document.createElement(&#39;SCRIPT&#39;);%20scriptElem.setAttribute(&#39;language&#39;,%20&#39;JavaScript&#39;);%20scriptElem.setAttribute(&#39;src&#39;,%20scriptURL);%20document.body.appendChild(scriptElem);}loadScript(&#39;http://westciv.com/xray/thexray.js&#39;);" class="c1" title="drag this to your bookmarks bar">XRAY</a></p>
</li>
<li>Load any webpage</li>
<li>Click on the xray bookmark</li>
<li>Then click on any element and it will show you all its css values</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/05/25/elements-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttpd On Windows</title>
		<link>http://tuts4tech.net/2009/04/06/lighttpd-on-windows/</link>
		<comments>http://tuts4tech.net/2009/04/06/lighttpd-on-windows/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 12:12:43 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://duffys-place.co.cc/?p=69</guid>
		<description><![CDATA[Setting Up Lighttpd Download the lighttpd setup file from here. I chose the Setup Wizard (.exe) version. Double-click on the downloaded executable to start the installation. When the installation is done go to your lighttpd directory(by default its C:\program files\lighttpd) and run TestMode.bat A console window should open to indicate the server is started. Go [...]]]></description>
			<content:encoded><![CDATA[<p><object width="600" height="465" data="http://www.youtube.com/v/QbDpntqGFmg&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/QbDpntqGFmg&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x006699&amp;color2=0x54abd6" /><param name="allowfullscreen" value="true" /></object></p>
<ol>
<h4>Setting Up Lighttpd</h4>
<li>Download the lighttpd setup file from <a href="http://en.wlmp-project.net/downloads.php?cat=lighty">here</a>. I chose the Setup Wizard (.exe) version.</li>
<li>Double-click on the downloaded executable to start the installation.</li>
<li>When the installation is done go to your lighttpd directory(by default its C:\program files\lighttpd) and run TestMode.bat A console window should open to indicate the server is started.</li>
<li>Go to <a href="http://localhost">http://localhost</a> this should show a lighttpd test page.</li>
</ol>
<ol>
<h4>Enabling PHP</h4>
<li>Download php .zip package from <a href="http://www.php.net/downloads.php">here</a></li>
<li> Extract it to C:\php</li>
<li>Edit lighttpd-inc.conf (i.e. “C:\Program Files\LightTPD\conf\lighttpd-inc.conf”) with the following:
<ol>
<li>Remove the comment tag(#) for "mod-cgi" (Line 20)</li>
<li>Add this line (assuming that PHP was installed on C drive):</li>
<li>cgi.assign = ( “.php” => “C:/php/php-cgi.exe” )</li>
</ol>
</li>
<li>In your PHP directory rename the file php.ini-recommended to php.ini and edit php.ini with the following:
<ol>
<li>short_open_tag = On</li>
<li>display_errors = On</li>
<li>doc_root = “C:\Progra~1\LightTPD\htdocs”</li>
</ol>
</li>
</ol>
<ol>
<h4>Testing PHP</h4>
<li>You can test php by creating a file containing:</li>
<pre class="brush: plain;">&lt;?php phpinfo(); ?&gt;</pre>
<p>Place the file in your htdocs directory (i.e. “C:\Program Files\LightTPD\htdocs”), open up your browser and browse to the page. It should show you the php info page.
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/04/06/lighttpd-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
