<?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>Jacken&#039;s Blog &#187; server</title> <atom:link href="http://www.jackenhack.com/archives/tag/server/feed/" rel="self" type="application/rss+xml" /><link>http://www.jackenhack.com</link> <description></description> <lastBuildDate>Tue, 07 Feb 2012 05:59:39 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>XEN Server</title><link>http://www.jackenhack.com/archives/2010/08/08/xen-server/</link> <comments>http://www.jackenhack.com/archives/2010/08/08/xen-server/#comments</comments> <pubDate>Sun, 08 Aug 2010 11:55:31 +0000</pubDate> <dc:creator>Jacken</dc:creator> <category><![CDATA[Life and times of Jacken]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[server]]></category> <category><![CDATA[virtualisation]]></category> <category><![CDATA[xen]]></category><guid isPermaLink="false">http://www.jackenhack.com/?p=1112</guid> <description><![CDATA[I&#8217;ve just finished setting up a XEN server. I moved this blog to ipage.com, but it was horribly slow so I might as well host it myself. Thank god for 100mb internet line from bredbandsbolaget. Next step, trying to setup &#8230; <a href="http://www.jackenhack.com/archives/2010/08/08/xen-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve just finished setting up a <a href="http://www.xen.org/">XEN server</a>. I moved this blog to ipage.com, but it was horribly slow so I might as well host it myself. Thank god for 100mb internet line from bredbandsbolaget. Next step, trying to setup a <a href="http://www.mythtv.org/">MythTV</a> backend. I tried to set up a DOMU with Smoothwall firewall but failed miserably.</p><div id="tweetbutton1112" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fbit.ly%2FsJfmYT&amp;via=jackenhack&amp;text=XEN%20Server&amp;related=jackenhack&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Fwww.jackenhack.com%2Farchives%2F2010%2F08%2F08%2Fxen-server%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.jackenhack.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded> <wfw:commentRss>http://www.jackenhack.com/archives/2010/08/08/xen-server/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Optimize MySQL performance for speed and memory use</title><link>http://www.jackenhack.com/archives/2009/10/11/optimize-mysql-for-speed-and-memory-use/</link> <comments>http://www.jackenhack.com/archives/2009/10/11/optimize-mysql-for-speed-and-memory-use/#comments</comments> <pubDate>Sun, 11 Oct 2009 22:17:22 +0000</pubDate> <dc:creator>Jacken</dc:creator> <category><![CDATA[Computers]]></category> <category><![CDATA[database]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[optimize]]></category> <category><![CDATA[server]]></category> <category><![CDATA[sql]]></category><guid isPermaLink="false">http://www.jackenhack.com/?p=977</guid> <description><![CDATA[I found this great shell script to test your MySQL server. You need to have your MySQL server up and running a while before running the test to get valid data. With all the possible setting variations this is can &#8230; <a href="http://www.jackenhack.com/archives/2009/10/11/optimize-mysql-for-speed-and-memory-use/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<div id="attachment_978" class="wp-caption alignnone" style="width: 310px"><a href="http://www.flickr.com/photos/jamisonjudd/2433102356/"><img class="size-full wp-image-978" title="Jamison Judd" src="http://www.jackenhack.com/wp-content/uploads/2009/10/2433102356_4d4ce9234b.jpg" alt="Jamison Judd" width="300" height="400" /></a><p class="wp-caption-text">Jamison Judd</p></div><p>I found this great shell script to test your <a href="http://mysql.com">MySQL</a> server. You need to have your MySQL server up and running a while before running the test to get valid data. With all the possible setting variations this is can be a handy tool.</p><p><a title="MySQL Performance Tuner script" href="http://www.day32.com/MySQL/">Get MySQL Performance tuner here.</a></p><div id="tweetbutton977" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fbit.ly%2FrRHwc8&amp;via=jackenhack&amp;text=Optimize%20MySQL%20performance%20for%20speed%20and%20memory%20use&amp;related=jackenhack&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Fwww.jackenhack.com%2Farchives%2F2009%2F10%2F11%2Foptimize-mysql-for-speed-and-memory-use%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.jackenhack.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded> <wfw:commentRss>http://www.jackenhack.com/archives/2009/10/11/optimize-mysql-for-speed-and-memory-use/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Upgrading to Nginx and getting WordPress to work</title><link>http://www.jackenhack.com/archives/2009/06/24/upgrading-to-nginx-wordpress-redirect/</link> <comments>http://www.jackenhack.com/archives/2009/06/24/upgrading-to-nginx-wordpress-redirect/#comments</comments> <pubDate>Wed, 24 Jun 2009 22:27:54 +0000</pubDate> <dc:creator>Jacken</dc:creator> <category><![CDATA[web]]></category> <category><![CDATA[nginx]]></category> <category><![CDATA[server]]></category> <category><![CDATA[wordpress]]></category><guid isPermaLink="false">http://www.jackenhack.com/?p=922</guid> <description><![CDATA[So, after doing an upgrade of my Apache installation all my web content stopped working. It continued to give 403 errors. After spending hours changing permissions and checking every little detail I gave up. So I installed Nginx instead. It&#8217;s &#8230; <a href="http://www.jackenhack.com/archives/2009/06/24/upgrading-to-nginx-wordpress-redirect/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>So, after doing an upgrade of my <a href="http://www.apache.org/">Apache</a> installation all my web content stopped working. It continued to give 403 errors. After spending hours changing permissions and checking every little detail I gave up. So I installed <a href="http://nginx.net/">Nginx</a> instead. It&#8217;s a bit scary to start using a totally new web server software, but why not live dangerously? Anyway, it&#8217;s fast! Really fast. The only problem I had was to get all the redirects to work. And I also removed my gallery2 installation and moved the blog to /</p><p><strong>Problems</strong></p><p>It took longer than I had anticipated, mainly because I had to learn how to set up Nginx, but also because of the trouble of getting answers when searching the net. But here&#8217;s my working config (mostly saved for me if I forget <img src='http://www.jackenhack.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><pre>[cc lang="apache"]
server {
    listen   80;
    server<em>name  www.jackenhack.com
            jackenhack.com;
    keepalive</em>timeout  5;
    tcp_nodelay        on;  </pre></p><pre><code>access_log  /var/log/nginx/access.log;
</code></pre><p>location ~* ^.+&#46;(xml|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ { root /var/www/nginx-default;</p><p>}</p><pre><code>location / {
    root   /var/www/nginx-default;
    index  index.php index.html index.htm;
</code></pre><p>gzip            on; gzip<em>http</em>version 1.0; gzip<em>comp</em>level 2; gzip<em>proxied any; gzip</em>types      text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;</p><pre><code>#include /etc/nginx/wordpress_params.super_cache
#include /etc/nginx/enable_wordpress;

# rewrite old blog url
rewrite ^/blog/(.+)$ /$1 permanent;
</code></pre><h1>if the requested file exists, return it immediately</h1><p>if (-f $request_filename) { break; }</p><p>set $supercache<em>file ''; set $supercache</em>uri $request_uri;</p><p>if ($request<em>method = POST) { set $supercache</em>uri ''; }</p><h1>Using pretty permalinks, so bypass the cache for any query string</h1><p>if ($query<em>string) { set $supercache</em>uri ''; }</p><p>if ($http<em>cookie ~* "comment</em>author<em>|wordpress|wp-postpass</em>" ) { set $supercache_uri ''; }</p><h1>if we haven't bypassed the cache, specify our supercache file</h1><p>if ($supercache<em>uri ~ ^(.+)$) { set $supercache</em>file /wp-content/cache/supercache/$http_host/$1index.html; }</p><h1>only rewrite to the supercache file if it actually exists</h1><p>if (-f $document<em>root$supercache</em>file) { rewrite ^(.*)$ $supercache_file break; }</p><h1>all other requests go to WordPress</h1><p>if (!-e $request_filename) { rewrite . /index.php last; }</p><p>}</p><h1>setup for jackeniax</h1><pre><code>    location /jackeniax {
        root   /var/www/nginx-default/jackeniax;
        index  index.php index.html;

        if (!-f $request_filename) {
            rewrite  ^(.*)$  /jackeniax/index.php?q=$1  last;
            break;
        }

        if (!-d $request_filename) {
            rewrite  ^(.*)$  /jackeniax/index.php?q=$1  last;
            break;
        }

    }

    location ~ \.php$ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /var/www/nginx-default$fastcgi_script_name;
            include        /etc/nginx/fastcgi_params;
    }

# deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
            deny  all;
    }
</code></pre><p>} [/cc]<pre></pre></p><div id="tweetbutton922" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fbit.ly%2FrJNrlX&amp;via=jackenhack&amp;text=Upgrading%20to%20Nginx%20and%20getting%20WordPress%20to%20work&amp;related=jackenhack&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Fwww.jackenhack.com%2Farchives%2F2009%2F06%2F24%2Fupgrading-to-nginx-wordpress-redirect%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.jackenhack.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded> <wfw:commentRss>http://www.jackenhack.com/archives/2009/06/24/upgrading-to-nginx-wordpress-redirect/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Served from: www.jackenhack.com @ 2012-02-07 11:30:24 by W3 Total Cache -->
