Hi all!
Yes, it’s been around a year since I last posted. But, don’t fear, for I shall post again. Right now in fact. I just performed a major upgrade to my Gentoo installation and also switched from Apache to the Lighty webserver. I will say that it is a bad idea to attempt two major changes in your system at the same time. I instantly had some tremendous errors that appeared to be the problem of the webserver switch, but in fact turned out to be a PHP linking issue in Gentoo.
I decided to switch to lighty mostly because I heard it was smoking fast, and I’m a systems guy that likes to try new stuff out every once in a while. I’d like to offer up some notes on the process and what I think about Lighty.
Lighty has a simple configuration approach. I suppose it isn’t too different than that of Apache’s, but I liked it a bit better. I should be careful in how I state why I liked Lighty because most likely all of the things I configured could be done in Apache as well. With that said I liked how the Lighty configuration file is parsed as though it were a programming language. In fact it appears as though the config file is/can be parsed as straight Lua code. This felt more intuitive for me as I set up the virtual hosts. Lighty uses something called conditionals to test the current requested host for matches. To set up a virtual host all one has to do is put code in like the following:
$HTTP["host"] =~ "nathanandaudrey.com" {
server.document-root = "/var/www/nathanandaudrey.com/htdocs/"
}
As you can see that is the vhost configuration for nathanandaudrey.com.
In migrating, I had to deal with two major problems. The first, was to deal with permalink issues and the second was a problem with a plugin, which I promptly deleted. It seems as though permalinks cause issues with Lighty because there isn’t an .htaccess file for access control. I’m not sure why this is a problem. It appears as though WordPress uses these in some way to control symlink following and such. To solve the issue I reviewed the solutions at http://blog.forret.com/2007/03/urlrewrite-for-wordpress-on-lighttpd/. I was unable to get the full site working, so if you find glitches please be patient as I attempt to figure things out.
Overall, I’m not using any complicated configuration or dealing with massive performance needs. Lighty does extremely well under heavy load, but will be left untested in my system.
::nathan::
