<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sys Notes</title>
	<atom:link href="http://sysnotes.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysnotes.wordpress.com</link>
	<description>Technical information. My tech notes and references</description>
	<lastBuildDate>Thu, 13 Nov 2008 03:07:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='sysnotes.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1611b815eebb5d2c0b7fd447441fabd9?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Sys Notes</title>
		<link>http://sysnotes.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sysnotes.wordpress.com/osd.xml" title="Sys Notes" />
		<item>
		<title>Good Morning Gmail Video Chat!</title>
		<link>http://sysnotes.wordpress.com/2008/11/13/good-morning-gmail-video-chat/</link>
		<comments>http://sysnotes.wordpress.com/2008/11/13/good-morning-gmail-video-chat/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 03:05:23 +0000</pubDate>
		<dc:creator>rt</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[video chat]]></category>

		<guid isPermaLink="false">http://sysnotes.wordpress.com/?p=8</guid>
		<description><![CDATA[This morning, when I logged on to check my mails, I was pleasently surprised by a little red message in Gmail top bar!
Guess what it was? Yeah, right! Gmail / Gchat  is now armoured with Video
May be now, I will have reason to hook up a camera and meet the contacts tete-e-tete!
I have not yet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=8&subd=sysnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This morning, when I logged on to check my mails, I was pleasently surprised by a little red message in Gmail top bar!</p>
<p>Guess what it was? Yeah, right! Gmail / Gchat  is now armoured with Video</p>
<p><a href="http://sysnotes.files.wordpress.com/2008/11/gchat.jpg"><img class="aligncenter size-full wp-image-9" title="Google Mail Video Chat" src="http://sysnotes.files.wordpress.com/2008/11/gchat.jpg?w=340&#038;h=48" alt="Google Mail Video Chat" width="340" height="48" /></a>May be now, I will have reason to hook up a camera and meet the contacts <em><strong>tete-e-tete</strong></em>!</p>
<p>I have not yet downloaded, but it requires you to have a plugin and that&#8217;s it.</p>
<p>Is that plugin available for Linux too ? Yet to explore.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysnotes.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysnotes.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysnotes.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysnotes.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysnotes.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=8&subd=sysnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysnotes.wordpress.com/2008/11/13/good-morning-gmail-video-chat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c312062d95c15285855af08d5918d523?s=96&#38;d=identicon" medium="image">
			<media:title type="html">rt</media:title>
		</media:content>

		<media:content url="http://sysnotes.files.wordpress.com/2008/11/gchat.jpg" medium="image">
			<media:title type="html">Google Mail Video Chat</media:title>
		</media:content>
	</item>
		<item>
		<title>How to: Apache Directives in SME Server Virtual Web Hosting</title>
		<link>http://sysnotes.wordpress.com/2008/03/06/how-to-apache-directives-in-sme-server-virtual-web-hosting/</link>
		<comments>http://sysnotes.wordpress.com/2008/03/06/how-to-apache-directives-in-sme-server-virtual-web-hosting/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 22:58:06 +0000</pubDate>
		<dc:creator>rt</dc:creator>
				<category><![CDATA[sme server]]></category>
		<category><![CDATA[smeserver]]></category>
		<category><![CDATA[virtual hosting]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[allowoverride]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[httpd]]></category>

		<guid isPermaLink="false">http://sysnotes.wordpress.com/?p=6</guid>
		<description><![CDATA[Trick to use Apache Directive AllowOverride in SMEserver. This enables using .htaccess and thereby modifying web server configuration.
Sometimes, it is desired to use Apache directives to configure the web server for a specific domain. For example, I needed to use Rewrite engine and mod_rewrite. This was to be done on a SME Server using .htaccess [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=6&subd=sysnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Trick to use Apache Directive AllowOverride in SMEserver. This enables using .htaccess and thereby modifying web server configuration.<span id="more-6"></span></p>
<p>Sometimes, it is desired to use Apache directives to configure the web server for a specific domain. For example, I needed to use Rewrite engine and mod_rewrite. This was to be done on a SME Server using .htaccess file in the web root directory for that domain. This would have been possible if AllowOverride directive of Apache would have been set to All (to enble me use .htaccess)<br />
The Problem was although the Mod Rewrite was loaded into global Apache configuration, it was not possible because by default, the Apache was configured to Not Allow Overrides.</p>
<p>Upon detailed inspection of config files of SME Server, I found a very simple way which was also in line with the elegent configuration  mechanism of SME Server.</p>
<p>For example, we need to use Apache Overrides for a domain, which is mapped to an ibay called &#8220;ibay1&#8243;,</p>
<h2>Step 1. Set a new property in smeserver configuration</h2>
<p>smeserver database : accounts<br />
key name: ibay1<br />
property to be used: AllowOverride<br />
value to be set: All</p>
<p>SME server has a nice mechanism of configuration. (refer to docs for details). At the moment, we are interested in the configuration database (of smeserver philosphy) named accounts (this holds the properties for all ibays) . The property of our interest is called &#8220;AllowOverRide&#8221; in smeserver lingo. This is *not set*by default. However, smeserver does consider, if the property is present. We just need to set it properly. This can be set by simple command</p>
<pre>db accounts setprop ibay1 AllowOverride All</pre>
<p>Our first and critical step is done.</p>
<h2>Step 2. Regenerating Configuration and other files</h2>
<p>The property setting has still not taken effect. For this, a complex and consistive chain of actions are to be done, like saving this value in database, regenerating whichever config files are necessary for system integrity, (esp. regenerate or expand the templates) for /etc/httpd/conf/httpd.conf (apache configuration file). Furtunately, SME server also has decent mechanism and all this is done in a single shot. Just give the command</p>
<pre>signal-event ibay-modify ibay1</pre>
<p>The ibay1 will now enable Apache AllowOverride to All and this in turn would enable us configure the Apache web server *just* for this ibay1 to use the .htaccess files to change configuration, as needed.</p>
<p>Note: This assumes default smeserver set up with version 7.3</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sysnotes.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sysnotes.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysnotes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysnotes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysnotes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysnotes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysnotes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysnotes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysnotes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysnotes.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysnotes.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysnotes.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=6&subd=sysnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysnotes.wordpress.com/2008/03/06/how-to-apache-directives-in-sme-server-virtual-web-hosting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c312062d95c15285855af08d5918d523?s=96&#38;d=identicon" medium="image">
			<media:title type="html">rt</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtual Web Hosting on SME Server with Ibays</title>
		<link>http://sysnotes.wordpress.com/2008/03/06/virtual-web-hosting-on-sme-server-with-ibays/</link>
		<comments>http://sysnotes.wordpress.com/2008/03/06/virtual-web-hosting-on-sme-server-with-ibays/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 22:29:29 +0000</pubDate>
		<dc:creator>rt</dc:creator>
				<category><![CDATA[sme server]]></category>
		<category><![CDATA[smeserver]]></category>
		<category><![CDATA[virtual hosting]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[ibays]]></category>
		<category><![CDATA[virtual web hosting]]></category>

		<guid isPermaLink="false">http://sysnotes.wordpress.com/?p=5</guid>
		<description><![CDATA[How to use SME server for virtual web hosting. Setting up ibays and mapping domains to ibays
This is not a complete document, rather simple trick and tip. This may be updated as needed. It describes how to host virtual web site using SMEserver
We assume, that DNS for this domain is already set up. If not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=5&subd=sysnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>How to use SME server for virtual web hosting. Setting up ibays and mapping domains to ibays<span id="more-5"></span></p>
<p>This is not a complete document, rather simple trick and tip. This may be updated as needed. It describes how to host virtual web site using SMEserver</p>
<p>We assume, that DNS for this domain is already set up. If not this may be done in SME Server itself or elsewhere. Same is true of Emails.</p>
<p>Reference: SME Server V 7.2 / 7.3<br />
(May work with earlier versions &#8211; Not tested)</p>
<p>Example domain <b>mydomain.com</b></p>
<h3>1. Create a user</h3>
<p>Create a user, for example names <b>u1</b>, and group <b>g1</b> (also make, user <b>u1</b> a member of group <b>g1</b>. remember, users, groups, ibays are though different entities, yet they can not have same names, i.e. they share same namespace in smeserver)</p>
<h3>2. Create Ibay</h3>
<p>Create an Ibay, &#8211; for example <b>ibay1</b> (Keep in mind restriction on Ibay name &#8211; 12 Characters) . Settings are as follows</p>
<ul>
<li>Group &#8211; g1</li>
<li>User access via file sharing or user ftp &#8211; Write=group, Read=everyone (Read=group may also work)</li>
<li>Public access via web or anonymous ftp &#8211; Entire Internet (no passwor required)</li>
<li>Execution of dynamic content (CGI, PHP, SSI) &#8211; Enabled</li>
</ul>
<h3>3. Create a Domain</h3>
<p>Go to menu in left side bar for domain and add a domain with following settings</p>
<p>Name &#8211;  <b>mydomain.com</b></p>
<ul>
<li>Brief description &#8211; Description for this site (free format)</li>
<li>Content &#8211; <b>ibay1</b> (this is important, select the desired ibay, previously created Ibay, in step 2, above will appear in the drop downlist, this needs to be selected)</li>
<li>Domain DNS Servers &#8211; Select &#8220;Internet DNS Servers&#8221;</li>
</ul>
<p>Save it and you are ready to go.</p>
<h3>Files Location:</h3>
<h4>HTML Directory (Web Root)</h4>
<p>Absolute path: /home/e-smith/files/ibays/ibay1/html<br />
Relative URL : / or /ibay1</p>
<h4>CGI-Bin directory for Executables</h4>
<p>Absolute Path: /home/e-smith/files/ibays/ibay1/cgi-bin<br />
Relative URL : /cgi-bin/ or /ibay1/cgi-bin</p>
<h4>Extra File Directory also in web server accesible space:</h4>
<p>Absolute Path:  /home/e-smith/files/ibays/ibay1/files<br />
Relative URL :  /ibay1/files OR /files</p>
<p>Just put some HTML, PHP and simlar files and see your site in the browser!</p>
<p>Note: This uses default set up of PHP (viz PHP4), Perl, Apache etc.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sysnotes.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sysnotes.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysnotes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysnotes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysnotes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysnotes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysnotes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysnotes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysnotes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysnotes.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysnotes.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysnotes.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=5&subd=sysnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysnotes.wordpress.com/2008/03/06/virtual-web-hosting-on-sme-server-with-ibays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c312062d95c15285855af08d5918d523?s=96&#38;d=identicon" medium="image">
			<media:title type="html">rt</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP5 on SME server</title>
		<link>http://sysnotes.wordpress.com/2008/03/05/smeserver-and-php5/</link>
		<comments>http://sysnotes.wordpress.com/2008/03/05/smeserver-and-php5/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 00:26:52 +0000</pubDate>
		<dc:creator>rt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[sme server]]></category>
		<category><![CDATA[smeserver]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://sysnotes.wordpress.com/?p=4</guid>
		<description><![CDATA[PHP is a most sought after web scripting language. On the other hand SME server by contribs.org is a wonderful linux distribution encompassing, security, mail and other services. However, present version smeserver 7.2 and smeserver 7.3 are prepackaged with php 4. Sometimes, its needed to use php5. More so, because PHP community has stopped support for PHP5 after 2007. If SME server is to be used for web applications, deployment of PHP5 is needed for many applications.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=4&subd=sysnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>PHP is a most sought after web scripting language. On the other hand SME server by contribs.org is a wonderful linux distribution encompassing, security, mail and other services. However, present version smeserver 7.2 and smeserver 7.3 are prepackaged with php 4. Sometimes, its needed to use php5. More so, because PHP community has stopped support for PHP5 after 2007. If SME server is to be used for web applications, deployment of PHP5 is needed for many applications.<span id="more-4"></span></p>
<p>Following how to from firewall services have suggested a simple and decent way to deploy PHP5 (some issues still there)</p>
<h3>Getting PHP5 binaries</h3>
<p>PHP5 binaries. It is these binaries which are important and that is the trick as well. Here it is suggested to use PHP5 as CGI executable. Ok, so here are the method and sources</p>
<blockquote>
<pre>mkdir php5-cgi
cd php5-cgi
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-imap-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-ldap-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-mysql-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-pear-5.1.2-1.sp.i386.rpm
wget http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-xmlrpc-5.1.2-1.sp.i386.rpm</pre>
</blockquote>
<p>It is to be noted here that PHP5, which is referred to here is CGI and another important aspect is that the version is PHP 5.1.2-1 . I did try to search for later version, but I did not find.  I shall see if later versions are available and if so, update the link here</p>
<p>Optionally ODBC module (perhaps not needed mostly) is also there</p>
<blockquote>
<pre><code>wget <a href="http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-odbc-5.1.2-1.sp.i386.rpm">http://sme.firewall-services.com/downloads/php5-cgi/php5-cgi-odbc-5.1.2-1.sp.i386.rp</a></code></pre>
</blockquote>
<h2>Installation of PHP5-CGI</h2>
<p>This is just simple</p>
<blockquote>
<pre>yum localinstall ./*.rpm</pre>
</blockquote>
<h2>Enabling PHP5-CGI selectively</h2>
<p>This part is multi-step and a bit complex. We need to do Custom Template for httpd.conf modification</p>
<p>We need to modify httpd.conf file so that php5 can be used for .php files. It is **important** to remember that we want to enable php5-cgi for some applications only and not througout the server and therefore it is need to twek the httpd.conf file to use php5-cgi *just* for designated directories.</p>
<p>Now, the decent way of sme server templating. We just make our ouw template and later expand it to generate httpd.conf of our liking.</p>
<p>Create a directory for httpd.conf template</p>
<blockquote>
<div align="left">
<pre>mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/</pre>
</div>
</blockquote>
<p><b>(Note that this step will be here. In original article it is mentioned at second stage)</b></p>
<h3>Create a new template &#8211; Step 1</h3>
<blockquote>
<pre>vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/80php5-cgi</pre>
</blockquote>
<p>with following entries</p>
<blockquote>
<pre>ScriptAlias /php5-cgi /usr/bin/php5
&lt;Directory /usr/bin/php5&gt;
       order deny,allow
       deny from all
       allow from all
       Options ExecCGI
&lt;/Directory&gt;</pre>
</blockquote>
<h3>Create a new template &#8211; Step 2</h3>
<p>Configuring *selective* applications to be taken care by php5-cgi<br />
We create a custom template for each webapp which need php5. For example, if we have installed in an ibay called ’myapp&#8217;, we shall create the file 90myapp or rather we can also create file named 90AddPHP52myapp</p>
<blockquote>
<pre>vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90myapp</pre>
</blockquote>
<p>Entries to go in this file</p>
<blockquote>
<pre>&lt;Directory /home/e-smith/files/ibays/myapp/html&gt;
       AddHandler php5-cgi .php
       Action php5-cgi /php5-cgi/php
&lt;/Directory&gt;</pre>
</blockquote>
<h3>Create a new template &#8211; Step 3</h3>
<p>Regenerate new httpd.conf by expanding the above template</p>
<blockquote>
<pre>expand-template /etc/httpd/conf/httpd.conf</pre>
</blockquote>
<p>Testing configuration file for syntax</p>
<blockquote>
<pre>httpd -t</pre>
</blockquote>
<p>Restart the web server</p>
<blockquote>
<pre>svc -t /service/httpd-e-smith</pre>
</blockquote>
<p>With this, the myapp ibay files will be executed by php5-cgi and rest will be handled by default installation of php4</p>
<h2>Important</h2>
<p>For these apps the php.ini file will be in /etc/php5</p>
<p>Original Article Ref: <a href="http://sme.firewall-services.com/spip.php?article46">http://sme.firewall-services.com/spip.php?article46</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sysnotes.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sysnotes.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysnotes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysnotes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysnotes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysnotes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysnotes.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=4&subd=sysnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysnotes.wordpress.com/2008/03/05/smeserver-and-php5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c312062d95c15285855af08d5918d523?s=96&#38;d=identicon" medium="image">
			<media:title type="html">rt</media:title>
		</media:content>
	</item>
		<item>
		<title>Using MySQL on SMEserver</title>
		<link>http://sysnotes.wordpress.com/2008/03/05/using-mysql-on-smeserver/</link>
		<comments>http://sysnotes.wordpress.com/2008/03/05/using-mysql-on-smeserver/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 22:42:14 +0000</pubDate>
		<dc:creator>rt</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sme server]]></category>
		<category><![CDATA[smeserver]]></category>

		<guid isPermaLink="false">http://sysnotes.wordpress.com/?p=3</guid>
		<description><![CDATA[How to on using pre-installed MySQL on sme server<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=3&subd=sysnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> smeserver is a fantastic server package on linux platform. Smeserver 7.2 is based on CentOS 4.6. Using mysql for user databases is not possible by default and some tricks are needed.</p>
<h2><span id="more-3"></span>MySQL on <a href="http://contrib.org/">contrib.org</a> &#8217;s  <a href="http://www.contribs.org/">smeserver</a></h2>
<p>Here are some notes from <a href="http://wiki.contribs.org/MySQL">http://wiki.contribs.org/MySQL</a>This is not a verbatim copy, rather there may be modifications, as I used these for my own use</p>
<h3>Reference:</h3>
<p>Installed version of sme server 7.2</p>
<p>MySQL as installed by default on smeserver (ver 7.2 , 7.3)</p>
<ul>
<li>Uses Socket (to be used from localhost) and networking is off</li>
<li>Does not require password for root user, if you give command &#8216;mysql mysql&#8217; from shell prompt, you are automatically logged as root with highest privileges. This only works when logged in the shell</li>
<li>There is no Mysql administrative interface</li>
</ul>
<h3>Steps to use MySQL on smeserver</h3>
<h4>A. Configure MySQL to use networking.</h4>
<p>By default, on smeserver it is configured to use sockets, rather than ports. This is to access database *only* from local network. For remote access see section, D</p>
<p>(This is modified as mentioned on the wiki page referred to above. I have tried this and found to be working, whereas the method given in the wiki does not work )</p>
<blockquote>
<pre>cd /var/service/mysqld
sv d .
config setprop mysqld LocalNetworkingOnly no
expand-template /etc/my.cnf
sv u .</pre>
</blockquote>
<p><font face="courier new"><br />
</font>Method for above as given in wiki</p>
<blockquote>
<pre>config setprop mysqld LocalNetworkingOnly no
expand-template /etc/my.cnf
/etc/rc.d/init.d/mysqld restart</pre>
</blockquote>
<p>This causes system to hang and MySQL does not restart gracefully.</p>
<h4>B. Create database</h4>
<blockquote>
<pre>mysqladmin create &lt;dbname&gt;</pre>
</blockquote>
<h4>C. Create User and also add hosts for this user/db combination</h4>
<p>mysql_setpermission is an interactive, text based utility for user and user, database, host management</p>
<blockquote>
<pre>mysql_setpermission</pre>
</blockquote>
<p>use above interactive program to (a) create user, (b) add access rights to user, database and host combinations.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sysnotes.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sysnotes.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysnotes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysnotes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysnotes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysnotes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysnotes.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysnotes.wordpress.com&blog=3061136&post=3&subd=sysnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sysnotes.wordpress.com/2008/03/05/using-mysql-on-smeserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c312062d95c15285855af08d5918d523?s=96&#38;d=identicon" medium="image">
			<media:title type="html">rt</media:title>
		</media:content>
	</item>
	</channel>
</rss>