
{"id":11,"date":"2009-04-29T17:09:44","date_gmt":"2009-04-29T21:09:44","guid":{"rendered":"http:\/\/w2.otherroute.net:777\/wordpress\/?p=11"},"modified":"2013-06-24T12:20:09","modified_gmt":"2013-06-24T16:20:09","slug":"wordpress-online","status":"publish","type":"post","link":"https:\/\/www.otherroute.net\/wordpress\/2009\/04\/wordpress-online\/","title":{"rendered":"WordPress Online"},"content":{"rendered":"<p>EDIT 8\/10\/09:  I&#8217;ve been told on the ale.org list that ubuntu&#8217;s wordpress package has an older version of wordpress and has not been updated recently.  So for now I&#8217;ll recommend NOT yet using apt to manage your wordpress install.<\/p>\n<hr \/>\n<p><strong>otherroute.net<\/strong> is back online.\u00a0 And after doing some work getting a lot of different settings right, I realized that it could have been much easier.<\/p>\n<p><code>sudo apt-get install wordpress<\/code><\/p>\n<p>Yup, that&#8217;s all it takes.<\/p>\n<p>My last webserver was an Xbox that ran Debian.\u00a0 To set that up, I found all the source files I needed, configured and patched things, compiled and installed.\u00a0 It was a familiar exercise of trying to compile only to find what&#8217;s missing, downloading more compressed tar files, and trying to compile everything again.\u00a0 An afternoon or two later and I had a moderately working Apache webserver to host my personal website, projects for school, and other things that wanted to run on Linux.\u00a0 And then I learned about <em>apt<\/em>, which makes life easier by doing all those things for you.\u00a0 A single command and you&#8217;ve got Apache running.<\/p>\n<p>I wanted to avoid that unnecessary work this time around when getting WordPress running on my new dedicated Ubuntu machine.\u00a0 I was able to make good use of <em>apt<\/em>.\u00a0 It found Apache2 for me and installed it.\u00a0 It found PHP and MySQL and installed them too.\u00a0 And then I went off configuring things.\u00a0 I made a database user and databases.\u00a0 I worked on the \/var\/www folder tree where I had put WordPress, setting permissions so that Apache could do everything it needed but nothing more.\u00a0 I turned on Apache&#8217;s mod-rewrite when the usual WordPress URL formatting wouldn&#8217;t work, and then turned on an Apache permission for the site when mod-rewrite still wasn&#8217;t working.\u00a0 Before calling everything complete, I wrote a script that would download WordPress&#8217; latest.tar.gz and update the site.\u00a0 And then I found that <em>apt<\/em> could have done all that and the updates would have been integrated in my usual system update process.<\/p>\n<p>I had again wasted a couple afternoons configuring things that I could have just had the system do for me.\u00a0 I hadn&#8217;t thought about a different way to do things at the time.\u00a0 I knew how to do get the job done, so I started working the way I knew how.\u00a0 Almost exactly like last time, after I was done I found that someone had provided me with a much easier way to get things started and in the future keep them up to date.\u00a0 This time around, I thought I knew the tools available to me, but my knowledge was dated and the end result was the same as last.<\/p>\n<p>But now I&#8217;ve got a new strategy that I learned from this exercise that I didn&#8217;t learn before.\u00a0 Before doing things that I know how to do, I need to reevaluate that my known way is the best way.\u00a0 Things change too quick, and nothing from a few years ago should be applied to technology today.\u00a0 Sure, knowing the hard way by hand, like configuring WordPress or compiling Apache, helps in understanding what&#8217;s going on, but there&#8217;s better, popular and well-known ways to get that done.\u00a0 And check <em>apt<\/em> for everything, even webapps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>EDIT 8\/10\/09: I&#8217;ve been told on the ale.org list that ubuntu&#8217;s wordpress package has an older version of wordpress and has not been updated recently. So for now I&#8217;ll recommend NOT yet using apt to manage your wordpress install. otherroute.net &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.otherroute.net\/wordpress\/2009\/04\/wordpress-online\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[6,5,7,10],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apache","tag-apt","tag-otherroute","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":17,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/posts\/11\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.otherroute.net\/wordpress\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}