August 30, 2014
Today I had to configure a WordPress website to use Lighttpd. I looked for the proper rewrites to use and only received garbled information about the rewrites. So instead of forgetting it again for the umpteenth time, I will post my getting WordPress to work with Lighttpd tips / tricks here.
First up there are three key rewrites to get Lighttpd to work with WordPress. They are as follows: (note mod_rewrite will need to be enabled and this is in the lighttpd.conf).
url.rewrite = (
"^/(wp-admin|wp-includes|wp-content)/(.*)" => "$0",
"^/(.*).(.+)$" => "$0",
"^/(.+)/?$" => "/index.php/$1"
The second key item is making sure that the error handler is set properly.… Read More
Category: Lighttpd, Tricks.htaccess, all rewrites, apache2, assist, average, convert, cpu, hacks, help, howto, lighttpd, load, load average, lower, mod_rewrite, restart, rewrites, run, setup, speed, start, tips, to, tricks, wordpress, work, works
August 23, 2014
In the past, I have given some thought to a high load but not very much. For the most part having Lighttpd and Varnish in front of my Web servers alleviates most problems. That is until the other day when I decided to do an Apache benchmark test on my system and was able to bring down the server. The load made MySQL go insane by inflating it to 200% CPU usage! To make my servers available again I had to basically restart MySQL. This is not a huge issue, mainly because we do not have a high load but it was concerning.… Read More
Category: Lighttpd, Linux, MySQL, Varnishapache, assist, benchmark, cache, config, configuration, cpu, crash, crashing, evasion, evasive, fix, hault, high cpu, high load, lighttpd, Linux, mod, modify, mysqld, query, server, trick, usage, varnish, web, web server, webserver
October 09, 2012
My servers now a days run Varnish simply for the speed. On my main site Varnish was getting out of control with the RAM / Memory usage. Varnish would slowly creep up and eat all the memory, even though I was trying to hack Varnish to only use 128MB of ram, especially since the site is hosted on a lowendbox by Frantech (Buyvm.net). The answer, which I am not really sure WHY it works, but inside of vcl_fetch in the /etc/varnish/*.vcl file, I had set beresp.grace to be 30M, I tried this with 2M as well, but ultimately I took out the grace period setting and now my box is running Varnish with Lighttpd and PHP-FPM getting around 15k-30k unique hits a day and not going over 156MB of RAM usage.… Read More
Category: Lighttpd, Linux, PHP, Tricks, Varnishapache, box, cache, control, fast, fix, fpm, hack, hacking, help, howto, low end, memory, nginx php, out, ram, running, server, stable, trick, varnish