<?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>Darvil's World</title>
	<atom:link href="http://www.darvilworld.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.darvilworld.com</link>
	<description>Weak sauce</description>
	<lastBuildDate>Sun, 05 Sep 2010 03:40:47 +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>Issues with VM migration (VG remove and readd)</title>
		<link>http://www.darvilworld.com/?p=202</link>
		<comments>http://www.darvilworld.com/?p=202#comments</comments>
		<pubDate>Sun, 05 Sep 2010 03:40:47 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Server Adminstration]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=202</guid>
		<description><![CDATA[Somebody setup the VG wrong.  Wasn&#8217;t me  
lvm pvscan
  PV /dev/sdf1   VG VolGroup04   lvm2 [298.09 GB / 298.09 GB free]
  PV /dev/sde1   VG VolGroup03   lvm2 [298.09 GB / 217.96 GB free]
  PV /dev/sdd1   VG VolGroup02   lvm2 [298.06 GB [...]]]></description>
			<content:encoded><![CDATA[<p>Somebody setup the VG wrong.  Wasn&#8217;t me <img src='http://www.darvilworld.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>lvm pvscan<br />
  PV /dev/sdf1   VG VolGroup04   lvm2 [298.09 GB / 298.09 GB free]<br />
  PV /dev/sde1   VG VolGroup03   lvm2 [298.09 GB / 217.96 GB free]<br />
  PV /dev/sdd1   VG VolGroup02   lvm2 [298.06 GB / 197.91 GB free]<br />
  PV /dev/sdc1   VG VolGroup01   lvm2 [465.75 GB / <strong>3.03 GB free</strong>]<br />
  PV /dev/sda2   VG VolGroup00   lvm2 [465.66 GB / <strong>3.44 GB free</strong>]<br />
  Total: 5 [1.78 TB] / in use: 5 [1.78 TB] / in no VG: 0 [0   ]</p>
<p>VMs cannot migrate from VolGroup01 and Volgroup00 as there are no free space and snapshots can&#8217;t be created.<br />
But Volgroup04 is now clear.  I&#8217;ve migrated all the logical volumes (VMs) from VG04</p>
<p>Deactivate the volume group:<br />
# vgchange -a n VolGroup04</p>
<p>Now you actually remove the volume group:<br />
# vgremove VolGroup04</p>
<p>Note that VolGroup04 was on sdf<br />
PV /dev/sdf1   VG VolGroup04   lvm2 [298.09 GB / 298.09 GB free]</p>
<p># fdisk -l</p>
<p>Disk /dev/sdf: 320.0 GB, 320072933376 bytes<br />
255 heads, 63 sectors/track, 38913 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdf1               1       38913   312568641   83  Linux</p>
<p>Lets add this PV to VG01</p>
<p># lvm vgextend VolGroup00 /dev/sdf1<br />
   Volume group &#8220;VolGroup00&#8243; successfully extended</p>
<p>Lets now check on the total space<br />
# lvm vgdisplay</p>
<p>&#8212; Volume group &#8212;<br />
  VG Name               VolGroup00<br />
  System ID<br />
  Format                lvm2<br />
  Metadata Areas        2<br />
  Metadata Sequence No  40<br />
  VG Access             read/write<br />
  VG Status             resizable<br />
  MAX LV                0<br />
  Cur LV                27<br />
  Open LV               27<br />
  Max PV                0<br />
  Cur PV                2<br />
  Act PV                2<br />
  VG Size               <strong>763.72 GB</strong></p>
<p>Back in business.  Now the migrations will work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=202</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian on Xenserver 5.5.0 Update 2 (with VNC) and Openflow switch stuff</title>
		<link>http://www.darvilworld.com/?p=170</link>
		<comments>http://www.darvilworld.com/?p=170#comments</comments>
		<pubDate>Thu, 27 May 2010 07:56:36 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Personal Stuff]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=170</guid>
		<description><![CDATA[Regular Debian ISO does not work with XenServer which was a disappointment.  From the Xenserver link I found the important thread
http://community.citrix.com/display/xs/Debian+Lenny
Took me a while to create the ISO that would work.  I used jingo and a centos VPS to create it.
After this I created the VPS but ran into many problems.  Especially [...]]]></description>
			<content:encoded><![CDATA[<p>Regular Debian ISO does not work with XenServer which was a disappointment.  From the Xenserver link I found the important thread</p>
<p><a href="http://community.citrix.com/display/xs/Debian+Lenny">http://community.citrix.com/display/xs/Debian+Lenny</a></p>
<p>Took me a while to create the ISO that would work.  I used jingo and a centos VPS to create it.</p>
<p><em>After this I created the VPS but ran into many problems.  Especially with the OS not installing.  It might be the local NFS server issue. I will have to check that later.</em></p>
<p>Turned out to be the NFS server issue (I ran the local NFS for thin provisioning which turned out to be a mistake).</p>
<p><strong>During the install, I installed the desktop option.</strong></p>
<p>Installing XenServer tools went without a hitch.</p>
<p><strong>2 major issue after this.</strong></p>
<p>First I wasn&#8217;t able to get remote ssh to work for some reason.  You&#8217;d think being very famililar with centos would allow me some hints but no love.<br />
This wasn&#8217;t a major issue as I could just use the console.<br />
The fix was to edit /etc/ssh/sshd_config to allow ssh and to install ssh as its not installed by default (sudo apt-get install ssh).<br />
Now I can ssh in.</p>
<p>Second issue was a real headache.  Basically I wasn&#8217;t able to resolve anything.  I was able to ping just IPs and not domain names.  Because of this I couldn&#8217;t run any updates.  I thought correctly that I need to edit resolv.conf but it still wasn&#8217;t working and after the reboot the config is wiped.  I finally found the solution here (http://forums.debian.net/viewtopic.php?f=5&#038;t=41949).  Way at the bottom it mentions dhcp service which rewrites the resolv.conf file.  What I finally did was to remove all the symlinks to stop the dhcp service from starting (S24dhcdbd in /etc/rc.2 to rc.5).  That finally fixed it.  Also bind9 has to be installed (sudo apt-get install bind9)<br />
Note: <em>(vi /etc/network/interfaces)</em> to configure IP.</p>
<p>Now I went ahead and started following the openflow instructions.</p>
<p><a href="http://www.openflowswitch.org/wk/index.php/Debian_Install">http://www.openflowswitch.org/wk/index.php/Debian_Install</a></p>
<p>Took forever to switch to debian unstable</p>
<p>One of the apt-get asks to mount the dvdrom but I wasn&#8217;t able to (VDI error).  The only way to fix that error is for a reboot and I can&#8217;t do that so I added the universe repo.</p>
<p>sudo su -c &#8216;echo deb http://http.us.debian.org/debian lenny multiverse restricted universe >> /etc/apt/sources.list&#8217;</p>
<p><a href="http://forums.citrix.com/thread.jspa?threadID=252843&#038;tstart=-1">http://forums.citrix.com/thread.jspa?threadID=252843&#038;tstart=-1</a></p>
<p><strong>Installing VNC</strong></p>
<p><em><strong><a href="http://www.debian-resources.org/node/126">http://www.debian-resources.org/node/126</a></strong></em></p>
<p>I already had xwindows installed during the install.</p>
<p>Install the VNC packages</p>
<pre>
apt-get install tightvncserver xtightvncviewer
</pre>
<p><em><strong>(su &#8211; user) first or else the vnc will be created in root</strong></em><br />
<em><strong>after issue this command:</strong></em></p>
<pre>
vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565
</pre>
<p><em><strong>It&#8217;ll ask you for the VNC password.  Now we&#8217;re ready to login (10.10.10.10:1).  I use RealVNC </strong></em></p>
<p><em><strong>to kill a VNC session:</strong></em></p>
<pre>
vncserver -kill :1
</pre>
<p><em>To decide on which desktop environment to use, edit the following file:<br />
$HOME/.vnc/xstartup<br />
and replace:<br />
Minimal XWindos desktop<br />
twm &#038;<br />
To use KDE:<br />
startkde &#038;<br />
To use GNOME:</em><br />
gnome-session &#038;</p>
<p>Continuing the OPENFLOW STUFF</p>
<p><em><strong>I use the Git method</strong></em></p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">sudo apt-get install git-core automake m4 pkg-config libtool
git clone git://openflowswitch.org/openflow.git
cd openflow
./boot.sh</pre></div></div>

<p><em><strong>Install your Debian Tools </strong></em><br />
Install them before the wireshark install (I had some issues compiling)</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">sudo apt-get install wireshark libgtk2.0-dev</pre></div></div>

<p><strong>This ask me for the Debian cdrom which I mounted using Xenserver</strong>.  Took a while to install since it was 190megs.  Not sure whats going on but its taking forever and uninstalling a ton of packages.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">cd utilities/wireshark_dissectors/openflow
make
sudo make install</pre></div></div>

<p>Skipped the regression update.  Plus it killed my install and is unnecessary.</p>
<p>notes:<br />
<a href="http://support.citrix.com/article/CTX120880">http://support.citrix.com/article/CTX120880</a><br />
<a href="http://netfpga.org/foswiki/bin/view/NetFPGA/OneGig/GetStarted"><br />
I need to build myself this..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=170</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>rtorrent not connection to trackers</title>
		<link>http://www.darvilworld.com/?p=167</link>
		<comments>http://www.darvilworld.com/?p=167#comments</comments>
		<pubDate>Wed, 26 May 2010 05:50:42 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Random Techie Stuff]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=167</guid>
		<description><![CDATA[So I started using my l33t server to do some seedings as I needed some nice ratio.  But running rtorrent, I wasn&#8217;t able to seed any torrents.  Frustration set and I was about to go murder some puppies but lucky for the furry things I ran into this post that resolved the problem.
http://libtorrent.rakshasa.no/ticket/1546
works [...]]]></description>
			<content:encoded><![CDATA[<p>So I started using my l33t server to do some seedings as I needed some nice ratio.  But running rtorrent, I wasn&#8217;t able to seed any torrents.  Frustration set and I was about to go murder some puppies but lucky for the furry things I ran into this post that resolved the problem.</p>
<p>http://libtorrent.rakshasa.no/ticket/1546</p>
<p>works wonderfully!</p>
<p>Thanks to FUSiON</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">ok after recompiling rtorrent / libtorrent after the libcurl install .. it works fine
&nbsp;
ok conclusion:
&nbsp;
if you have a fresh debian installation you need to install the actual libcurl (  http://curl.haxx.se/download.html ) with the actual c-ares (  http://c-ares.haxx.se/ )
&nbsp;
first install c-ares then libcurl (libcurl: ./configure --enable-ares)
&nbsp;
After that .. compile libtorrent and rtorrent.
&nbsp;
greetz
&nbsp;
FUSiON</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=167</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So I made a simple html thingy for me and my classmates in Chinese Class</title>
		<link>http://www.darvilworld.com/?p=159</link>
		<comments>http://www.darvilworld.com/?p=159#comments</comments>
		<pubDate>Tue, 20 Oct 2009 07:07:42 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Personal Stuff]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=159</guid>
		<description><![CDATA[This post is if they wanna make some comments or questions or just tell me how crappy that page was.
]]></description>
			<content:encoded><![CDATA[<p>This post is if they wanna make some comments or questions or just tell me how crappy that page was.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=159</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Chinese and the reasons for me.</title>
		<link>http://www.darvilworld.com/?p=148</link>
		<comments>http://www.darvilworld.com/?p=148#comments</comments>
		<pubDate>Sun, 27 Sep 2009 08:07:50 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Personal Stuff]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=148</guid>
		<description><![CDATA[Why Chinese? Most of my friends do not know how much Chinese culture has influenced me. It is a similar story to how Japanese culture has shaped me. Although for the past few years Chinese influence on my life has waned somewhat as I focus a lot of my time on computers and networking. But [...]]]></description>
			<content:encoded><![CDATA[<p>Why Chinese? Most of my friends do not know how much Chinese culture has influenced me. It is a similar story to how Japanese culture has shaped me. Although for the past few years Chinese influence on my life has waned somewhat as I focus a lot of my time on computers and networking. But lets roll back down on memory lane.</p>
<p>I grew up in Thailand and when I was a kid, Chinese wuxia series were hugely popular. I use to run home all the time from school to watch the series. Yet I watched them dubbed in Thai so I never even knew their real names. Even now in my head I can remember some story lines and cool stuff that I wish I can find to watch it again. At the same time of my fascination with the series, Chinese movies also entered my imagination. This of course is mainly movies from Hong Kong. Actors such as Jackie Chan and Jet Li really kicked ass and who doesn&#8217;t like any of their movies. The more darker and fantasyish movies like the bride with white hair, fallen angels, and the blade captured the essence of what I considered cool and gritty back in the days. Of course, I still recall when stormriders came out and blew my mind and most of my friends who are into Chinese movies. One of my newer goal in life is to play the newer updated game in Chinese and actually be able to play it.</p>
<p>Chinese culture also made an entry into my gaming habits. There were of course the mindless hack and slash like Dynasty Warriors series but those I never really played much. The one series of games that captured my imagination was a similar game to civilization (which sucked me up). It was called Romance of the three kingdom which was based off the <a href="http://en.wikipedia.org/wiki/Romance_of_the_Three_Kingdoms">novel</a>. Since I couldn&#8217;t read Chinese I played the translated version which was old but was incredibly addictive. From this game I learned of that period of Chinese and became familiar with many of the great characters such as Lui Bei, Cao Cao, Zhuge Liang, etc. I used to create characters in game based on my friends and then of course try to take over China with them. Looks like there&#8217;s a new ROTK11 is translated into english. I gotta make some time for that.</p>
<p>When I got to the US, and during my period of isolation, I went deep into Chinese entertainment. This was mainly in the form of HK movies. I bought many dvds (ordered 30 at a time from HK) and watch many of the classics and became familiar with many famed Chinese directors such as John Woo, Wong Kar-wai, Tsui Hark, Ronny Yu and Zhang Yimou. I became huge fans of actors/actresses such as Brigitte Lin, Leslie Cheung, Tony Leung, Maggie Cheung, Gong Li, Chow Yun Fat, etc.. I wasn&#8217;t just into action and fantasy now. I started delving more and more into artsy and dramatic movies and started to appreciate the more intricate stories woven into these masterpieces.</p>
<p>After this eventually I got to the point where I bought and read the translated novel of Romance of the Three Kingdom which was comprised of 4 books. Since I have always been interested in ancient history (At one point I wanted to be a history major), I started reading Chinese history and listened to recorded college lecture such as The teaching company&#8217;s lecture on Chinese history. Of course I also became interested in politics and social issues during this period so I read the more recent history on China. I read biography by Jan Wong on China and read up on Mao and try to understand modern China. One day I saw Nicholas D. Kristof and Sheryl WuDunn being interviewed on cspan about their upcoming book. I snatch up the book which was called China Wakes: The Struggle for the Soul of a Rising Power. Of course the situation in China is moving so fast that half of these books are probably outdated. In any case, I am fully aware of China and especially its rising economic might.</p>
<p>I don&#8217;t know what are the reasons for many of the people who learn Chinese in my class. Most probably are learning it because its a smart thing to do with the growth of Chinese power. For me though its both a practical and genuine interest in Chinese culture. I also consider Mandarin a beautiful language (although Thai got it beat for now) and it is a challenge for me. Its actually the first language I will study to learn because the 3 I speak right now I obtain just by growing up around them. Hopefully I can learn well and use the resources I have to improve my Chinese. It definitely is a long commitment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=148</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running SW forum (IPB3) and SW wiki (mediawiki) with Nginx + php-fpm + APC + Memcache</title>
		<link>http://www.darvilworld.com/?p=128</link>
		<comments>http://www.darvilworld.com/?p=128#comments</comments>
		<pubDate>Sun, 27 Sep 2009 06:36:15 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Random Techie Stuff]]></category>
		<category><![CDATA[Server Adminstration]]></category>
		<category><![CDATA[sarNworld Projects]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=128</guid>
		<description><![CDATA[I have wanting to install nginx to run sarnworld forum for a very long time now.  Previously, there were other sites that were on the same machine so finally the past summer I moved sarnworld to its own machine.  Now I finally have done it although with a few bumps along the way [...]]]></description>
			<content:encoded><![CDATA[<p>I have wanting to install nginx to run sarnworld forum for a very long time now.  Previously, there were other sites that were on the same machine so finally the past summer I moved sarnworld to its own machine.  Now I finally have done it although with a few bumps along the way which I know alot of members probably were irritated by <img src='http://www.darvilworld.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .  I say that because really I don&#8217;t need to install anything.  The default setting is fine (with apache) because I have alot of resources to throw at the site but as a geek you want to just try to milk more out of your system so I went ahead and did this.  Some of the roadblocks that I ran into were because SW was now running on invision forum version 3 which was a bit more picky and had some things which took some work to get it to work on nginx.</p>
<p>These are the road blocks I ran into in order</p>
<p>1.) forum wouldn&#8217;t work due to me not including the reflection option in the php compile<br />
2.) nginx had permission problem with the graphics on the forum and the base domain couldn&#8217;t load up.<br />
3.) nginx had an issue with the new FURL which uses htaccess so nginx config had to be modified<br />
4.) The wiki also needed a bit of modification on nginx config to work<br />
5.) Ran into a problem in compiling the modules<br />
6.) nginx had 502 errors after loading up the caching modules</p>
<p>First I referenced an old post I made before <a href="http://www.darvilworld.com/?p=60"> (SW video site link)</a></p>
<p>I did the php-fpm install.  Edit the php-fpm.conf file and make sure to change the user and group.</p>
<p>Of course on the php compile you should do it your way just make sure you include &#8211;enable-fpm and &#8211;enable-reflection</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --disable-pdo --disable-debug --enable-pic --enable-inline-optimization --with-xml --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-xslt --enable-memcache --enable-zip --with-pcre-regex --with-mysql --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --enable-gd-native-ttf --without-sqlite --enable-reflection</pre></div></div>

<p>I then compile nginx in the default folder and modules</p>
<p>Along the way I referenced <a href="http://interfacelab.com/nginx-php-fpm-apc-awesome/">This Site</a></p>
<p>But when I ran the pecl command I got this error</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">ran into the &quot;pecl.php.net is using a unsupported protocal - This should never happen.&quot; error</pre></div></div>

<p>To fix this error I found <a href="http://d4ly.com/2009/08/23/fixing-unsupported-protocal-errors-when-installing-pear-and-pecl-extensions/">this link</a></p>
<p>Found the 2 channels and deleted them</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">/usr/local/lib/php/.channels/
/usr/share/pear/.channels/</pre></div></div>

<p>Then I ran</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">pear update-channels</pre></div></div>

<p>Now I go onto to install the 3 modules on the other link.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">/usr/local/bin/pecl install memcache
&nbsp;
Build process completed successfully
Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/memcache.so'
install ok: channel://pecl.php.net/memcache-2.2.5
configuration option &quot;php_ini&quot; is not set to php.ini location
You should add &quot;extension=memcache.so&quot; to php.ini</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">/usr/local/bin/pecl install apc
&nbsp;
Build process completed successfully
Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so'
install ok: channel://pecl.php.net/APC-3.0.19
configuration option &quot;php_ini&quot; is not set to php.ini location
You should add &quot;extension=apc.so&quot; to php.ini</pre></div></div>

<p>I ran into an error on the 3rd module.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">/usr/local/bin/pecl install syck-beta
&nbsp;
checking for syck files in default path... not found
configure: error: Please reinstall the syck distribution
ERROR: `/tmp/pear/temp/syck/configure' failed</pre></div></div>

<p>Found the solution on <a href="http://labs.uechoco.com/blog/2008/04/phppeclsyck.html">this link.</a></p>
<p>I followed the instructions.</p>
<p>http://rubyforge.org/frs/?group_id=224&amp;release_id=2202</p>
<p>wget http://rubyforge.org/frs/download.php/4492/syck-0.55.tar.gz</p>
<p>untar, ./configure, make, make install.</p>
<p>ran the command again</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">/usr/local/bin/pecl install syck-beta 
&nbsp;
configuration option &quot;php_ini&quot; is not set to php.ini location
You should add &quot;extension=syck.so&quot; to php.ini</pre></div></div>

<p>I then edited php.ini and added all the modules</p>
<p>Now I discovered Nginx had permission issue (403 error) with loading up the graphics on the forum.  I posted <a href="http://nginxforums.com/index.php/topic,187.0.html">here</a> and <a href="http://www.webhostingtalk.com/showthread.php?t=892228">here.</a></p>
<p>I wished I saw the latter post which gave me the correct because it took me a bit of time to figure it out.  It was basically a counter intutitive solution.  Initially I thought it was php-fpm which was the issue but it was actually nginx.  Basically it was the user line that I had to add.  </p>
<p>I also had to add extra stuff to get mediawiki to work with nginx.  I used this <a href="http://www.pubbs.net/nginx/200904/59374/"> link </a>as a reference.</p>
<p>Here is my nginx config</p>
<p>Make sure you include</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">user usertim usergroup;</pre></div></div>

<p>if the files in the domains are owned by the user and group.</p>
<p>On the top of the nginx.conf file </p>
<p>domains part of the config.  Note that I had to include both /discuzz and discuzz/ just in case some people include a / at the end.  This setting is with FURL enabled with .htaccess in IPB3.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">$INFO['use_friendly_urls'] = '1';</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">&nbsp;
server {
  listen 80;
  server_name  www.sarnworld.com;
  root /blah/blah;
  location / {
    index index.php index.html index.htm;
    }
&nbsp;
# This is your php-fpm section.  Replace it accordingly (For example if you decide to run it on a different port).
  location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include        fastcgi_params;
&nbsp;
 }
&nbsp;
  location /discuzz/ {
    index index.php index.htm index.html;
    try_files $uri $uri/ /discuzz/index.php?q=$uri;
   }
&nbsp;
location /discuzz {
    index index.php index.htm index.html;
    try_files $uri $uri/ /discuzz/index.php?q=$uri;
   }
&nbsp;
# This is for nginx to deny access to .htaccess file.
  location ~ /\.ht {
            deny  all;
          }
     }
&nbsp;
server {
  listen 80;
  server_name wiki.sarnworld.com;
  root /blah/blah/blah;
  location / {
    index index.php index.html index.htm;
  }
&nbsp;
# This is your php-fpm section.  Replace it accordingly (For example if you decide to run it on a different port).
  location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
   include        fastcgi_params;
  }
&nbsp;
#without this mediawiki wouldn't work
 location ~  ^/index.php/(.+) {
           rewrite ^/index.php/(.+) /index.php?title=$1 last;
       }
&nbsp;
# This is for nginx to deny access to .htaccess file.
  location ~ /\.ht {
            deny  all;
          }
&nbsp;
     }</pre></div></div>

<p>I ran into another issue where if i load the APC extension in php.ini, nginx gives a 502 error and everything dies.</p>
<p>I found <a href="http://groups.google.com/group/highload-php-en/browse_thread/thread/6a860c85b6343158">this thread</a> but it didn&#8217;t give me any clues.</p>
<p>Finally I found <a href="http://n2.nabble.com/is-there-anything-special-I-need-to-do-to-get-ioncube-working-on-nginx-php-fpm-install-td3157429.html#a3157616">this thread</a> which let me know that Zend optimizer was conflicting with APC.  Great clue.  I needed ioncube loaded for some encrypted mod I was using on the forum but I didn&#8217;t need zend optimizer so I edited php.ini and commented all lines with zend_extension_ except for the one that loads ioncube.  Restarted php-fpm with apc extension loaded and the site wasn&#8217;t throwing the 502 errors anymore.</p>
<p>WOOHOO</p>
<p>Now to install memcache and get it to work you need a dependency (libevent).  Found <a href="http://codelikezell.com/how-to-install-memcached-on-centos/"> link</a> for a reference.</p>
<p>installed memcache according to that and ran using this command. </p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">/usr/local/bin/memcached -u root -d -l 127.0.0.1 -p 11000 -m 128</pre></div></div>

<p>It runs on port 11000 and uses up to 128 megs of ram and localhost</p>
<p>Now I activate APC and Memcache on sarnworld</p>
<p>edited conf_global.php file in IPB to enable the 2 caching softwares.  I had to send a ticket in IPB customer service to ask how to do it.  It turned out to be pretty simple as the support is built in.</p>
<p>For APC add in.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">$INFO['use_apc'] = '1';</pre></div></div>

<p>for Memcache</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">$INFO['use_memcache'] = '1';
$INFO['memcache_server_1'] = 'localhost';
$INFO['memcache_port_1'] = '11000';</pre></div></div>

<p>According to the IPB tech if you have more the 1 memcache server, just duplicate the last 2 lines, increasing the server and port numbers.. server_2, server_3, etc&#8230;</p>
<p>Now to get into APC settings in detail I found <a href="http://articles.techrepublic.com.com/5100-10878_11-6109703.html">this link</a> for a reference.</p>
<p>edit php.ini and I added these entries.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">[apc]
&nbsp;
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 30
apc.optimization = 0
apc.ttl = 7200
apc.user_ttl = 7200
apc.num_files_hint = 2000
apc.mmap_file_mask = /tmp/apc.XXXXXX</pre></div></div>

<p>Then make a symlink to the apc.php to a web accessible location to see the statistics.</p>
<p>ln -s /usr/local/lib/php/apc.php /blahblah/apc.php</p>
<p>It seems that I don&#8217;t really need memcache so I may just close it off in the future.  Most recommendations seem to be just to enable APC and it would be good enough but for now why the heck not.  Just run it all since I have all the resources.  I want to improve the speed of the forum <img src='http://www.darvilworld.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>On a side note I found this <a href="http://www.mediawiki.org/wiki/Memcached">memcache link</a> for mediawiki but I will work on that later <img src='http://www.darvilworld.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=128</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A problem with SW upgrading IPB to 3.0.2</title>
		<link>http://www.darvilworld.com/?p=126</link>
		<comments>http://www.darvilworld.com/?p=126#comments</comments>
		<pubDate>Tue, 08 Sep 2009 05:36:27 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Random Techie Stuff]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Server Adminstration]]></category>
		<category><![CDATA[sarNworld Projects]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=126</guid>
		<description><![CDATA[So I&#8217;ve been attempting to upgrade the forum (currently 2.3.5) to 3.0.2 but I keep running into problems.
It all started off when I see this error &#8220;ALTER TABLE ibf_members CHANGE id member_id MEDIUMINT(8) NOT NULL auto_increment;
Duplicate entry &#8216;1&#8242; for key 1&#8243;
After this my member_id table get deleted and it causes a chain reaction of errors [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been attempting to upgrade the forum (currently 2.3.5) to 3.0.2 but I keep running into problems.</p>
<p>It all started off when I see this error &#8220;ALTER TABLE ibf_members CHANGE id member_id MEDIUMINT(8) NOT NULL auto_increment;<br />
Duplicate entry &#8216;1&#8242; for key 1&#8243;</p>
<p>After this my member_id table get deleted and it causes a chain reaction of errors that made it impossible for me to upgrade the forum.</p>
<p>After spending a few hours, I finally found the solution.  First I found an IPB thread that talked about something &#8220;funky&#8221; on the members table.</p>
<p>Well my brain finally noticed something strange on the members table.  Basically THE FIRST RECORD I had was a 0 with no username (just a blank), this was what was the problem.  I deleted that first record and everything started working.  Incredible that I didn&#8217;t see this from the beginning.</p>
<p>DOH!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=126</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Absolutely unhappy with Josh Barnett</title>
		<link>http://www.darvilworld.com/?p=124</link>
		<comments>http://www.darvilworld.com/?p=124#comments</comments>
		<pubDate>Sun, 26 Jul 2009 10:14:32 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=124</guid>
		<description><![CDATA[I have been looking forward to the Affliction 3rd show Trilogy but thanks to Barnett, it is now over.  What I don&#8217;t get is why he would do this.  Why juiced up on his most important fight of his career?  He know getting caught would means a disaster for his career.  Now he has killed [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking forward to the Affliction 3rd show Trilogy but thanks to Barnett, it is now over.  What I don&#8217;t get is why he would do this.  Why juiced up on his most important fight of his career?  He know getting caught would means a disaster for his career.  Now he has killed the show and pissed off alot of fans such as me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=124</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watching the Legend of a Fighter</title>
		<link>http://www.darvilworld.com/?p=116</link>
		<comments>http://www.darvilworld.com/?p=116#comments</comments>
		<pubDate>Sat, 13 Jun 2009 22:11:58 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Personal Stuff]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=116</guid>
		<description><![CDATA[So I was watching this movie last night since the review were good and it was suppose to have inspired Bruce Lee&#8217;s fist of fury.  I have to say I was impressed by the movie.  It was pretty good for an older style of martial arts and filming style.
I also watched it dubbed [...]]]></description>
			<content:encoded><![CDATA[<p>So I was watching this <a title="movie" href="http://www.imdb.com/title/tt0084105/" target="_blank">movie</a> last night since the review were good and it was suppose to have inspired Bruce Lee&#8217;s fist of fury.  I have to say I was impressed by the movie.  It was pretty good for an older style of martial arts and filming style.</p>
<p>I also watched it dubbed in English and the dub was great.  They seem to be inserting alot of artistic creativity in the dub with all the cussing in the movie.  Of course you also get alot of Chinese slapstick which you have to be used to enjoy it.</p>
<p>The thing that seriously cracked me up was the &#8220;Pinky Promise&#8221; scene that keeps occuring.</p>
<p>First example, the young warrior meets his teacher and they decided to make a promise to keep secrets.. Now the boy then do the pinky promise.</p>
<p><img class="alignnone" title="Pinky Promise" src="http://www.darvilworld.com/legend.jpg" alt="" width="406" height="351" /></p>
<p>All right. So it seems reasonable that the teacher would do the pinky promise with his new student to humor him.</p>
<p>Since he was a nice fellow and all.</p>
<p>Now as the movie progressed, the teacher left while the boy was still a kid.  The boy becomes a powerful warrior by reading a book that the teacher left behind.  He grew older and stronger and surprised his father by kicking the ass of a guy who came to take over his dojo.  He starts to represent China and beat up a Russian boxer and some other random funny characters.</p>
<p>As fate would have it, he eventually meet his teacher again.  Now what do you think the first thing he would do is?  I mean they movie really cracked me up when as a kickass warrior now meeting his now really old teacher..  The first thing he does is this.</p>
<p><img class="alignnone" title="legend of a fighter" src="http://www.darvilworld.com/legend2.jpg" alt="" width="506" height="284" /></p>
<p><strong>WHAT THE HELL??  I laughed so hard.<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=116</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>VT on Supermicro X7DVL-E and Xen</title>
		<link>http://www.darvilworld.com/?p=94</link>
		<comments>http://www.darvilworld.com/?p=94#comments</comments>
		<pubDate>Mon, 06 Apr 2009 05:07:45 +0000</pubDate>
		<dc:creator>darvil</dc:creator>
				<category><![CDATA[Random Techie Stuff]]></category>
		<category><![CDATA[Server Adminstration]]></category>

		<guid isPermaLink="false">http://www.darvilworld.com/?p=94</guid>
		<description><![CDATA[So I decided to finally run windows VMs on my server.  When I tried to add it, I found out that I had not enabled VT on the CPU (I&#8217;m running dual Intel Xeon E5310 Clovertown 1.6GHz).  So I shut off the machine and turned on the VT in bios.  After I rebooted the machine [...]]]></description>
			<content:encoded><![CDATA[<p>So I decided to finally run windows VMs on my server.  When I tried to add it, I found out that I had not enabled VT on the CPU (I&#8217;m running dual Intel Xeon E5310 Clovertown 1.6GHz).  So I shut off the machine and turned on the VT in bios.  After I rebooted the machine and when CentOS 5 was loading up with the Xen kernel, it panicked.</p>
<p>What I saw was basically this.</p>
<p><strong><em>Xen bug at vmcs.c:175</em></strong></p>
<p><strong><em>Panic on CPU 4</em></strong></p>
<p>then it reboots repeatedly in this cycle.</p>
<p>Since this was on a live server with linux VMs, one which was hosting sarNworld, I decided to migrate them to fully play with this issue.  In theory I don&#8217;t need to play with windows on it but this was one of those &#8220;issues&#8221; that bugged me and one that I would *have* to resolve or else it would drive me crazy.</p>
<p>So I started to &#8220;google&#8221; the errors.  Found alot of interesting things.  What I found out was mostly to do with VMX support in the CPU.  There were also other errors but nothing that really hit home.  I decided to reformat the server and start fresh.</p>
<p>So I reinstalled CentOS 5 and did updates.</p>
<p>While Installing HyperVM on the server I ran into this issue.</p>
<p><strong><em>Error: kernel-xen conflicts with ecryptfs-utils &lt; 44<br />
error reading information on service xendomains: No such file or directory<br />
error reading information on service libvirtd: No such file or directory</em></strong></p>
<p>Basically I wasn&#8217;t able to install the xen-kernel.  Looked up ecryptfs and it looks like it was not something I need.</p>
<p>wasn&#8217;t able to remove the traditional way.</p>
<p><em><strong>rpm -e ecryptfs-utils-41-1.el5<br />
error: &#8220;ecryptfs-utils-41-1.el5&#8243; specifies multiple packages</strong></em></p>
<p>I found the right command in a thread on centos forum after googling.</p>
<p><em><strong>rpm -e &#8211;allmatches ecryptfs-utils</strong></em></p>
<p>I switched to the Xen-kernel and rebooted the machine and</p>
<p><strong><em>still NO LOVE.  Same kernel panic.</em></strong></p>
<p>I looked up a bit more on VMX, but my cpu was already supporting it.  I started to think that it might be Xen&#8217;s fault although I have had zero problem with the latest Xen 3.3.x version.  So whats going on?</p>
<p>Well I found a gem of a thread on the google result page.</p>
<p><em><strong>http://webui.sourcelabs.com/rhel/issues/427788</strong></em></p>
<p>Basically the thread had a similar issue as mine and they found out it was a steppings issue on the CPUs.  I realized that I bought the 2nd CPU long after the first as I needed more power.  For clarity I looked up the definition of steppings and found some good threads.  One such one was a tom hardware thread. <strong><em>http://www.tomshardware.com/forum/235792-28-what-stepping</em></strong></p>
<p>I ran a command to see my steppings.</p>
<p><em><strong>cat /proc/cpuinfo | grep stepping</strong></em></p>
<p>What shows up was steppings 7s and 13s.</p>
<p>Well the problem definately could be this and I had a gut feeling this was the issue.  I pulled the server and removed one of the CPU.  After that the machine was booted into the xen-kernel with ZERO issues.</p>
<p>Obviously I won&#8217;t be able to fix this issue so my best chance was to upgrade the bios version.</p>
<p>Worse case scenario, I would have to find a cpu with the same stepping which I have no idea how to accomplish it so I was really hoping for the bios to rescue me.</p>
<p>I checked the bios of the motherboard ( supermicro X7DVL-E) and found it was 1.3a.</p>
<p>Went on the mobo site and found out the new bios was 2.1a</p>
<p>Brought in my usb floppy drive and updated the bios.</p>
<p>Crossed my fingers and rebooted it into the xen-kernel.</p>
<p>Lo and behold, it booted in without any problems.</p>
<p>I was overjoyed.  I ran the command again.</p>
<p><strong><em>cat /proc/cpuinfo | grep stepping</em></strong></p>
<p>and now all I see is 7s.  It looks like the bios set all the steppings to be the same which was probably the reason why it was working in the xen kernel.</p>
<p>I am loving the supermicro bios today.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darvilworld.com/?feed=rss2&amp;p=94</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
