Code, robots and stuff

My current notetaking and information system consists of assorted postit-notes in my jackets pockets and textfiles with names like "hej", "file123" and "notes_lol". This is (for obvious reasons) not a very good system. So I've decided to set up a personal wiki. I first tried Zim which seemed quite good but didn't suit my needs very well.
I've decided on DokuWiki as the wiki engine and Lightttpd as the webserver.
The first thing we need to do is installing both the packages, this is done with the command

$ sudo pacman -Syu dokuwiki lighttpd php-cgi




After this is done we need to configure lighttpd.
Add these lines to fastcgi.conf

server.modules += ( "mod_fastcgi" )



#server.indexfiles += ( "index.php" ) #this is deprecated

index-file.names += ( "index.php" )

fastcgi.server = (

    ".php" => (

      "localhost" => ( 

        "bin-path" => "/usr/bin/php-cgi",

        "socket" => "/run/lighttpd/php-fastcgi.sock",

        "max-procs" => 4, # default value

        "bin-environment" => (

          "PHP_FCGI_CHILDREN" => "1", # default value

        ),

        "broken-scriptfilename" => "enable"

      ))

)


And then in lighttpd.conf add this line:

include "conf.d/fastcgi.conf"


You also need to set open_basedir to include your dokuwiki-install-folder. After that, you should have nice wiki running at http://localhost:80