{"id":2196,"date":"2012-01-08T22:38:37","date_gmt":"2012-01-09T04:38:37","guid":{"rendered":"http:\/\/bililite.nfshost.com\/blog\/?p=2196"},"modified":"2012-01-08T22:38:37","modified_gmt":"2012-01-09T04:38:37","slug":"moving-the-blog-again","status":"publish","type":"post","link":"https:\/\/bililite.com\/blog\/2012\/01\/08\/moving-the-blog-again\/","title":{"rendered":"Moving the Blog Again"},"content":{"rendered":"<p>I'm working on moving <a href=\"http:\/\/bililite.com\">bililite.com<\/a> to <a href=\"http:\/\/nearlyfreespeech.net\">nearlyfreespeech.net<\/a>; it's cheaper, more reliable and more hacker-friendly than <a href=\"http:\/\/1and1.com\">1&amp;1<\/a>. I'll write a post with my experiences and reasons later. But for now just the blog has moved to bililite.nfshost.com\/blog, with the plan to move the domain registration for bililite.com to nearlyfreespeech when everything is working and then return the blog to bililite.com\/blog. Moving it was straightforward, as <a href=\"\/blog\/2009\/06\/05\/moving-the-blog\/\" title=\"Moving the Blog\">I've done it before<\/a>, but there are some subtleties: nearlyfreespeech runs with <a href=\"http:\/\/www.php.net\/manual\/en\/features.safe-mode.php\">safe mode<\/a> and <a href=\"http:\/\/www.php.net\/manual\/en\/ini.sect.safe-mode.php#ini.safe-mode-gid\">safe_mode_gid<\/a> on, so you have to watch file and directory permissions; SaraPin <a href=\"http:\/\/snarp.dreamwidth.org\/124165.html\">explains exactly how<\/a>. WordPress loads with the group <code>me<\/code> and nearlyfreespeech's webserver runs with the group <code>web<\/code>, so you need to SSH into the account and change the WordPress directory with <code>chgrp -R * web<\/code>. The file permisssions should be 664 (writeable to self and group, readable to all) and the directory permissions should be 775 (writeable and executable to self and group, executable to all; under UNIX, getting a file from a directory is \"executing\" it), but the default WordPress installation does that.<\/p>\n<p>If you don't know what that means, you probably shouldn't be using a d.i.y. host like nearlyfreespeech.<\/p>\n<p>And now it works!<\/p>\n<p>Almost. <a href=\"http:\/\/sexybookmarks.shareaholic.com\/\">SexyBookmarks<\/a>'s images aren't loading when I use the new code, so I went back to the old version. It slows the page load down anyway, so I may take it off entirely.<\/p>\n<p>And the rest of the bililite site is still at the old host, and some of the sample code (in \/blog\/blogfiles) uses that, so for now I have a line in my <code>.htaccess<\/code> to refer it back: <code>RedirectMatch \/blog\/blogfiles(.*) http:\/\/bililite.com\/blog\/blogfiles$1<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I'm working on moving bililite.com to nearlyfreespeech.net; it's cheaper, more reliable and more hacker-friendly than 1&amp;1. I'll write a post with my experiences and reasons later. But for now just the blog has moved to bililite.nfshost.com\/blog, with the plan to move the domain registration for bililite.com to nearlyfreespeech when everything is working and then return [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2196"}],"collection":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/comments?post=2196"}],"version-history":[{"count":3,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2196\/revisions"}],"predecessor-version":[{"id":2199,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2196\/revisions\/2199"}],"wp:attachment":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/media?parent=2196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/categories?post=2196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/tags?post=2196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}