2 * PHP has to be compiled with support for
\r
6 * libevent ( http://www.php.net/manual/en/book.libevent.php ). Once libevent (C library) is installed, PHP should be configured using something like "pecl install channel://pecl.php.net/libevent-0.0.5" and adding extension=libevent.so to php.ini
\r
8 Required settings in php.ini
\r
9 * short_open_tag = On
\r
11 Apache configuration:
\r
12 * AllowOverride has to accept .htaccess files doing mod_rewrite (affects meta page and membership file)
\r
15 * There are hard-references to /webs/sks-keyservers.net: These needs to be substituted for the location on your server -- using sed replace should suffice, e.g.
\r
16 find . -iname "*\.php" | xargs -I {} sed -i "s#/webs/sks-keyservers.net#/var/www/localhost/htdocs#g" {}
\r
17 find . -iname "*\.sh" | xargs -I {} sed -i "s#/webs/sks-keyservers.net#/var/www/localhost/htdocs#g" {}
\r
18 * if you encounter errors such as "bash: ./update.sh: /bin/sh^M: bad interpreter: No such file or directory" , the folloxing should fix this: find . -iname "*\.sh" | xargs -I {} dos2unix {}
\r
21 * If you want to generate the keyserver map, graphviz has to be installed, otherwise you'll get complaints about missing command "dot"
\r
22 * If you want to utilize the DNS functionality, bind has to be installed and changes made to "updatezone.sh" and "zonetpl"
\r
24 If you're running a local SKS keyserver, some manual adjustments will have to be made for proper SVR weights and IPv6 detection. An exmaple of such a patch is included below.
\r
27 ####################
\r
28 Patch for correction of SRV and IPv6
\r
29 ####################
\r
30 --- /root/sks-keyservers-pool-read-only/sks-keyservers.net/status-srv/sks_get_peer_data.php 2012-05-01 18:59:18.000000000 +0200
\r
31 +++ /var/www/localhost/htdocs/status-srv/sks_get_peer_data.php 2012-05-01 19:08:02.000000000 +0200
\r
33 $return_array['statusok'] = true; //Default status OK to true
\r
35 // compability for own server
\r
36 - $host = ($host=="keys.kfwebs.net") ? "10.1.1.3" : $host;
\r
37 + $host = ($host=="keys2.kfwebs.net") ? "192.168.0.33" : $host;
\r
39 $timestart = microtime_float();
\r
40 $ch = curl_init("http://$host:$port/pks/lookup?op=stats");
\r
42 $return_array['srvweight'] = (int)((1/($return_array['responsetime'])) * 100);
\r
44 // manually correct localhost
\r
45 - if($return_array['hostname'] == "keys.kfwebs.net")
\r
46 + if($return_array['hostname'] == "keys2.kfwebs.net"||$return_array['hostname'] == "keys3.kfwebs.net")
\r
48 $return_array['srvweight'] = 85;
\r
51 // Check IPv6 status
\r
52 $return_array['statusipv6ok'] = false;
\r
54 - $ipv6_addy = gethostbyname6(($host=="10.1.1.3" ? "keys.kfwebs.net" : $host));
\r
55 + $ipv6_addy = gethostbyname6(($host=="192.168.0.33" ? "keys2.kfwebs.net" : $host));
\r
56 if(!is_array($ipv6_addy) && $ipv6_addy !== false && !in_array($host, $blacklistv6))
\r
58 $sock = socket_create(AF_INET6, SOCK_STREAM, SOL_TCP);
\r
59 ####################
\r