<?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>var/log &#187; Aleks</title>
	<atom:link href="http://www.varslashlog.com/author/aleks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.varslashlog.com</link>
	<description>Yet another weblog</description>
	<lastBuildDate>Sat, 12 Sep 2009 13:34:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Remember to backup</title>
		<link>http://www.varslashlog.com/2008/10/31/remember-to-backup/</link>
		<comments>http://www.varslashlog.com/2008/10/31/remember-to-backup/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 22:28:56 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[system crash]]></category>

		<guid isPermaLink="false">http://www.varslashlog.com/?p=72</guid>
		<description><![CDATA[What we all know is the backup is for whimps. This song might show the importace of taking backup to not make a system admin more depressed.
]]></description>
			<content:encoded><![CDATA[<p>What we all know is the backup is for whimps. This song might show the importace of taking backup to not make a system admin more depressed.</p>
<a href="http://www.varslashlog.com/2008/10/31/remember-to-backup/"><p><em>Click here to view the embedded video.</em></p></a>
]]></content:encoded>
			<wfw:commentRss>http://www.varslashlog.com/2008/10/31/remember-to-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup subdomains in apache</title>
		<link>http://www.varslashlog.com/2008/10/31/how-to-setup-subdomains-in-apache/</link>
		<comments>http://www.varslashlog.com/2008/10/31/how-to-setup-subdomains-in-apache/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 14:31:07 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.varslashlog.com/?p=61</guid>
		<description><![CDATA[It&#8217;s not difficult to run a website without using expensive applications like plesk. It&#8217;s really not that difficult to setup a subdomain or site yourself. Here I will show an easy method of setting up subdomains. Though this might not be a perfect way of doing it. At least it easy, and you have the [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not difficult to run a website without using expensive applications like plesk. It&#8217;s really not that difficult to setup a subdomain or site yourself. Here I will show an easy method of setting up subdomains. Though this might not be a perfect way of doing it. At least it easy, and you have the site up and running in 5 minutes.<span id="more-61"></span>If we do this guide by setup the site for example.tld and one subdomain, admin. The DNS records did I show how to setup in <a title="How to setup DNS in BIND" href="http://www.varslashlog.com/2008/10/30/how-to-setup-dns-in-bind/">this guide about how to setup DNS in BIND.</a></p>
<p>We start by setting up the paths to our new domin. It might be a good idea to put new domains in the home directory. Though you are free to put them where you want.</p>
<p>I personally use the home directory, and will base my short guide on doing so.</p>
<p>Start by creating the domain as a folder in the home directory.</p>
<blockquote><p># mkdir /home/example.tld</p></blockquote>
<p>Next give apache owner rights over the folder</p>
<blockquote><p># chown apache:apache /home/example.tld</p></blockquote>
<p>Change the directory to the example.tld.</p>
<blockquote><p># cd /home/example.tld</p></blockquote>
<p>We want to make two directories, one to store our web page to example.tld, and one to store subdomains.</p>
<blockquote><p># mkdir htdocs<br />
# mkdir subdomains<br />
# chown apache:apache htdocs<br />
# chown apache:apache subdomains</p></blockquote>
<p>Since we are going to add one subdomain, we will add our subdomain &#8220;admin&#8221; to our subdomain folder.</p>
<blockquote><p># mkdir subdomains/admin<br />
# chown apache:apache subdomains/admin</p></blockquote>
<p>And at last create a htdocs folder in the admin subdomain folder.</p>
<blockquote><p># mkdir subdomins/admin/htdocs<br />
# chown  apache:apache subdomains/admin/htdocs</p></blockquote>
<p>We are almoust ready now. Put your web page files into the htdocs folders, or just create a dummy index.html with &#8220;Hello World&#8221; or something. If you get many folders and files and need th change the owner on all you can run this command to change all files and dirs to the apache user and group.</p>
<blockquote><p># chown apache:apache -R /home/example.tld</p></blockquote>
<p>Now we are ready to edit the apache configuration.</p>
<p>Open the configuration file (you need to be root or have sudo privileges)</p>
<blockquote><p>#vi /etc/httpd/conf/httpd.conf</p></blockquote>
<p>Go to the end of the configuration file and go into insert mode. Add two virtual hosts in this file at the far end.</p>
<p>First Add the virtual host if it&#8217;s not present</p>
<blockquote><p>NameVirtualHost *:80</p></blockquote>
<p>Then add the virtual host for the main domain, example.tld</p>
<blockquote><p>&lt;VirtualHost *:80&gt;<br />
DocumentRoot /home/example.tld/htdocs<br />
ServerName example.tld<br />
&lt;Directory &#8220;/home/example.tld/htdocs&#8221;&gt;<br />
allow from all<br />
Options +Indexes<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p>Next add the virtual host for the subdomain. Repeat this one for every subdomain you want</p>
<blockquote><p>&lt;VirtualHost *:80&gt;<br />
DocumentRoot /home/example.tld/subdomains/admin/htdocs<br />
ServerName admin.example.tld<br />
&lt;Directory &#8220;/home/example.tld/subdomains/admin/htdocs&#8221;&gt;<br />
allow from all<br />
Options +Indexes<br />
&lt;/Directory&gt;</p></blockquote>
<p>Save the configuration and restart apache</p>
<blockquote><p># service httpd restart</p></blockquote>
<p>Finished!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.varslashlog.com/2008/10/31/how-to-setup-subdomains-in-apache/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to setup DNS in BIND</title>
		<link>http://www.varslashlog.com/2008/10/30/how-to-setup-dns-in-bind/</link>
		<comments>http://www.varslashlog.com/2008/10/30/how-to-setup-dns-in-bind/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 14:58:47 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[subdomain]]></category>

		<guid isPermaLink="false">http://www.varslashlog.com/?p=45</guid>
		<description><![CDATA[This might be a beginners topic for most of the people out there, but the dns setup can be a bit confusing. This is just a short guide for how to setup an easy setup. Nothing complicated, and no fancy-pancy setup. This example will show how to setup an domain example.tld with three sub domains [...]]]></description>
			<content:encoded><![CDATA[<p>This might be a beginners topic for most of the people out there, but the dns setup can be a bit confusing. This is just a short guide for how to setup an easy setup. Nothing complicated, and no fancy-pancy setup. This example will show how to setup an domain example.tld with three sub domains and mail.<span id="more-45"></span></p>
<p>I know subdomains can be setup as wildcards, CNAME and A-records, but right now I use A-record for the subdomains.  To just get it going we will consentrate of just getting it working with the following configuration.</p>
<blockquote><p>Domain: example.tld<br />
Subdomains: mail, admin, mysql<br />
IP: 1.2.3.4</p></blockquote>
<p>Now we will start by adding the domain to the named.conf &#8211; Though it might not be present at this path you might need to search for it. (Using for example webmin would help you show all configuration files).</p>
<blockquote><p># vi /etc/named.conf</p></blockquote>
<p>Add a new zone to named.conf</p>
<blockquote><p>zone &#8220;example.tld&#8221; {<br />
type master;<br />
file &#8220;/var/named/example.tld.hosts&#8221;;<br />
};</p></blockquote>
<p>Save the configuration</p>
<blockquote><p>Push escape, then : x</p></blockquote>
<p>The next step is creating the DNS records.  Add a new file to bind.</p>
<blockquote><p># vi /var/named/example.tld.hosts</p></blockquote>
<p>In this file you will create your DNS-records.</p>
<blockquote><p>$ttl 15m ; TTL Might be smart to have at 15 minutes until your conf are ok<br />
example.tld.	IN	SOA	ns.example.tld. user.example.tld. (<br />
123456789 ;An unique number<br />
86000 ;Refresh rate in seconds<br />
7200 ;Update Retry in seconds<br />
3600000 ;Expiry in seconds<br />
600 ; minimum in seconds<br />
)</p>
<p>example.tld.	IN	NS	ns.example.tld.<br />
example.tld.   IN      A    1.2.3.4<br />
www.example.tld.    IN    CNAME example.tld<br />
mail IN A 1.2.3.4<br />
admin IN A 1.2.3.4<br />
mysql IN A 1.2.3.4<br />
mail.example.tld.	IN	MX	1 example.tld.</p></blockquote>
<p>Now save the file and restart BIND</p>
<blockquote><p># service bind restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.varslashlog.com/2008/10/30/how-to-setup-dns-in-bind/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Trac setup with subdomain in a plesk environment</title>
		<link>http://www.varslashlog.com/2008/10/28/trac-setup-with-subdomain-in-a-plesk-environment/</link>
		<comments>http://www.varslashlog.com/2008/10/28/trac-setup-with-subdomain-in-a-plesk-environment/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 11:19:39 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[configurating]]></category>
		<category><![CDATA[nix]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://www.varslashlog.com/?p=31</guid>
		<description><![CDATA[One thing I&#8217;ve noticed about tutorials regarding the config of apache towards trac in a plesk environment are rather lacking. I&#8217;ll use this short guide to show an easy method of adding the plesk interface as a python module of apache.
The installation of trac is an easy if you got the correct access. Anyhow will [...]]]></description>
			<content:encoded><![CDATA[<p>One thing I&#8217;ve noticed about tutorials regarding the config of apache towards trac in a plesk environment are rather lacking. I&#8217;ll use this short guide to show an easy method of adding the plesk interface as a python module of apache.<span id="more-31"></span></p>
<p>The installation of trac is an easy if you got the correct access. Anyhow will I not go through the install process in this guide, but you can find a tutorial on doing that at the trac home page.</p>
<p>When you got plesk installed you should have  you subdomains as virtual hosts. This should be installed automatic from your plesk admin panel.</p>
<p>Lets say your site is named example.tld and your subdomain named trac.</p>
<blockquote><p>Site name: example.tld<br />
Sub domain: trac</p></blockquote>
<p>Now log into a SSH client and navigate to the trac subdomain folder</p>
<p># cd /var/www/vhosts/example.tld/subdomains/trac/</p>
<p>As we just can&#8217;t put the project files from trac into the htdocs folder just make a project in this folder so you got a sub folder &#8220;project&#8221; in the trac directory (or another place).</p>
<p>When you&#8217;ve got your project folder in place you are ready to setup the trac for your subdomain. In the subdomain folder locate the folder &#8220;conf&#8221;. This folder will locate a file that extend the apache configuration, vhost.conf &#8211; If not, vi will create it</p>
<blockquote><p>#vi vhost.conf</p></blockquote>
<p>Not much configuration necessary here. Add this information (replace the example.tld and path with your environment. And myproject with your project folder for the www-path)</p>
<blockquote><p>&lt;Location /myproject&gt;<br />
SetHandler mod_python<br />
PythonInterpreter main_interpreter<br />
PythonHandler trac.web.modpython_frontend<br />
PythonOption TracEnv /var/www/vhosts/example.tld/subdomains/trac/project/<br />
PythonOption TracUriRoot /myproject<br />
SetEnv PYTHON_EGG_CACHE /tmp/cache<br />
&lt;/Location&gt;</p></blockquote>
<p>Now restart the apache web server and you are good to go</p>
<blockquote><p>#service httpd restart<br />
or<br />
#/etc/rc.d/httpd (or apache) restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.varslashlog.com/2008/10/28/trac-setup-with-subdomain-in-a-plesk-environment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
