<?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>shane &#124; jaducana &#187; mysql</title>
	<atom:link href="http://shane.jaducana.net/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://shane.jaducana.net</link>
	<description></description>
	<lastBuildDate>Sat, 13 Mar 2010 20:04:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>installing alfresco 3.2r2 on ubuntu 9.10 karmic koala</title>
		<link>http://shane.jaducana.net/2010/installing-alfresco-3-2r2-on-ubuntu-9-10-karmic-koala/</link>
		<comments>http://shane.jaducana.net/2010/installing-alfresco-3-2r2-on-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 17:20:16 +0000</pubDate>
		<dc:creator>shane</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[alfresco]]></category>
		<category><![CDATA[alfresco community]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[systems administration]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://shane.jaducana.net/?p=68</guid>
		<description><![CDATA[had some free time on my hands and thought i&#8217;d use it to practice more on linux and stuff. so, here i&#8217;m going to share what i did to have alfresco up and running. it&#8217;s pretty straightforward actually.
first off, alfresco requirements:

alfresco installation files with pre-configured tomcat bundle
sun java jdk (jdk6 required)
mysql database server

the requirements i [...]]]></description>
			<content:encoded><![CDATA[<p>had some free time on my hands and thought i&#8217;d use it to practice more on linux and stuff. so, here i&#8217;m going to share what i did to have alfresco up and running. it&#8217;s pretty straightforward actually.</p>
<p>first off, alfresco requirements:</p>
<ul>
<li>alfresco installation files with pre-configured tomcat bundle</li>
<li>sun java jdk (jdk6 required)</li>
<li>mysql database server</li>
</ul>
<p>the requirements i listed above are the least, which means you can get alfresco up and running by having only those three. also note that i did this on a fresh ubuntu installation.</p>
<p><span id="more-68"></span><strong>1. install sun java jdk</strong></p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> sun-java6-jdk</div></td></tr></tbody></table></div>
</p>
<p><strong>2. set environment variable for JAVA_HOME</strong></p>
<p>verify if it has been set</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$JAVA_HOME</span></div></td></tr></tbody></table></div>
</p>
<p>if not,</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>environment</div></td></tr></tbody></table></div>
</p>
<p>append to a new line</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">JAVA_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>jvm<span style="color: #000000; font-weight: bold;">/</span>java-<span style="color: #000000;">6</span>-sun<span style="color: #000000; font-weight: bold;">/</span></div></td></tr></tbody></table></div>
</p>
<p><strong>3. install mysql server</strong></p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server</div></td></tr></tbody></table></div>
</p>
<p><strong>4. create alfresco database</strong></p>
<p>login to mysql database and perform the following</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container sql vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> alfresco <span style="color: #993333; font-weight: bold;">DEFAULT</span> CHARACTER <span style="color: #993333; font-weight: bold;">SET</span> utf8 COLLATE utf8_unicode_ci;<br />
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">ALL</span> PRIVILEGES <span style="color: #993333; font-weight: bold;">ON</span> alfresco<span style="color: #66cc66;">.*</span> <span style="color: #993333; font-weight: bold;">TO</span> alfresco@localhost <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'alfresco'</span>;<br />
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">SELECT</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">LOCK</span> <span style="color: #993333; font-weight: bold;">TABLES</span> <span style="color: #993333; font-weight: bold;">ON</span> alfresco<span style="color: #66cc66;">.*</span> <span style="color: #993333; font-weight: bold;">TO</span> alfresco@localhost <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'alfresco'</span>;<br />
<span style="color: #993333; font-weight: bold;">FLUSH</span> PRIVILEGES;</div></td></tr></tbody></table></div>
<p>take note of the database name, username and password, it&#8217;ll be needed in the alfresco configuration later on.</p>
<p><strong>5. download alfresco installation files</strong></p>
<p>create alfresco directory
</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>alfresco</div></td></tr></tbody></table></div>
</p>
<p>download <a href="http://process.alfresco.com/ccdl/?file=release/community/build-2440/alfresco-community-tomcat-3.2r2.tar.gz">alfresco community 3.2r2 with pre-configured tomcat bundle</a> and store it in the above directory. wget doesn&#8217;t work on this so i had to download it on my host machine and transferred it using winscp.</p>
<p><strong>6. extract alfresco installation files</strong></p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>alfresco<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf alfresco-community-tomcat-3.2r2.tar.gz</div></td></tr></tbody></table></div>
<p><strong>7. configuring alfresco installation</strong></p>
<p>modify alfresco global properties file
</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>alfresco<span style="color: #000000; font-weight: bold;">/</span>tomcat<span style="color: #000000; font-weight: bold;">/</span>shared<span style="color: #000000; font-weight: bold;">/</span>classes<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> alfresco-global.properties</div></td></tr></tbody></table></div>
<p>locate dir.root and set to
</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container ini vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dir.root<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/opt/alfresco/alf_data</span></div></td></tr></tbody></table></div>
</p>
<p>set mysql database settings</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container ini vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">db.name<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">alfresco</span><br />
db.username<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">alfresco</span><br />
db.password<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">alfresco</span><br />
db.host<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">localhost</span><br />
db.port<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">3306</span></div></td></tr></tbody></table></div>
<p><strong>8. start alfresco</strong>
</p>
<p style="padding-left: 30px;">
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>alfresco<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">bash</span> alfresco.sh start</div></td></tr></tbody></table></div>
<p>note that this start/stop script can also be added as an init script, so you&#8217;ll have something like /etc/init.d/alfresco start. verify if java process has been started by using the</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">top</div></td></tr></tbody></table></div>
<p>command.</p>
<p><strong>9. browse alfresco and alfresco share</strong></p>
<p>open web browser and point to</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;http:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>your server ip<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">8080</span><span style="color: #000000; font-weight: bold;">/</span>alfresco</div></td></tr></tbody></table></div>
<p>or</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">http:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>your server ip<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">8080</span><span style="color: #000000; font-weight: bold;">/</span>share</div></td></tr></tbody></table></div>
<p>whala! alfresco repository site should load by now, as well as alfresco share. you can login as admin/admin. this installation is very basic, and other modules may be installed to extend the features of alfresco. i&#8217;ll see if i can also experiment on installing other alfresco modules.</p>
<p>next goal, apply this on our new alfresco server. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://shane.jaducana.net/2010/installing-alfresco-3-2r2-on-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
