Posts in August

NginX and Apache, but no memcached

on August 31, 2009 in Linux with 7 comments by

I’ve been reading a few other blogs about how some people have implemented NginX as an accelerator for their Apache-based websites.

NginX outperforms Apache on small- to mid-range servers when it comes to static file handling, particularly because it is event driven.

The downside of NginX is that PHP can only be used with FastCGI. In general, most how-to’s explain how to implement PHP FastCGI with NginX using TCP. This is adding extra overhead and slows PHP to a crawl. A better solution is to use the UNIX sockets instead, which is explained well in Till’s blog.

But even using UNIX sockets, the PHP FastCGI and NginX combination is not as fast as Apache can handle PHP requests. For this reason, NginX can act as a great accelerator for static files while Apache deals with all the PHP requests. Even with the extra TCP overhead between NginX and Apache, this makes for quite a speedy combination.

Thinking logically, some people figured that loading static files from RAM memory instead of the harddrive must make things even faster. But that really depends… read more →

Guide: Firewall and router with Proxmox

on August 31, 2009 in Linux with 48 comments by

Firewall and router with ProxmoxBy default Proxmox does not come with a firewall, which may leave it and your virtual servers exposed to the elements of the Internet.

An additional issue arises when a hosting provider blocks servers if unauthorized MAC addresses are detected. As Proxmox’s bridged network creates and exposes MAC addresses for its virtual network interfaces, this may cause your server to be blocked from the hosting provider’s network.

To combat both this article will describe how to create your own virtual network with firewall protection using Shorewall, a popular and effective firewall / router software package.

read more →

X server with sound inside an OpenVZ / Proxmox container

on August 24, 2009 in Linux with 3 comments by

Generally when using X-based applications inside an OpenVZ or Proxmox container, the host node will run the X server and the container will use X forwarding through SSH to run the application. An article at the Open VZ Wiki explains this in more detail.

However, I wanted to have an X server inside the container itself. Moreover, it should also have support for sound (ALSA). The reason behind this is to have a container capable of running FreeSWITCH (a high performance VoIP switch similar to Asterisk) with the Skypiax trunk (for Skype connectivity) fully independent.

There are various methods of implementing the X server inside an OpenVZ or Proxmox container, especially if no direct video output is required. However, there is very little information available on how to enable sound inside an OpenVZ or Proxmox container. This article will explain how to do this. read more →

Guide: Installing OpenSolaris on a remote dedicated server

on August 24, 2009 in Linux with 6 comments by

There was an article at the OVH Wiki that outlined how to install OpenSolaris on a dedicated server with the help of Linux and Xen. This article is of special interest to those who have a dedicated server at a hosting company, but do not have the option to install anything but a Linux distribution.

Unfortunately, that particular article attracted a number of Wiki spammers and it disappeared in a sea of links to unscrupulous websites. I am reviving that article here, for those interested.

read more →

Finally up and running!

on August 23, 2009 in Personal with 2 comments by

Well, I’ve finally managed to get my personal website back up and running. I really haven’t had the time to do this until recently, and I wanted to do it right.

It’s based off WordPress this time, instead of my previous Joomla. An entire CMS was a bit too heavy for the occasional articles I write, but it certainly was a good experience!

The “monochrome” used has been created by mono-lab. Being the usual me, I have modified it quite a lot to fit my personal taste and the added widgets and other gadgetry hidden inside this website.

For instance, take a look at your right. In fact, why not click the “Translate this” link right now and see what happens. This nifty little trick will translate a web pages in-situ. Obviously, it is not done by a human translator so you will certainly encounter some quirky translations. Nevertheless, it can still help those who do not read English very well (and that’s not to be offensive!).

I’ll provide some more details on how I implemented this plugin from Transposh in a non-widget style with WordPress in another article. For now, I just want to get this first post out of the… yeah, what really? Door?

For those who know the inside joke: “Champagne?”