Have you ever wanted to create your own website but didn't know how to do that or what tools you will need
Then, I've got the perfect video for you, stick around, because it's TechWizTime
Hey guys, Jonathan here with TechWizTime, where I teach you technology through tutorials
And today, I'm a little bit sick, so, bear with me, I sound really stuffy, it's not my usual self, but
I really wanted to get this tutorial out to you just so I'd have something there for you to look at
And also apologies for not releasing the video last Friday
Sometimes we get sick and this time U actually got really really sick and I'm just on the edge of it right now, so, thanks for understanding
So in today's video what I'm gonna do is I'm going to show you how you can set up your own blog using WordPress, but it's pretty much automated, so you only need to do a few little things to make it work right
And how I'm going to teach you how to do that is using a piece of software called "BlogInaBox"
But I will forewarn you stick around to the end because there are a few things that will go wrong, and I'll show you what goes wrong and how to fix it
But before we go any further, what I wanna do is I want to ask you to share this video with as many people as you can
Sharing this video is really helpful to this channel, and if you can do that for me, it would be so much appreciated, so, in advance, thank you
And with that said, let's jump over to the Raspberry Pi and the computer, and I'll show you how to set this up from scratch, and also the little downfalls that you will see
Okay so the first thing you're going to want to do is go to "inabox.blog"
Once you're on that website, what you'll do is you'll scroll down a little bit, and you'll see your choices there for your operating system, in my case I'm gonna choose Windows
This will download the installation software which will automate how we actually set this up
So once you've downloaded the software just go through all the prompts until you've installed the software
Then you will come up to a screen that has a start button there, so you click on that
And next we'll click "Configure"
So if you are connecting to a WiFi network this is where you put in the SSID and the Passphrase
And optionally, a SSH key
But in my case I'm going to be se tting it up via a wired network, so I'll click on continue
And this section is where you would fill in details such as passwords, name of the blog and so forth, so take your time here, and make sure you recall all of these details
Once that's all correct, click on continue and this is where you can select your MicroSD card
So click on "Change Drive" if you need to, and select the MicroSD Card you wanna write to
Once you've done that, just click on "Burn It", this will write the image to the MicroSD Card, and it should only take a few minute
Once that's done, you'll come up to this screen here where you can select and burn another if you want
But in this case we're just going to eject the MicroSD Card and we'll pop it into the Raspberry Pi
And we'll go through the first boot sequence
So over on the Raspberry Pi now, what you'll see is that this will take a little while to do the first time it sets up, it'll resize the partitions, so make sure you've got all the space you can use there
As well as just set up a few other things in the background, it may take anywhere from a couple of minutes, to 10 or 15
But once it's finally gone through everything, it will come up to Blog in a Box login, and this is when you know that you're ready to go
Now the log in here is "pi" and it will be the pi password that you set up in "Blog in a Box"
So as long a you recorded those details, you should be able to log in here and it will come up with a screen looking like this
But right now what we'll do is we'll jump over to the computer and we'll loging into our Wordpress blog
So, over to your computer now and what you'll do is you'll go into a web browser and type in "bloginabox.local"
This should load up your Wordpress installation in your Raspberry Pi, however, if it doesn't
What you'll need to do is on your Raspberry Pi, after you've logged in, you need to type in "ifconfig", this will give you your IP Address and this is what you'll type in your web browser
So once it loads up to a page looking like this, what you'll need to do is find down the bottom, you'll see a little blue link there that says "WP-admin"
Clock on that link and you'll be directed to the login page, now this is where you put in your Wordpress login details that you set up at the start, so, hopefully, you have written that all down
And once you log in, you'll be presented with this page here, now this is the extra features, that make this installation unique
Here you can set up things like the "Sense Hat" or the Raspberry Pi camera
So, if you don't have any of those, which I don't have at the moment, you can just click on "Save Changes" and you're almost ready to go
So writing a new blog post is really simple, all you need to do is you can click here or you can go under the post menu itself and add a new post
And all you need to do is put in a few details there, like your title, any information and so forth, you will play around with this and you will get used to it, and once you're ready to go, you just click on "Publish"
Now one of the things that a lot of people will be looking at doing is installing their own themes or plugins, now, by default, I'll show you here quickly when you try and do that
It'll ask you for a FTP username and password and so forth, this one actually work straight out of the box, so, what we'll have to do is we'll have to jump over to the Raspberry Pi
And change a few things before we can get this to work properly
So once you've logged into your Raspberry Pi what we'll need to do is we'll need to change the wp config file, and to do that we'll type in "sudo nano wp-config.php"
Now once you've opened that up you'll need to go down to approximately where it says "DB_collate" and we'll create a few extra lines here and what we'll type in is "define('FS_METHOD', 'direct');
Now what this will do this will tell Wordpress that you want to write any plugins or themes directly to the MicroSD Card instead of going through a FTP, it's a little bit less secure, however this methos will work
For this installation, so to save thisc hanges you press "Ctrl X" "Y" and "Enter"
Now before we go any further, we still need to change some rules to make sure that Wordpress can write correctly all the information to the MicroSD Card
So the first thing you'll do is "sudo chmod -R 755 /opt/wordpress/wp-content/"
This will make everything writeable and readable within that wp-content folder, this is essential for allowing new plugins and themes to be written to that folder
And lastly, what we're gonna do is we're going to make sure the ownership of those files can be directly editable by Wordpress itself and to do that we'll type in "sudo chown -R www-data:www-data /otp/wordpress"
Now you'll see when we go back into the computer when we try and install a new plugin or theme, it will come back and install correctly
So now you have a Raspberry Pi all set up, ready for you to do whatever you want with
Install any plugins, any themes and pretty much just have a play around with or, in my case, I will use it as a development enviroment where I can set up other people's wordpress blogs
How awesome is that?
Okay so after those few little things, now you've got your Wordpress installation on your Raspberry Pi all up and running
And now you can also upload new themes and new plugins so you can test out and play around with
How awesome is that?
So you have any questions in relation to this tutorial, or maybe there's something you'd like me to do in the future, then make sure yiu leave me a comment down below and let me know
if you're not a subscriber already, then make sure you do because I release new videos every Tuesday and Friday
And if you are already a subscriber then make sure you hit that bell icon so you get notified whenever my new videos get released
And as always
Imagine, Learn, Create