Setting up a WordPress Blog on Lighttpd with Pretty URLs
Now that we have our LLMP Stack setup, we can setup our WordPress Blog. Because Lighttpd does not use a .htaccess file like Apache does, we need to create rewrite rules and put them in the Lighttpd configuration. These are the easiest rewrite rules out there as there is only one line.
All you have to do is add the following line to your vhost.
So lets create our vhost. I prefer to create each vhost in a seperate file. We are going to create the vhost for chrisjohnston.org. To start lets create the file:
and then add the following code:
$HTTP["host"] =~ "(^|\.)chrisjohnston\.org$" {
server.document-root = "/www/chrisjohnston.org/www/htdocs/"
server.errorlog = "/www/chrisjohnston.org/www/logs/error.log"
accesslog.filename = "/www/chrisjohnston.org/www/logs/access.log",
server.error-handler-404 = "/index.php"
}
Now exit out of your vhost configuration file. We need to add chrisjohnston.org.conf to our lighttpd.conf so that it will recognize it.
Now all the way at the bottom add the following line:
Exit out of the lighttpd.conf file and restart lighttpd.
Don’t forget to change your DNS if you need to. Your WordPress install should now be working and have the ability to have “Pretty URL’s.”










[...] and detailed solutions to my problem. There were some great explanation’s from sudhakar and chrisjohnston to [...]
Thanks for the instructions, but lxadmin has this feature inbuilt in its panel.
I had made about this on my blog http://colorsofnet.com/lxadmins-default-permalink-configuration-for-wordpress/
[...] http://chrisjohnston.org/2009/setting-up-a-wordpress-blog-on-lighttpd [...]
[...] using a 404 handler or mod_rewrite or mod_magnet (see External [...]
it need to be try. it should be doing on linux.
hello i try this trick but get an error when start lighttpd:
# /etc/init.d/lighttpd start
Starting lighttpd: 2010-04-09 09:35:08: (configfile.c.858) source: /etc/lighttpd/webiklangratis.info.conf line: 1 pos: 11 parser failed somehow near here: [
2010-04-09 09:35:08: (configfile.c.858) source: /etc/lighttpd/lighttpd.conf line: 337 pos: 1 parser failed somehow near here: (EOL)
[FAILED]
please help
let’s try it .
Thank for tip. i changed apache to Lighttpd. it work
Thanks for the instructions,I’ll try it.
I has a host once that used lighttpd only and I was surprised of the lack of htaccess support.
I thought it was universally supported by all servers
.
Nah… it can’t be that easy! — Having serious problems with low resource vps and apache. Gonna give this a try. Thanks!
Leave your response!
About Chris
Social Media
Recent Comments
Most Commented
Most Viewed