{"id":8,"date":"2020-03-22T19:26:51","date_gmt":"2020-03-22T19:26:51","guid":{"rendered":"https:\/\/blog.thomarite.uk\/?p=8"},"modified":"2020-03-22T19:26:51","modified_gmt":"2020-03-22T19:26:51","slug":"how-i-created-this-blog","status":"publish","type":"post","link":"https:\/\/blog.thomarite.uk\/index.php\/2020\/03\/22\/how-i-created-this-blog\/","title":{"rendered":"How I created this blog"},"content":{"rendered":"\n<p>Still in progress:<\/p>\n\n\n\n<p>1- Get a VPS:<\/p>\n\n\n\n<p>There are so many options, AWS, GCP, OVH, etc.  I used OVH as it was pretty cheap initially and chose the most basic VPS. I use Debian as OS.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.ovh.co.uk\/vps\/\">https:\/\/www.ovh.co.uk\/vps\/<\/a><\/p>\n\n\n\n<p>2- Get a domain<\/p>\n\n\n\n<p>There are many place to buy domains, you dont need anything fancy and spend big. Just google. I used OVH too<\/p>\n\n\n\n<p><a href=\"https:\/\/www.ovh.co.uk\/domains\/\">https:\/\/www.ovh.co.uk\/domains\/<\/a><\/p>\n\n\n\n<p>3- Install LAMP<\/p>\n\n\n\n<p>I used several links. <\/p>\n\n\n\n<p><a href=\"https:\/\/linuxconfig.org\/how-to-install-a-lamp-server-on-debian-9-stretch-linux\">https:\/\/linuxconfig.org\/how-to-install-a-lamp-server-on-debian-9-stretch-linux<\/a><\/p>\n\n\n\n<p>The above should give you a working database (MariaDB\/MySQL),  PHP(7.0) and a web server (Apache2). <\/p>\n\n\n\n<p>I found an issue trying to get apache and php to work.:<\/p>\n\n\n\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/47024111\/apache-installing-and-running-php-files\">https:\/\/stackoverflow.com\/questions\/47024111\/apache-installing-and-running-php-files<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/askubuntu.com\/questions\/451708\/php-script-not-executing-on-apache-server\">https:\/\/askubuntu.com\/questions\/451708\/php-script-not-executing-on-apache-server<\/a><\/p>\n\n\n\n<p>At the end I had to remove a module, add php7.0 module and restart. Afterwards I could thest apache was executing php. Once that was configured I removed the php file as recommended.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo a2dismod mpm_event\nsudo a2enmod php7.0\nsudo systemctl restart apache2<\/pre>\n\n\n\n<p>If apache+php dont work properly, the next steps will fail.<\/p>\n\n\n\n<p>4- Install PHPmyAdmin<\/p>\n\n\n\n<p>I used these links:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.hostingadvice.com\/how-to\/install-phpmyadmin-on-ubuntu\/\">https:\/\/www.hostingadvice.com\/how-to\/install-phpmyadmin-on-ubuntu\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-secure-phpmyadmin-on-debian-9\">https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-secure-phpmyadmin-on-debian-9<\/a><\/p>\n\n\n\n<p>4- Get SSL cert:<\/p>\n\n\n\n<p>You can get this for free: <a href=\"https:\/\/letsencrypt.org\/\">https:\/\/letsencrypt.org\/<\/a><\/p>\n\n\n\n<p>It is so easy to get your certs generated, installed and renewed, that I can&#8217;t believe it:<\/p>\n\n\n\n<p><a href=\"https:\/\/certbot.eff.org\/lets-encrypt\/debianstretch-apache\">https:\/\/certbot.eff.org\/lets-encrypt\/debianstretch-apache<\/a><\/p>\n\n\n\n<p>5- Install WordPress<\/p>\n\n\n\n<p><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-wordpress-with-lamp-on-debian-9\">https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-wordpress-with-lamp-on-debian-9<\/a><\/p>\n\n\n\n<p>Still needed some tweaking as I am pretty clueless with Apache to make work WordPress:<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-ostechnix\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"QXLGzAsiEb\"><a href=\"https:\/\/www.ostechnix.com\/configure-apache-virtual-hosts-ubuntu-part-1\/\">How To Configure Apache Virtual Hosts In Ubuntu 18.04 LTS<\/a><\/blockquote><iframe loading=\"lazy\" title=\"&#8220;How To Configure Apache Virtual Hosts In Ubuntu 18.04 LTS&#8221; &#8212; OSTechNix\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"https:\/\/www.ostechnix.com\/configure-apache-virtual-hosts-ubuntu-part-1\/embed\/#?secret=QXLGzAsiEb\" data-secret=\"QXLGzAsiEb\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption><a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-apache-virtual-hosts-on-debian-9\/\">https:\/\/www.rosehosting.com\/blog\/how-to-set-up-apache-virtual-hosts-on-debian-9\/<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>6- Security<\/p>\n\n\n\n<p>Keep in mind that you will create several user\/pass.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>mysql root user\/pass<\/li><li>phpmyadmin  user\/pass<\/li><li>wordpressuser for mysql<\/li><li>wordpressuser for UI<\/li><\/ul>\n\n\n\n<p> Be conscious with the security, you don&#8217;t want your server\/apps to be hacked and used for doggy activity.<\/p>\n\n\n\n<p>Will ask for help to some friends and will another post how to secure this environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Still in progress: 1- Get a VPS: There are so many options, AWS, GCP, OVH, etc. I used OVH as it was pretty cheap initially and chose the most basic VPS. I use Debian as OS. https:\/\/www.ovh.co.uk\/vps\/ 2- Get a domain There are many place to buy domains, you dont need anything fancy and spend &hellip; <a href=\"https:\/\/blog.thomarite.uk\/index.php\/2020\/03\/22\/how-i-created-this-blog\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How I created this blog&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-unix"],"_links":{"self":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":1,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/8\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}