To stress test our servers we’re benchmarking them. By monitoring both the webservers and database we can tune our setup and see where the performance bottleneck is located. To properly test the website we need to take a “snapshot” from the requests that are performed on the webservers. To do that, we make a log [...]
Make sure you have a fresh default installation of debian 505 running. Also make sure you have ssh running. New kernel ?View Code BASH1 2 3 4 5 6 7 cd /usr/src/ wget http://…/linux-headers-2.6.34.1-myp2p_2.6.34.1-myp2p-10.00.Custom_amd64.deb wget http://…/linux-image-2.6.34.1-myp2p_2.6.34.1-myp2p-10.00.Custom_amd64.deb dpkg -i linux-image-*.deb dpkg -i linux-headers-*.deb update-initramfs -k 2.6.34.1-myp2p -c pico /boot/grub/menu.list Now make sure that the file system [...]
One of our servers has been dealing with huge peaks of iowait. After some investigation i noticed that this is (obviously) caused by a disk writing. The iostat program gave me huge Blk_wrtn/s numbers for my first partition device. I wrote a very poor but usefull php command line application that detects processes that are [...]
Posted on 08-12-2009, 20:20, by edo, under
lighttpd.
Total lighttpd configuration after the break.
In the lighttpd config: ?View Code LIGHTTPD1 2 3 4 5 6 7 8 9 $HTTP["host"] == "host" { server.document-root = "/home/exitable/public_html/" url.rewrite-final = ( "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2", "^/([^.?]*)$" => "/index.php?q=$1", "^/([^.?]*\.html)$" => "/index.php?q=$1" ) server.error-handler-404 = "/index.php" } and then add to the /sites/default/settings.php file some code to catch 404 pages: ?View Code PHP1 [...]
Posted on 15-08-2009, 15:29, by edo, under
lighttpd.
http://www.cyberciti.biz/tips/lighttpd-secure-digest-authentication-mod_auth.html
Posted on 07-06-2008, 21:11, by edo, under
PHP,
lighttpd.
myp2p_seo.txtOn myp2p, we’re using some ugly search engine unfriendly url’s. URL’s like competition.php?competitionid=&part=sports&discipline=football are not user- nor google friendly. It seems to be popular these days to split the url in a directory kind of look. The previously mentioned URL would become something like /competition/sports/football/. First thing to do to make myp2p SEO (search engine [...]
For the myp2p website, we are running on lighttpd with fastcgi php5. To improve performance, we installed xcache, a PHP opcode cacher. Xcache seems to improve the performance with about 20%, as far as that can be measured in just a percentage. Instead of using the oftenly chosen Apache, we’re going with the more controversial [...]