{"id":11,"date":"2015-11-04T22:54:14","date_gmt":"2015-11-04T22:54:14","guid":{"rendered":"http:\/\/blog.paranoidprofessor.com\/?p=11"},"modified":"2016-07-14T20:39:34","modified_gmt":"2016-07-14T20:39:34","slug":"wordpress-from-scratch-part-ii","status":"publish","type":"post","link":"https:\/\/blog.paranoidprofessor.com\/index.php\/2015\/11\/04\/wordpress-from-scratch-part-ii\/","title":{"rendered":"WordPress from Scratch &#8211; part II"},"content":{"rendered":"<p>Installing WordPress is really one of the easiest pieces of software I have ever installed. Yet, either through a misunderstanding of mine or perhaps a tiny rough edge.<\/p>\n<ul>\n<li>upload problems<\/li>\n<li>problems with permalinks<\/li>\n<\/ul>\n<p>One of the things that you can do to make your blog your own is to have a different header photo. The only limitation is that the size of the image should be below 2 megabytes.<\/p>\n<p><b><em><code>appearance - customize - header image - add new image - upload<\/code><\/em><\/b><\/p>\n<p>However, when trying to upload a new header I uncovered a few permission problems. The file will be saved under the wp-content directory. The uploaded photos will be stored under the uploads directory.<\/p>\n<h3>Fixing Uploads<\/h3>\n<p>One of the things that was missing on the installation was the uploads directory. In addition there were a few other operating system permissions as well.<br \/>\n<b><em><code><br \/>\nmkdir \/var\/www\/html\/blog\/wp-content\/uploads<br \/>\nchmod 777 \/var\/www\/html\/blog\/<br \/>\nchmod 777 \/var\/www\/html\/blog\/wp-content<br \/>\nchmod 777 \/var\/www\/html\/blog\/wp-content\/uploads<br \/>\n<\/code><\/em><\/b><\/p>\n<p>Once these fixes were done, it was possible to upload the new photo without any problems.<\/p>\n<h3>Fixing Permalinks<\/h3>\n<p>When actually adding a few posts, I noticed that the permalinks didn&#8217;t actually work. I kept receiving the following message.<\/p>\n<h1 class=\"page-title\">Oops! That page can&#8217;t be found.<\/h1>\n<p>I have seen a lot of solutions but it appears to simply go into parmalinks and simply press save with or without changing anything.<\/p>\n<p><b><em><code>dashboard -&gt; settings -&gt; permalink<\/code><\/em><\/b><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing WordPress is really one of the easiest pieces of software I have ever installed. Yet, either through a misunderstanding of mine or perhaps a tiny rough edge. upload problems problems with permalinks One of the things that you can &hellip; <a href=\"https:\/\/blog.paranoidprofessor.com\/index.php\/2015\/11\/04\/wordpress-from-scratch-part-ii\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,3],"tags":[26,17,28],"_links":{"self":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":3,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}