Archive for December 2009

vbulletin multi server setup

Since we’re running our vbulletin software for myp2p on multiple servers, an nginx frontend balances the traffic. We have a memcached cookie sync for session persistance with the following php.ini configuration lines: ?View Code PHP1 2 3 [Session] session.save_handler = memcache session.save_path="tcp://<memcache host>:11211?persistent=1&amp;weight=1&amp;timeout=1&amp;retry_interval=15" Make sure to remove the old session.save_handler/path lines. The includes/class_core.php file needs [...]

mime type configuration for lighttpd

Total lighttpd configuration after the break.

Drupal on Lighttpd

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 [...]

wp-codebox

Supported languages: Actionscript, ADA, Apache Log, AppleScript, ASM, ASP, AutoIT, Backus-Naur form, Bash, BlitzBasic, C, C for Macs, C#, C++, CAD DCL, CadLisp, CFDG, CFDG, ColdFusion, CSS, Delphi, DIV, DOS, Eiffel, Fortran, Fortran, FreeBasic, GML, Groovy, HTML, Inno, IO, Java, Java 5, Javascript, LaTeX, Lisp, Lua, Microprocessor ASM, mIRC, MySQL, NSIS, Objective C, OCaml, OpenOffice [...]