{"id":573,"date":"2020-02-10T06:14:26","date_gmt":"2020-02-10T05:14:26","guid":{"rendered":"https:\/\/codedoneright.eu\/?page_id=573"},"modified":"2020-03-10T17:36:09","modified_gmt":"2020-03-10T16:36:09","slug":"wordpress","status":"publish","type":"page","link":"https:\/\/codedoneright.eu\/?page_id=573","title":{"rendered":"WordPress website"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png\" alt=\"wordpress logo\"\/><figcaption><a href=\"https:\/\/wordpress.org\/\">WordPress.org<\/a> logo<\/figcaption><\/figure>\n\n\n\n<p>Nowadays setting up a website is pretty easy, and the most popular way to start is using WordPress. It is a content management system written in PHP paired with SQL database. Its base functionality can be extended with a plethora of additional plugins, themes and other extensions.<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Preface<\/h3>\n\n\n\n<p>This tutorial requires that you have a basic server set up already, and that you have Apache, PHP and MySQL installed as well. Take a look at requirements above for direct links to those tutorials<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Requirements to set up<\/h5>\n\n\n\n<ul><li><a href=\"https:\/\/codedoneright.eu\/?page_id=493\">Apache web server<\/a><\/li><li><a href=\"http:\/\/codedoneright.eu\/?page_id=929\">PHP<\/a><\/li><li><a href=\"http:\/\/codedoneright.eu\/?page_id=557\">MySQL<\/a><\/li><\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">Optional<\/h5>\n\n\n\n<ul><li><a href=\"https:\/\/codedoneright.eu\/?page_id=309\">Domain<\/a> \u2013 check how to get yourself a free one<\/li><\/ul>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Downloading WordPress<\/h3>\n\n\n\n<p>If you followed my Apache guide you already have a folder ready for your website. For the sake of this tutorial let us assume that you are using the following folder<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/www\/your_website_folder<\/code><\/pre>\n\n\n\n<p>The easiest way to download WordPress is to navigate to the folder where your website will reside. Move there using<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/your_website_folder<\/code><\/pre>\n\n\n\n<p>If the folder contains any files, and it should not at this point, use the following to empty it<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm -R *<\/code><\/pre>\n\n\n\n<p>Now download the latest WordPress package using <em>wget<\/em> command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo wget http:\/\/wordpress.org\/latest.tar.gz<\/code><\/pre>\n\n\n\n<p>Unpack the file with <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tar xzf latest.tar.gz<\/code><\/pre>\n\n\n\n<p>Contents will be unpacked into a subfolder called <em>wordpress<\/em>. Move files into the folder you are currently in righ now with the following code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mv wordpress\/* .<\/code><\/pre>\n\n\n\n<p>Now just remove the unnecessary folder and the initial package with <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm -rf wordpress latest.tar.gz<\/code><\/pre>\n\n\n\n<p>You should be all set up at this point, but just to be sure \u2013 check if your folder contains <em>wp-load.php<\/em>, among other files and folders, with the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -l<\/code><\/pre>\n\n\n\n<p>I mentioned it in Apache tutorial, but a refresher is in order. Change ownership of both the folder containing your site and any files within to Apache <em>www-data <\/em>user, and allow it to write inside with following commands<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown www-data:www-data -R \/var\/www\/your_website_folder\nsudo chmod 770 -R \/var\/www\/your_website_folder<\/code><\/pre>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress configuration<\/h2>\n\n\n\n<p>In order to configure your WordPress just open your browser and in the address box type the IP of your server on the local network, or your domain name if you have <a href=\"https:\/\/codedoneright.eu\/?page_id=309\">configured everything<\/a> already.<\/p>\n\n\n\n<p>You should see the following screen<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/projects-static.raspberrypi.org\/projects\/lamp-web-server-with-wordpress\/2c9ce11316f09d9d218a10af303d9d130c44ee81\/en\/images\/wordpress_language.png\" alt=\"\"\/><figcaption>WordPress language selection. Image credit <a href=\"http:\/\/raspberrypi.org\">raspberrypi.org<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<p>After you select your preferred language you will be presented with a welcome screen. Just press &#8220;<em><strong>Let&#8217;s go!<\/strong><\/em>&#8221; at the bottom.<\/p>\n\n\n\n<p>Now you will need to fill out some information. For a refresher on how to create databases and MySQL users navigate to <a href=\"https:\/\/codedoneright.eu\/?page_id=557\">this page<\/a><\/p>\n\n\n\n<ul><li><strong>Database name<\/strong> \u2013 input the name of the database you have set up<\/li><li><strong>Database username<\/strong> \u2013 input the name of the database user you have permissioned to the database<\/li><li><strong>Database username password<\/strong> \u2013 input the password for the database user you created<\/li><li><strong>Database host<\/strong> \u2013 put <em>localhost<\/em>, if not filled out automatically<\/li><li><strong>Table prefix<\/strong> \u2013 leave default <em>wp_<\/em> prefix<\/li><\/ul>\n\n\n\n<p>Now proceed with prompts until you get to the page where you will set up the website title, default website admin, and the website address. Fill everything as you see fit and hit the <strong><em>Install WordPress<\/em><\/strong> button<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Logging into your new site<\/h3>\n\n\n\n<p>Upon initial arrival, you will be logged in automatically, but if you want to access your website admin panel from a different device, or you simply clear your cookies, use the following link to log in<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/your.domain.com\/wp-admin\nor\nhttp:\/\/your.local.ip.address\/wp-admin<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Setting up WordPress is a fast and easy way to expose yourself to the internet. This tutorial showed you how to set up the basics.<\/p>\n\n\n\n<p>Now is a good time to secure your website with a certificate so that your password is not sent in the clear but encrypted. Check out the Certbot tutorial!<\/p>\n\n\n\n<p>Take a look at basic WordPress security tutorial as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nowadays setting up a website is pretty easy, and the most popular way to start is using WordPress. It is a content management system written in PHP paired with SQL database. Its base functionality can be extended with a plethora&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":483,"menu_order":20,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Website made easy with WordPress &#8212; Code Done Right!<\/title>\n<meta name=\"description\" content=\"Learn how to quickly set up a website using the most popular content delivery system \u2013 WordPress. Takes next to no time, provided you follow my tutorial.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codedoneright.eu\/?page_id=573\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Website made easy with WordPress &#8212; Code Done Right!\" \/>\n<meta name=\"twitter:description\" content=\"Learn how to quickly set up a website using the most popular content delivery system \u2013 WordPress. Takes next to no time, provided you follow my tutorial.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codedoneright.eu\/?page_id=573\",\"url\":\"https:\/\/codedoneright.eu\/?page_id=573\",\"name\":\"Website made easy with WordPress &#8212; Code Done Right!\",\"isPartOf\":{\"@id\":\"https:\/\/codedoneright.eu\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codedoneright.eu\/?page_id=573#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codedoneright.eu\/?page_id=573#primaryimage\"},\"thumbnailUrl\":\"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png\",\"datePublished\":\"2020-02-10T05:14:26+00:00\",\"dateModified\":\"2020-03-10T16:36:09+00:00\",\"description\":\"Learn how to quickly set up a website using the most popular content delivery system \u2013 WordPress. Takes next to no time, provided you follow my tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/codedoneright.eu\/?page_id=573#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codedoneright.eu\/?page_id=573\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codedoneright.eu\/?page_id=573#primaryimage\",\"url\":\"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png\",\"contentUrl\":\"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codedoneright.eu\/?page_id=573#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codedoneright.eu\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Server features\",\"item\":\"https:\/\/codedoneright.eu\/?page_id=483\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"WordPress website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codedoneright.eu\/#website\",\"url\":\"https:\/\/codedoneright.eu\/\",\"name\":\"Code Done Right!\",\"description\":\"Raspberry Pi server guides\",\"publisher\":{\"@id\":\"https:\/\/codedoneright.eu\/#\/schema\/person\/50378701e349dbd5d40888bc5b532568\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codedoneright.eu\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/codedoneright.eu\/#\/schema\/person\/50378701e349dbd5d40888bc5b532568\",\"name\":\"CodeDoneRight\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codedoneright.eu\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/codedoneright.eu\/wp-content\/uploads\/www_icon.png\",\"contentUrl\":\"https:\/\/codedoneright.eu\/wp-content\/uploads\/www_icon.png\",\"width\":120,\"height\":120,\"caption\":\"CodeDoneRight\"},\"logo\":{\"@id\":\"https:\/\/codedoneright.eu\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/codedoneright.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Website made easy with WordPress &#8212; Code Done Right!","description":"Learn how to quickly set up a website using the most popular content delivery system \u2013 WordPress. Takes next to no time, provided you follow my tutorial.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codedoneright.eu\/?page_id=573","twitter_card":"summary_large_image","twitter_title":"Website made easy with WordPress &#8212; Code Done Right!","twitter_description":"Learn how to quickly set up a website using the most popular content delivery system \u2013 WordPress. Takes next to no time, provided you follow my tutorial.","twitter_image":"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/codedoneright.eu\/?page_id=573","url":"https:\/\/codedoneright.eu\/?page_id=573","name":"Website made easy with WordPress &#8212; Code Done Right!","isPartOf":{"@id":"https:\/\/codedoneright.eu\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codedoneright.eu\/?page_id=573#primaryimage"},"image":{"@id":"https:\/\/codedoneright.eu\/?page_id=573#primaryimage"},"thumbnailUrl":"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png","datePublished":"2020-02-10T05:14:26+00:00","dateModified":"2020-03-10T16:36:09+00:00","description":"Learn how to quickly set up a website using the most popular content delivery system \u2013 WordPress. Takes next to no time, provided you follow my tutorial.","breadcrumb":{"@id":"https:\/\/codedoneright.eu\/?page_id=573#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codedoneright.eu\/?page_id=573"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codedoneright.eu\/?page_id=573#primaryimage","url":"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png","contentUrl":"https:\/\/s.w.org\/style\/images\/about\/WordPress-logotype-standard.png"},{"@type":"BreadcrumbList","@id":"https:\/\/codedoneright.eu\/?page_id=573#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codedoneright.eu\/"},{"@type":"ListItem","position":2,"name":"Server features","item":"https:\/\/codedoneright.eu\/?page_id=483"},{"@type":"ListItem","position":3,"name":"WordPress website"}]},{"@type":"WebSite","@id":"https:\/\/codedoneright.eu\/#website","url":"https:\/\/codedoneright.eu\/","name":"Code Done Right!","description":"Raspberry Pi server guides","publisher":{"@id":"https:\/\/codedoneright.eu\/#\/schema\/person\/50378701e349dbd5d40888bc5b532568"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codedoneright.eu\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/codedoneright.eu\/#\/schema\/person\/50378701e349dbd5d40888bc5b532568","name":"CodeDoneRight","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codedoneright.eu\/#\/schema\/person\/image\/","url":"https:\/\/codedoneright.eu\/wp-content\/uploads\/www_icon.png","contentUrl":"https:\/\/codedoneright.eu\/wp-content\/uploads\/www_icon.png","width":120,"height":120,"caption":"CodeDoneRight"},"logo":{"@id":"https:\/\/codedoneright.eu\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/codedoneright.eu"]}]}},"_links":{"self":[{"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages\/573"}],"collection":[{"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=573"}],"version-history":[{"count":13,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages\/573\/revisions"}],"predecessor-version":[{"id":938,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages\/573\/revisions\/938"}],"up":[{"embeddable":true,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages\/483"}],"wp:attachment":[{"href":"https:\/\/codedoneright.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}