I installed a laconica instance: http://taglines.nfshost.com/mublog/
nfshost.com is a novel ISP: "NearlyFreeSpeech.NET is the premier provider of pay-as-you-go web hosting. Our innovative pay only for what you use pricing model is designed to be the most cost effective solution around. With NearlyFreeSpeech.NET, it's simple. You make a small deposit (as little as $0.25) to start up your hosting service. " -- https://www.nearlyfreespeech.net/services/hosting.php It's quite constrained: no long-running processes, for example. I did manage to install laconica on it... somewhat. I took notes in the #swig channel: 18:04:04 * DanC tries installing laconica... grabs http://laconi.ca/laconica-0.7.3.tar.gz http://chatlogs.planetrdf.com/swig/2009-04-20.html#T18-04-04 Attached find diffs where I had to turn certain things off because of nearlyfreespeech's policies (no writing to /tmp and that sort of thing, I think.) As I recall, federated subscriptions aren't working; some permissions problem or something. -- Dan Connolly, W3C http://www.w3.org/People/Connolly/ gpg D3C2 887B 0F92 6005 C541 0875 0F91 96DE 6E52 C29E
# HG changeset patch # User Dan Connolly <http://www.w3.org/People/Connolly/> # Date 1240259855 0 # Node ID 295f26e873eddaaeded8077295f03a1ba4ec460d # Parent 191ef86428c3e7ed0ca6ce596a0340161fda2fa9 config.php from install.php diff -r 191ef86428c3 -r 295f26e873ed config.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.php Mon Apr 20 20:37:35 2009 +0000 @@ -0,0 +1,5 @@ +<? +$config['site']['name'] = "Tag Lines"; + +$config['db']['database'] = "mysqli://lacuser:[email protected]/laconica"; + # HG changeset patch # User Dan Connolly <http://www.w3.org/People/Connolly/> # Date 1240260140 0 # Node ID 237a6eccb0bc21a40260b9e8928c242c4812d245 # Parent 295f26e873eddaaeded8077295f03a1ba4ec460d skip etc stuff; nearlyfreespeech.net is strict diff -r 295f26e873ed -r 237a6eccb0bc lib/common.php --- a/lib/common.php Mon Apr 20 20:37:35 2009 +0000 +++ b/lib/common.php Mon Apr 20 20:42:20 2009 +0000 @@ -180,10 +180,14 @@ // server-wide, then vhost-wide, then for a path, // finally for a dir (usually only need one of the last two). -$_config_files = array('/etc/laconica/laconica.php', - '/etc/laconica/'.$_server.'.php'); +// stave off this warning: +// Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/etc/laconica/laconica.php) is not within the allowed path(s): (/f1/content/taglines/:/nfsn/content/taglines/:/nfsn/apps/php5/lib/php/:/nfsn/apps/php/lib/php/:/nfsn/content/content/nfsn/) in /f1/content/taglines/public/mublog/lib/common.php on line 195 -if (strlen($_path) > 0) { +//$_config_files = array('/etc/laconica/laconica.php', +// '/etc/laconica/'.$_server.'.php'); +$_config_files = array(); + +if ($etc_ok && strlen($_path) > 0) { $_config_files[] = '/etc/laconica/'.$_server.'_'.$_path.'.php'; } # HG changeset patch # User Dan Connolly <http://www.w3.org/People/Connolly/> # Date 1240260481 0 # Node ID bcddb147865e5cdacb8c8519554174644d5c0393 # Parent 237a6eccb0bc21a40260b9e8928c242c4812d245 skip /dev stuff; nearlyfreespeech.net is strict diff -r 237a6eccb0bc -r bcddb147865e extlib/Auth/OpenID/CryptUtil.php --- a/extlib/Auth/OpenID/CryptUtil.php Mon Apr 20 20:42:20 2009 +0000 +++ b/extlib/Auth/OpenID/CryptUtil.php Mon Apr 20 20:48:01 2009 +0000 @@ -15,7 +15,9 @@ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache */ -if (!defined('Auth_OpenID_RAND_SOURCE')) { +$dev_ok = 0; + +if ($dev_ok && !defined('Auth_OpenID_RAND_SOURCE')) { /** * The filename for a source of random bytes. Define this yourself * if you have a different source of randomness. @@ -106,4 +108,4 @@ } } -?> \ No newline at end of file +?> diff -r 237a6eccb0bc -r bcddb147865e lib/util.php --- a/lib/util.php Mon Apr 20 20:42:20 2009 +0000 +++ b/lib/util.php Mon Apr 20 20:48:01 2009 +0000 @@ -958,10 +958,12 @@ // returns $bytes bytes of random data as a hexadecimal string // "good" here is a goal and not a guarantee +$dev_ok = 0; + function common_good_rand($bytes) { // XXX: use random.org...? - if (file_exists('/dev/urandom')) { + if ($dev_ok && file_exists('/dev/urandom')) { return common_urandom($bytes); } else { // FIXME: this is probably not good enough return common_mtrand($bytes);
_______________________________________________ Laconica-dev mailing list [email protected] http://mail.laconi.ca/mailman/listinfo/laconica-dev
