IntroductionWelcome| 00:00 | (music playing)
| | 00:04 | Hi! I am Morten Rand-Heindriksen and welcome
to Installing and Running WordPress: BitNami.
| | 00:11 | In this course I'll show you how
to install WordPress on your Windows
| | 00:15 | computer or on your Mac so you can
experiment with, and development contact
| | 00:20 | for, WordPress without having to rely on an
external web host or an Internet connection.
| | 00:26 | I'll start by showing you where to get
BitNami and how to install it on your computer,
| | 00:32 | we'll look at how to work with
WordPress when it's running under BitNami, and
| | 00:37 | finally, I'll show you how to uninstall
BitNami without losing your content in the process.
| | 00:44 | Having WordPress installed locally on
your computer, whether it be a Windows
| | 00:48 | computer or a Mac, makes a huge
difference when you want to experiment with, or
| | 00:53 | develop content for, WordPress.
| | 00:56 | So, let's get cracking with
Installing and Running WordPress: BitNami.
| | Collapse this transcript |
| Who is this course for?| 00:00 | WordPress is a web publishing application
designed to publish content onto the web.
| | 00:06 | So, why would you want to install a web
publishing application on your computer
| | 00:10 | so you can access it, but no one else can?
| | 00:13 | Now, the answer lies in that question.
| | 00:16 | Having WordPress installed on a computer
has huge benefit both for bloggers,
| | 00:21 | for beginners, and for developers.
| | 00:25 | As a beginner, you need to understand
how WordPress works and familiarize
| | 00:28 | yourself with WordPress
and all the ins and outs.
| | 00:32 | By having WordPress installed on your
computer, you can experiment it without
| | 00:36 | having to install on external host, and
you can also get to know the application
| | 00:41 | in a safe environment.
| | 00:42 | And once you know how it works and
you are comfortable with it, then you
| | 00:46 | publish it to a host and then you can go live.
| | 00:49 | As a developer, if you want to develop
a child theme or a regular theme or a
| | 00:54 | plugin or some other content for WordPress,
you should always do it in a local environment,
| | 01:00 | because if you didn't have a local
environment, you would have to make a change
| | 01:04 | to a file and then push that file onto
the web and then onto a web server, and
| | 01:10 | then check it, and then push another
change onto the web server and check it.
| | 01:14 | But if you have a local environment to
work in, you simply make a change to the
| | 01:18 | file, reload your browser, and
you see that change immediately.
| | 01:22 | For myself, I have WordPress installed
on my computers so that no matter where I
| | 01:27 | am, I can always work on WordPress
projects without having to rely on an
| | 01:31 | Internet connection, because let's face it:
| | 01:33 | even though the Internet is pretty
much everywhere, you don't always have a
| | 01:37 | connection to the Internet on your
computer, but if you want to work with
| | 01:41 | WordPress, you really either need that
or you need to have WordPress installed
| | 01:45 | on a computer locally.
| | 01:47 | Down to brass tacks, WordPress installed
on a computer is the number one tool in
| | 01:52 | your WordPress toolkit, and whether
you're a beginner or advanced user, this is
| | 01:57 | something you should have. We've created
this course series to give you four
| | 02:01 | different options that you can use to
install WordPress either on Macs or on PCs,
| | 02:07 | and we go through how to set it up,
how to use it, and how to uninstall it.
| | 02:11 | That way you'll have all the tools
necessary to be able to run WordPress locally
| | 02:16 | on your computer and develop great things.
| | Collapse this transcript |
| Overview of options: BitNami, WAMP, MAMP, and WebMatrix| 00:00 | This course is one of a series of four
courses that map out four different tools
| | 00:05 | you can use to install
WordPress on your local computer.
| | 00:09 | Depending on your platform, your level
of expertise, and what you want to achieve,
| | 00:14 | either one of these four tools
may be the correct one for you.
| | 00:18 | So, before we get started, let me
break down the different options so you can
| | 00:22 | pick the right tool and the right
course for your needs right off the top.
| | 00:27 | If you're a Mac user, I recommend using MAMP.
| | 00:30 | MAMP is an application that installs a
web server on your Mac and then you can
| | 00:37 | link that web server to WordPress so
that you can run WordPress as you would on a
| | 00:43 | web server on the web.
| | 00:44 | MAMP requires a bit of configuration
to work, and it can be a bit tricky, but
| | 00:49 | once it's up and running,
it's very easy to work with.
| | 00:51 | The second option for Mac users is BitNami.
| | 00:54 | BitNami is a one-click installation
that installs both a MAMP server, just like
| | 01:00 | what you had on Option 1, and
WordPress and links all together.
| | 01:04 | So, you just install BitNami and than
you have WordPress running on your Mac.
| | 01:09 | The problem is BitNami can be a bit
buggy on a Mac and it can be a bit hard to
| | 01:14 | stop and start, and
things tend to happen with it.
| | 01:17 | That's why I don't
recommend it as the first option.
| | 01:20 | But if you're looking for a simple
one-click install and you don't want to worry
| | 01:25 | about configurations, BitNami is the way to go.
| | 01:27 | For Windows users, my primary
recommendation is to use BitNami.
| | 01:32 | It's the same application as the one
available for Mac users, but it works a
| | 01:38 | lot better on Windows.
| | 01:39 | In fact, I use BitNami for all my
development work because it's so easy to
| | 01:45 | work with and it works really well.
| | 01:47 | I've tried all the other options,
but I stick with BitNami.
| | 01:50 | If you want an option, you can
install WAMP on your Windows computer.
| | 01:54 | Now, WAMP is exactly the same as MAMP
except the W at the top stands for Windows,
| | 02:01 | whereas in MAMP the first M stands for Mac.
| | 02:04 | So, it's a web server that you've been
install and then you can configure it to
| | 02:08 | talk to WordPress and make it all work together.
| | 02:11 | The last option for Windows users is WebMatrix.
| | 02:15 | Now, WebMatrix isn't exactly
the same as BitNami and WAMP.
| | 02:19 | In addition to being a server
environment where you can run WordPress and other
| | 02:24 | open-source applications, WebMatrix is
also a web development tool that you can
| | 02:29 | use to develop web applications.
| | 02:32 | So, in addition to having WordPress
run under WebMatrix, you can also use
| | 02:36 | WebMatrix to build WordPress, or build themes
for WordPress or build plugins for WordPress.
| | 02:42 | However, WebMatrix is very different from
BitNami and WAMP in that it installs a
| | 02:49 | large list of applications onto
your computer and changes the overall
| | 02:54 | configuration of your computer in the
process, in effect making your computer
| | 02:57 | into a proper Windows-based web server.
| | 03:01 | Before you embark on this course,
it's important that you pick the correct
| | 03:05 | tool for your purposes.
| | 03:07 | You can either watch all the four
courses and then, based on those, decide which
| | 03:12 | tool you want to use, or you can pick
the tool you think will work best for you
| | 03:17 | and then just watch that course.
| | 03:19 | We've created one course for each
tool so that it's easy to compare them and
| | 03:25 | also so that it's easy to both install,
troubleshoot, and uninstall each of the solutions.
| | 03:31 | In this course, we will be looking
at BitNami for Windows and Mac users.
| | 03:36 | If you're on a Mac and you plan on
using MAMP or if you're on Windows and you
| | 03:41 | plan on using WAMP or WebMatrix instead,
go to the lynda.com online training
| | 03:47 | library and select the course that
corresponds with your choice. And don't worry
| | 03:51 | about making the wrong choice.
| | 03:53 | Each of the courses in this series also
shows you how to uninstall each of the
| | 03:57 | options if you don't like it.
| | Collapse this transcript |
|
|
1. Introduction to BitNamiWhat is BitNami?| 00:00 | Before we get started, it might be a good idea
to clarify what BitNami is and how it works.
| | 00:05 | BitNami is a stack application, meaning
it comes fully packaged with a complete
| | 00:11 | web host stack that when installed, sets
up a local web host as well as whatever
| | 00:17 | application or applications you wish to add in.
| | 00:20 | In short, BitNami is a simple way to
host WordPress and a myriad of other
| | 00:25 | open-source publishing
applications on your computer.
| | 00:29 | The way BitNami works is it
ships with a MAMP or WAMP stack.
| | 00:34 | That's Mac/Apache/MySQL/PHP
or Windows/Apache/MySQL/PHP stack.
| | 00:42 | These are the components that together
setup a web host with a database host and
| | 00:48 | the necessary programming language for
WordPress to work. Then BitNami has some
| | 00:52 | extra software, that I call magic,
that makes things hook together.
| | 00:58 | And finally, it comes with WordPress or
other open source applications that are
| | 01:01 | all wired together to become one cohesive unit.
| | 01:07 | By installing BitNami, you install the
necessary applications and programming
| | 01:12 | components to run
WordPress on your computer.
| | 01:15 | When you download BitNami, you also
specify what open-source application
| | 01:19 | you want to install--
| | 01:20 | in this case WordPress--and that
application is installed as part of the stack.
| | 01:25 | Once BitNami is installed, you're in
effect turn your computer into a web server
| | 01:30 | much like the web servers you would
host WordPress on on the web, and that web
| | 01:35 | server has WordPress installed and
ready to go right out of the box.
| | 01:40 | The major differences between running
WordPress on a web server on the web and
| | 01:44 | running WordPress on the BitNami on
your computer are pretty obvious. Because
| | 01:49 | BitNami is installed on your computer,
| | 01:51 | you don't need Internet access
to use your WordPress website.
| | 01:55 | That also means the site is only
accessible from your computer--that is,
| | 02:00 | unless you have decided to make your
computer a public web host--something I
| | 02:04 | don't recommend you do.
| | 02:05 | The true benefit of having WordPress
running on the BitNami on your computer is
| | 02:10 | that you can work with the files
directly and you don't have to keep uploading
| | 02:14 | and downloading them to
and from your web server.
| | 02:17 | They are all there, ready for
you to work with and experiment with.
| | 02:22 | Now that you know what
BitNami is and how it works,
| | 02:24 | let's get started.
| | Collapse this transcript |
| Downloading the correct version of BitNami| 00:00 | The first step in installing BitNami on
your computer, whether it be a Windows computer
| | 00:05 | or a Mac, is to get the application.
| | 00:08 | BitNami comes in several different varieties:
a native installer, a virtual machine image,
| | 00:14 | and also a cloud image.
| | 00:16 | In this course, we will
look at the native installer.
| | 00:18 | In addition to WordPress, you can also get
BitNami stacks from many other open-source
| | 00:23 | applications, and this is part
of what makes BitNami so powerful.
| | 00:28 | To get to the WordPress stack, you can either
click on the APPS button at the very top here,
| | 00:33 | or you can scroll down, and here you
see a list of the most popular options.
| | 00:37 | Right now WordPress is one of them.
But I'm going to scroll up and click on APPS.
| | 00:42 | From here you see all the applications that
are available for install using BitNami, and
| | 00:47 | WordPress is among the very top
ones, so it's right here at the top.
| | 00:51 | To install WordPress, I simply click this,
and now depending on what kind of computer
| | 00:57 | you're using to access this site,
you'll get different options.
| | 01:00 | If you're on a Windows computer, you get the
installer, the virtual machine, and also the cloud server.
| | 01:06 | And if you're on a Mac,
you get different options.
| | 01:09 | Now all I have to do is click on the
installer to download it onto my computer.
| | 01:13 | I'm asked if I want to log into
BitNami and set up an account.
| | 01:16 | I can do that using Google or Yahoo! or
Facebook or even github, or if I don't want to set
| | 01:22 | up an account, I can simply click No thanks,
just take me to the download.
| | 01:27 | And the download begins down here, and I
get this page which tells me that I can tweet
| | 01:32 | about the fact that I just downloaded BitNami, and I
also get information about other types of BitNami services.
| | 01:37 | BitNami is a one-step solution for installing
and running WordPress on your computer,
| | 01:43 | so once downloaded, it's
time to set everything up.
| | Collapse this transcript |
|
|
2. Installing BitNami on WindowsRunning the BitNami installer on Windows| 00:00 | If you're on a Windows computer and you
want to use BitNami, all you have to do
| | 00:05 | is run the BitNami installer as
downloaded from the bitnami.org website.
| | 00:10 | I've already downloaded the installer,
| | 00:12 | so now I just need to go to my
Documents and Downloads and then find the
| | 00:18 | installer and run it.
| | 00:24 | First I need to pick a language,
because BitNami comes in several different
| | 00:27 | languages. So here I'll pick English.
And then I'll run the installer, by
| | 00:33 | following all the different steps.
| | 00:35 | First, BitNami asks me what kind
of applications I want to install.
| | 00:39 | In this case I have WordPress, because
that's what we have downloaded, and I also
| | 00:44 | have to install PhpMyAdmin.
| | 00:46 | That's the administration interface
for the database WordPress is going to
| | 00:50 | use to be able to work.
| | 00:52 | Both of these are checked.
| | 00:53 | I am going to click Next. And then I
have to find a place to place BitNami.
| | 00:58 | Now, depending on the version of Windows
you're installing this on, and how you've
| | 01:03 | configured Windows, you
may not have this option.
| | 01:05 | If you do get the option, I recommend
you move the default location from Program
| | 01:10 | Files to My Documents, and
I'll explain why in a second.
| | 01:14 | So, I'll go to My Documents, I'll make a new
folder, and I'll call it BitNami. Click OK.
| | 01:21 | The reason why you want to do this is
because when you want to make changes to
| | 01:26 | the files inside BitNami, be it theme
files or plugin files, it's really tricky
| | 01:30 | to do if BitNami is installed under
Program Files, because if you're using a
| | 01:35 | program to edit a file--
| | 01:37 | let's say you're writing a new PHP
file--that program is not allowed to save
| | 01:42 | files to the Programs folder
because of a block inside Windows.
| | 01:47 | However, if you installed BitNami under
My Documents, all the other software on
| | 01:52 | your computer is allowed to
make changes to that file,
| | 01:55 | so therefore, it's much easier to work with.
| | 01:57 | So, if you've this option, install
BitNami under My Documents. I'll click Next
| | 02:03 | and then I get to WordPress five-minute install.
| | 02:06 | If you ever installed WordPress on a
server before, you have always seen the five-
| | 02:10 | minute install in your browser, but
BitNami is going to configure WordPress for
| | 02:14 | you before we even get to the browser.
| | 02:16 | So, this is where you put in that information.
| | 02:19 | You have the regular login
information and this login for WordPress.
| | 02:23 | You put in a password and this
password won't just be for WordPress;
| | 02:29 | it will also be for PhpMyAdmin later.
| | 02:33 | Then you put in your name, and here
you can really put in whatever you want,
| | 02:38 | and an email address.
| | 02:40 | All these fields are standard when
you install WordPress, which is why
| | 02:43 | you're asked for them.
| | 02:45 | You click Next and then you get to the
point where you have to give your site a name,
| | 02:50 | so I am going to give my site the name
BitNami WordPress Sites, and click Next.
| | 02:57 | The next option you get is whether or
not you want to configure email support.
| | 03:01 | This is because WordPress uses email a lot.
| | 03:06 | When you set up a WordPress site and, for
instance, you forget your password, you can
| | 03:10 | get WordPress to email you your password.
| | 03:13 | If you have forms inside your WordPress
site--let's say a contact form--you can also
| | 03:17 | configure that form to send you emails.
| | 03:20 | But all this requires an email
server, and BitNami doesn't come with an
| | 03:23 | email server built-in.
| | 03:24 | So, what BitNami allows you to do
instead is configure email support through
| | 03:29 | an external service.
| | 03:31 | If you check this box, you get the
option to configure email for Gmail. That way
| | 03:38 | if you have a Gmail account, you can
link the Gmail account to BitNami, and that
| | 03:43 | way when WordPress wants to send out
an email--let's say through a form--it'll
| | 03:47 | use the Gmail email
server to send that email out.
| | 03:52 | So, if you want to set up a site
that has a form for instance, and you want to
| | 03:55 | test it, you should activate this service.
| | 03:57 | But for now, I'm just going
to turn it off. Click Next.
| | 04:02 | And the final window asks you if you
want more information about BitNami cloud
| | 04:05 | hosting. I am going to say No and
then click Next to run the installer.
| | 04:10 | The BitNami installer takes a bit of
time to finish, so this would be a good time to
| | 04:15 | go grab a coffee or something.
| | 04:17 | When the installation is complete you
can check this Launch BitNami WordPress
| | 04:22 | stack button and click Finish and you're
taken to the web interface for BitNami.
| | 04:28 | From here you simply click the Access
BitNami WordPress stack link and it takes
| | 04:33 | you to your new WordPress site,
hosted locally on your computer.
| | 04:37 | Installing WordPress on a computer
with BitNami is simple and requires almost
| | 04:42 | zero configuration.
| | 04:44 | Once it's done, you are ready
to start working with WordPress.
| | Collapse this transcript |
| Running WordPress under BitNami on Windows| 00:00 | When you finish installing the
BitNami WordPress stack on a Windows
| | 00:04 | computer, you're taken to the
BitNami browser window, from which you can
| | 00:08 | visit your WordPress site.
| | 00:09 | Once BitNami is running, you can
access your local WordPress site in
| | 00:13 | several different ways.
| | 00:14 | BitNami will give you the
local address for your computer.
| | 00:20 | That is usually 127.0.0.1.
| | 00:24 | In some cases, when you install BitNami you
will also have a colon and something like 8080 next to it.
| | 00:30 | This depends on how your computer is
configured, and whether or not there are
| | 00:34 | servers are running on your computer.
But in my case it's just 127.0.0.1. If we
| | 00:41 | go to that address and then say
/WordPress you're taken to your WordPress site.
| | 00:47 | If you think it's too difficult to
remember this code, you can also change it
| | 00:52 | out for localhost, and it
will take you to the same place.
| | 00:56 | Usually, localhost is a
little easier to remember.
| | 00:59 | In some cases, you will find
that when you go to this address--
| | 01:02 | so, localhost/WordPress--you get nothing.
| | 01:05 | If that's the case it means that
the BitNami server isn't running.
| | 01:09 | To make sure your servers are running,
you need to your Start menu, select All
| | 01:14 | Programs, Find the BitNami WordPress
stack, and select Manager Tools. This will
| | 01:21 | take you to the application that
helps you control your servers.
| | 01:26 | You have an Apache web server, which
is the web server that runs the website,
| | 01:30 | and you also have the MySQL database
server, and both of these need to be
| | 01:34 | running for BitNami to work.
| | 01:36 | In some cases, they might get turned off,
but you won't really see it unless you
| | 01:40 | go to this management tool, because these are
background processes that run on your computer.
| | 01:46 | If you see the saying Stopped, you
need to start them again. And from this
| | 01:50 | application, you can Stop
All and you can Start All.
| | 01:55 | So you have full control.
| | 01:58 | Just to show you what happens when they
are stopped, if I stopped both of these
| | 02:01 | services and then go and try to
reload my page, you'll see we get nowhere.
| | 02:08 | Now if I start both servers again, click
Start All, and reload my page again, you
| | 02:16 | see WordPress is back up and running.
| | 02:18 | With BitNami up and running, you have a
fully functional WordPress site on your
| | 02:22 | Windows computer you can
access via your browser.
| | Collapse this transcript |
| Accessing WordPress from your desktop on Windows| 00:01 | Just like when you host your
WordPress installation on a web host, you
| | 00:05 | can access the files of WordPress itself
when it's hosted on BitNami on your desktop.
| | 00:10 | As you can see here in the browser,
we have WordPress running on our computer.
| | 00:15 | To access the files that make up
WordPress, we have to go into where
| | 00:19 | BitNami was installed.
| | 00:20 | So, I will go to My Computer here,
and you'll remember that I installed
| | 00:26 | BitNami under My Documents.
| | 00:28 | If you install BitNami under Program
Files instead, you have to go there instead,
| | 00:32 | but you should be able to find the
BitNami folder somewhere on your computer.
| | 00:36 | Under my Documents, I have the
BitNami folder, and inside that folder I
| | 00:41 | have BitNami itself.
| | 00:43 | WordPress lives under the apps folder,
under wordpress, and then under htdocs.
| | 00:50 | When you go into the htdocs folder,
you see a full version of WordPress.
| | 00:55 | This is the standard installation of
WordPress that has the standard components.
| | 00:58 | You see here you have the three
main folders--wp-admin, wp-content and
| | 01:02 | wp-includes--and you also have
the standard WordPress files.
| | 01:07 | What you will notice is BitNami has
created a wp-config file for us that has the
| | 01:13 | configuration settings that are
necessary for WordPress to talk to the MySQL
| | 01:17 | database that's in BitNami.
| | 01:20 | When you work with WordPress, you're
generally working inside the wp-content folder.
| | 01:25 | The wp-content folder contains your
plugins, your themes, and if you upload
| | 01:31 | images or videos or audio or anything
else to WordPress, you'll also see those
| | 01:36 | files inside the wp-content folder.
| | 01:39 | The wp-content folder is active,
and I'll show you what I mean by that.
| | 01:42 | If we go into the themes folder right now,
you see we have two themes installed:
| | 01:47 | we have twentyeleven and twentytwelve.
| | 01:50 | If I go to my browser,
we can go to the back end.
| | 01:53 | I'll do that by going to localhost/
wordpress and then type in wp-admin.
| | 01:59 | This takes me to the login
window and from here, I can log in.
| | 02:02 | And now I get to the back end of my site.
| | 02:06 | From here, I can go to Appearance >
Themes and I see that I have the two same
| | 02:13 | themes: Twenty Twelve, which is the
current theme, and also Twenty Eleven.
| | 02:17 | Now if I install a new theme,
you'll see how WordPress works.
| | 02:21 | I'll go and find new default themes.
| | 02:23 | It's called twenty ten.
| | 02:24 | I'll search for it,
| | 02:28 | and what WordPress does is it goes onto
the Internet and finds the theme for me.
| | 02:32 | From here, I can install
the theme into WordPress.
| | 02:35 | So, I'll click Install Now.
| | 02:37 | The theme gets downloaded from the web,
unpacked, and installed into WordPress.
| | 02:43 | By installed into WordPress, what I actually
mean is it's now added into the themes folder.
| | 02:49 | So, now you see we have twentyten folder here
in addition to twentyeleven and twentytwelve.
| | 02:53 | If we go back to Themes, you see
that we now have three options.
| | 02:59 | And from here, I can either delete this
theme by clicking the Delete button or
| | 03:05 | if I want to, I can simply go into
my themes folder, select the twentyten
| | 03:09 | folder, and delete it.
| | 03:11 | If I reload this page, you'll see
that we now only have two themes.
| | 03:18 | This same process applies to plugins as well.
| | 03:20 | By adding plugins inside WordPress,
what you're actually doing is just adding
| | 03:24 | them to the plugins folder, and you
can also add plugins manually by adding
| | 03:28 | them to the folder.
| | 03:30 | If you're building a theme, like a
child theme or a regular theme, you can
| | 03:34 | also do the same thing.
| | 03:36 | You simply add the new files to your
folder under the themes folder and it will
| | 03:40 | automatically appear inside WordPress.
| | 03:43 | As you can see, the great thing about
having a local installation of WordPress
| | 03:48 | is that you have full access to
WordPress at the click of a button.
| | 03:51 | That means you can build your child
themes, your themes, your plugins, and do
| | 03:56 | whatever experiments you want in a
safe environment that doesn't require web
| | 04:00 | access. Pretty cool, eh?
| | Collapse this transcript |
| Setting up WordPress as a Windows library| 00:00 | Let me show you how to set up your
BitNami WordPress install as its own Windows
| | 00:05 | library for easy access.
| | 00:07 | This doesn't technically have
anything to do with BitNami or WordPress,
| | 00:10 | but it's a trick that will make your
life a lot easier when working with a local
| | 00:14 | WordPress installation.
| | 00:16 | Right now, to access the files from
WordPress, I have go to My Explorer and go to
| | 00:22 | Documents, click BitNami/
apps/wordpress/htdocs.
| | 00:27 | That's a lot of clicking to get to
a folder you want to access a lot.
| | 00:31 | Instead, I'm going to use the library
function inside Windows 7 and Windows 8
| | 00:36 | to make a custom library that I can access
very easily and go directly to these files.
| | 00:41 | To do that, I go to Libraries, click
New Library, and I'll call it WordPress.
| | 00:49 | I'll go into that library and then
click on the Include a folder button.
| | 00:54 | That way I can navigate directly
to my Documents/BitNami/apps/wordpress/htdocs.
| | 01:03 | When I see htdocs down here, I'll
click Include Folder and now my library has
| | 01:09 | WordPress inside it.
| | 01:10 | You can see if I go to Libraries here
and select WordPress, I go directly to
| | 01:15 | the htdocs folder and just like I did with
documents, I can access the files directly.
| | 01:22 | I can take this one step further by pinning
this WordPress folder to my taskbar down here,
| | 01:28 | simply by grabbing it and pulling it
down to the taskbar. And it says Pin to
| | 01:33 | Windows Explorer. I'll let it go and now,
when you right-click on the folder,
| | 01:40 | you'll see WordPress is pinned right
here at the top, which means even if you
| | 01:45 | don't have that window open,
| | 01:47 | to get to the WordPress files, all
you have to do is go to your folder,
| | 01:51 | right-click, click WordPress, and here
you have your BitNami WordPress files
| | 01:56 | accessible at all times.
| | 01:59 | Knowing shortcuts like this Windows
Library trick will save you time and
| | 02:02 | frustration every time you want to access the
files in WordPress on your Windows computer.
| | 02:07 | Needless to say, all my Windows
computers have a WordPress library just
| | 02:11 | like this one.
| | Collapse this transcript |
|
|
3. Installing BitNami on MacRunning the BitNami installer on a Mac| 00:00 | If you're on a Mac and you want to
install BitNami, all you have to do is run
| | 00:05 | the BitNami installer, as
downloaded from the bitnami.org website.
| | 00:09 | I have the file right here.
| | 00:11 | It's a disk image file,
| | 00:12 | so if I just run it, we go
directly to the BitNami installer.
| | 00:18 | There is one big button here.
| | 00:20 | So, I just double-click to install it.
| | 00:23 | And then once I pass all the
warnings, I can do the install process.
| | 00:30 | First, I can pick a language,
because BitNami is available in several
| | 00:33 | different languages.
| | 00:34 | So, I'll just pick English here.
| | 00:37 | And then we run through a
regular install process.
| | 00:39 | Here I have to decide what kind of
components I need to install. Because we
| | 00:46 | downloaded the BitNami WordPress stack,
WordPress is being installed, and then
| | 00:51 | BitNami also knows that it needs to
install PhpMyAdmin, which is the application
| | 00:57 | that helps us build databases
for WordPress. I'll click Next.
| | 01:02 | The next step is to choose where we
want to place the BitNami WordPress stack.
| | 01:06 | By default, it suggests Applications
and then wordpress, but I'm going to change that to BitNami
| | 01:14 | so it's clear what it is.
| | 01:15 | Now I'll click Next.
| | 01:17 | And then we have to put in the
WordPress access information.
| | 01:21 | This is the WordPress five-minute
install, but BitNami is doing that five-
| | 01:25 | minute install for us.
| | 01:26 | So, we give BitNami all this
information and then it gets inserted into
| | 01:30 | WordPress when WordPress gets installed.
| | 01:32 | So, here I need to put in
my login, so I'll say morten.
| | 01:36 | And I'll put in the password, and this
password won't just be password for WordPress;
| | 01:42 | it'll also be the password for
PhpMyAdmin, which you may need to use later.
| | 01:47 | I'll put in my real name and
my email address and click Next.
| | 01:53 | Then I need to give my blog a name.
| | 01:57 | This is, again, the
five-minute install from WordPress,
| | 02:01 | so I'll call this one--then click Next.
| | 02:04 | And then I can choose whether or
not I want to set up email support.
| | 02:08 | Now if you worked with WordPress before,
you know that WordPress wants to send
| | 02:12 | you emails. It'll send you
emails for different reasons.
| | 02:15 | For example, if you've forgot your
password, you can get WordPress to send you
| | 02:19 | an email with a password reminder.
| | 02:21 | Or, if you have a form on your website,
WordPress can send form entries to your email.
| | 02:27 | But this requires that WordPress is
hooked up to an email server. Because BitNami
| | 02:32 | doesn't ship with an email server,
| | 02:33 | you have the option here of configuring
mail support from another email provider.
| | 02:38 | So, if you check this box and you can go
and say, I want to get email through Gmail.
| | 02:43 | So if you have a Gmail account, you
can then provide your access info to the
| | 02:48 | Gmail account and then WordPress
will use Gmail to send you email.
| | 02:52 | This is optional, and you don't
really need it, but if you want to test
| | 02:55 | something that has email support in it--
for instance a form--you may want to
| | 03:00 | activate this option.
I'm not going to do that.
| | 03:02 | I'm just going to click Next.
| | 03:04 | And then finally, we can choose
whether or not we want to know more about
| | 03:07 | BitNami Cloud Hosting.
| | 03:09 | This is an extra service
you may want to look into.
| | 03:12 | But I'm going to uncheck that and click Next.
| | 03:15 | And then we get to
install BitNami WordPress stack.
| | 03:18 | Now, the installation of the BitNami
WordPress stack might take a bit of time,
| | 03:24 | so go grab a coffee and come back.
| | 03:28 | When the installation is complete,
we get this page where you can choose to Launch
| | 03:33 | the BitNami WordPress stack
automatically and when you hit Finish, you're taken
| | 03:38 | directly to your browser where you have
the landing page for BitNami, and if you
| | 03:42 | click on Access BitNami WordPress Stack
here, you're taken to your new WordPress
| | 03:47 | site on your computer.
| | 03:49 | Installing WordPress on your
computer with BitNami is simple and requires
| | 03:54 | almost zero configuration.
| | 03:56 | Once it's done, you're ready
to start working with WordPress.
| | Collapse this transcript |
| Running WordPress under BitNami on a Mac| 00:00 | When you finish installing the BitNami
WordPress stack on Mac, you're taken to
| | 00:05 | the BitNami browser window, from which
you can visit your WordPress site.
| | 00:10 | Once BitNami is running, you can access your
local WordPress site in several different ways.
| | 00:14 | As you can see here, I have the BitNami
Welcome page and when I click on the Access
| | 00:20 | BitNami WordPress Stack button,
I'm taken directly to WordPress.
| | 00:23 | As you can see, I have a bit of
an odd web address here. It says
| | 00:27 | 127.0.0.1:8080/WordPress.
| | 00:35 | Beginning here, the 127.0.0.1 is the
IP address, or the local address, of the
| | 00:43 | computer itself. So, if that's confusing
and you can't remember it, you can also
| | 00:49 | type in the localhost
and you get the same thing.
| | 00:51 | It's easier to remember than all those
numbers, but it means the exact same thing.
| | 00:56 | The /WordPress is because inside BitNami,
WordPress lives under a folder named WordPress.
| | 01:02 | Once you are inside WordPress,
you can access it like you would any
| | 01:06 | other WordPress site.
| | 01:07 | You can use it as it is, or you can go
to the backend by typing WP-Admin and
| | 01:13 | this takes you to the user interface,
where we can log in. And here you can create
| | 01:22 | new posts, you can publish new posts,
you can view the posts, and you can work
| | 01:31 | with the site just like any other WordPress.
| | 01:34 | Now, there's one important
thing I want to mention.
| | 01:37 | When you installed the BitNami you
automatically also launched BitNami so that
| | 01:41 | BitNami was active, and it's
running in the background.
| | 01:45 | However, if you logged out after you
install the BitNami or if you turned your
| | 01:50 | computer off and back on again,
chances are the BitNami background process is
| | 01:54 | no longer running, in which case you wouldn't
be able to access WordPress the way I just did.
| | 01:59 | You'll just get a blank page with nothing on it.
| | 02:02 | In that case, you will need to reboot
BitNami, so I'll show you how do that.
| | 02:07 | I'll go to my Finder and I'll find BitNami,
and under BitNami you have the manager-OSX.
| | 02:14 | When you start this application you'll
see the status of your MySQL database
| | 02:20 | and your Apache web server. Both of these
have to be set to Running for BitNami to work.
| | 02:27 | If they're not set to Running--for
example if they both say Stopped--your
| | 02:32 | WordPress site will not work.
See if I reload it now, I get nothing.
| | 02:37 | To make the BitNami work again,
you then need to go and click Start All.
| | 02:42 | Starting and stopping the MySQL
database and the Apache web server can take
| | 02:47 | quite a bit of time in BitNami on Mac,
but it's very important that you do this
| | 02:52 | so that everything works.
| | 02:54 | What's actually happening here is when
you're running WordPress on BitNami you're
| | 02:58 | really running a virtual server
environment on your computer, and of course, you
| | 03:03 | need to turn that virtual server
environment on when you want to do something.
| | 03:07 | Likewise, if you're not using the
BitNami and you think that it's running in
| | 03:11 | the background, you may want to go to
manager-OSX and make sure that you stop
| | 03:16 | both MySQL database and the Apache web
server, so that you're not using extra
| | 03:21 | processes on your computer and basically
wasting energy by running something you're not using.
| | 03:27 | Once you make sure that your MySQL
database and your Apache web server are running,
| | 03:32 | you can turn the Application Manager
off, because this is a background process.
| | 03:36 | So it'll still run even though the
Application Manager itself is off.
| | 03:41 | And then if you need to reboot it at some point--
| | 03:43 | for example, if WordPress is not
working--then you can go back and check the
| | 03:47 | status of the two applications.
| | 03:50 | With BitNami up and running, you have a
fully functional WordPress site on your
| | 03:54 | Mac that you can access via your browser.
| | Collapse this transcript |
| Accessing WordPress from your desktop on a Mac| 00:01 | Just like when you host your WordPress
installation on a web host on the web,
| | 00:05 | you can access the files of WordPress itself
when it's hosted on BitNami on your desktop.
| | 00:11 | To get to WordPress hosted under BitNami, you
need to first find BitNami on your computer.
| | 00:18 | I installed it under the Applications,
under a folder named BitNami, and
| | 00:23 | then you go to folder called apps, the folder
called wordpress, and the folder called htdocs.
| | 00:31 | If you're familiar with WordPress,
you'll see that this is WordPress itself.
| | 00:35 | It consists of three main folders--wp-
admin, wp-content, and wp-includes--and then
| | 00:41 | a series of PHP and other files.
| | 00:44 | This constitutes all of WordPress, and
as you can see, in the setup process the
| | 00:49 | BitNami created this wp-config file for us,
which configures WordPress to talk to BitNami.
| | 00:57 | When you're working with WordPress,
most of your work will happen inside
| | 01:00 | the wp-content folder.
| | 01:02 | This is where you find plugins and your themes.
| | 01:06 | By default, you have two themes
installed with WordPress 3.5, is the twentyeleven
| | 01:11 | theme and the twentytwelve theme.
| | 01:14 | In BitNami, you'll also get a series
of plugins that it recommends you use,
| | 01:18 | things like all-in-one-seo-pack,
contact-form-7, and simple-tags and so on.
| | 01:23 | You can choose whether or not you want to
use these or not, but they are pretty good
| | 01:27 | plugins, which is why they ship with BitNami.
| | 01:30 | So let's take a look at what
happens if I install a new theme.
| | 01:33 | I'll go to my WordPress site here, I'll go
to WordPress toolbar and select Themes,
| | 01:40 | and then I'll go Install
Themes and search for twenty ten.
| | 01:46 | This is another default
theme from WordPress. Here it is.
| | 01:50 | Now, just to remind just remind you,
right now we only have two themes. There's a
| | 01:54 | Twenty ten theme and the Twenty
twelve theme. If I go in here and I install
| | 01:59 | the Twenty ten theme, the Twenty ten theme
gets downloaded into my computer and installed.
| | 02:05 | And now if I go back to go back to my
folder, you'll see under the themes folder,
| | 02:09 | we now have twentyeleven,
twentyten, and twentytwelve.
| | 02:13 | So even though I've installed it
inside WordPress in my browser, what I was
| | 02:18 | really doing was downloading that
content into the themes folder inside BitNami.
| | 02:23 | That also means if you find a theme
online or if you build your own theme, and
| | 02:28 | you want it add it to WordPress
when you run BitNami, what you are
| | 02:31 | actually doing is putting it in a
folder and placing it under the themes
| | 02:35 | folder inside BitNami.
| | 02:37 | That way the new theme that you
installed in this folder becomes automatically
| | 02:42 | accessible for WordPress so
you activate it within WordPress.
| | 02:45 | The same goes if you want to
remove a theme or a plugin.
| | 02:49 | Let's say for instance I don't want to
have contact-form-7 as a plugin inside
| | 02:54 | my WordPress installation.
| | 02:56 | I can go to my admin panel, go to
Plugins, and Installed plugins. Then I can
| | 03:01 | find contact-form-7 here and click Delete.
| | 03:04 | Yes, delete these files and data.
| | 03:09 | And when you go back to your folder,
you'll see that contact-form-7 is now gone.
| | 03:14 | And just like with the themes, if you
want to add a new plugin, you can either
| | 03:18 | do it from the WordPress admin
interface or you can simply find a plugin and
| | 03:23 | place it in the plugins folder.
| | 03:26 | As you can see, the great thing about
having a local installation of WordPress
| | 03:30 | is that you have full access to
WordPress at the click of a button.
| | 03:34 | That means you can build your child
themes, your themes, or your plugins and do
| | 03:38 | whatever experiments you want in a
safe environment that doesn't require web
| | 03:42 | access. Pretty cool, eh?
| | Collapse this transcript |
|
|
4. Using BitNamiTroubleshooting| 00:01 | As with a WordPress installation on an
external web host, chances are you will run
| | 00:06 | into issues with your local
version of WordPress running on BitNami.
| | 00:10 | When that happens it's good to know how to
troubleshoot the situation and find a solution.
| | 00:15 | Now, don't worry. I am not saying that
BitNami will crash all the time or that
| | 00:20 | WordPress will crash all the time.
| | 00:22 | What I'm saying is that when things go
wrong--and eventually they will go wrong;
| | 00:27 | it's just going to happen--it's a good
idea to know what usually goes wrong and
| | 00:32 | how to fix those problems.
| | 00:34 | When WordPress runs normally, you'll be able
to access WordPress by going to the front end.
| | 00:40 | You can also go to the backend, either
by navigating to it through the WordPress
| | 00:45 | toolbar if you've logged in or if you are
not, by going to WP-Admin and logging in.
| | 00:51 | But what happens when
you can't access WordPress.
| | 00:55 | You've seen one case of that earlier in
the course when we turned off the servers
| | 01:00 | and that, to be honest with you,
is the most normal situation.
| | 01:03 | In some cases, BitNami will turned off
either one or both of the servers, either
| | 01:08 | on the database server or the web
server, or both, by accident or because of
| | 01:13 | something else that's happening on the computer.
| | 01:15 | In those cases the first thing we
want to is go to the Start menu, go to
| | 01:20 | Programs, find BitNami WordPress Stack,
open the Manager Tools, and make sure
| | 01:26 | that both the Apache web server
and MySQL database are running.
| | 01:30 | If they're not, try stopping
both and then restarting both.
| | 01:34 | If that doesn't work, there's probably
something else going on on your computer
| | 01:38 | that's blocking it, in which case the
easiest thing to do is usually just to
| | 01:42 | restart your computer and whatever
thing was going on on your computer will
| | 01:46 | usually clear itself out.
| | 01:48 | There are some rare cases in which you
installed other software on your Windows
| | 01:52 | computer that will conflict with the web server.
| | 01:55 | This is usually stuff that has to do
with IIS, which sounds complicated,
| | 01:59 | but you'll be warned.
| | 02:01 | If that happens and BitNami stops
working, the best thing you can do is actually
| | 02:05 | uninstall BitNami and then reinstall it.
| | 02:08 | If you're going to do that though, you
have to watch the next movie, where I
| | 02:12 | show you how to uninstall it without
deleting all your content in the process.
| | 02:16 | So that's one thing that can go wrong.
| | 02:18 | Another thing that often happens in
WordPress is that WordPress starts breaking
| | 02:22 | for some reason, and the most common
way WordPress breaks is when you can't
| | 02:27 | access WordPress at all.
| | 02:28 | Now, I'll show you exactly what that looks like.
| | 02:30 | I am going to go to WordPress here, and
I am going to break it on purpose, so
| | 02:37 | I'll go into the WP config file,
which is the file that has configuration
| | 02:40 | information about how
WordPress talks to the database.
| | 02:43 | I'll open it in my notepad, and you can
see here you have all the information
| | 02:49 | that lets WordPress talk to the database.
| | 02:51 | You have the database name.
| | 02:54 | You have the username for database,
the password for the database, and also
| | 02:58 | hostname for the database. This is all
information that BitNami inserted when
| | 03:03 | you install BitNami, and this is what
helps WordPress talk to MySQL database.
| | 03:09 | If I go in here and I break the passwords--
| | 03:11 | I will cut the password out just for
now--and save this file, and I try to
| | 03:16 | reload WordPress, you get a very typical message:
| | 03:20 | Error establishing a database connection.
| | 03:22 | This is a common error that you see
with WordPress. In some cases, you don't get
| | 03:26 | this message; you get a much more
ominous black text of the top that just says
| | 03:30 | "Database Error" or something like that.
| | 03:33 | In almost every case when we see these
errors it's because something got messed
| | 03:37 | up in the WP config file, and going
back to that file and checking to see that
| | 03:42 | the database name is correct, that the
username is correct, and the password is
| | 03:47 | correct will make all the difference.
| | 03:50 | Now that I've restore the password, I can
reload the page and everything works fine.
| | 03:54 | Another thing that sometimes happens is,
if you're working on a theme for example
| | 03:59 | or you installed a new plugin,
WordPress actually break in the process.
| | 04:04 | When that happens what you need to do
is go to the WordPress folder, navigate
| | 04:10 | to WP content, and either themes or plugins--
whichever one you just did that broke the site--
| | 04:16 | and either rename the folder by simply
appending some extra information there--
| | 04:21 | say like broken by the end of it--
or by deleting the folder altogether.
| | 04:26 | By doing this you will confuse
WordPress enough that WordPress will get back
| | 04:30 | up and running again, and it will
actually tell you something like 2012
| | 04:34 | broken is broken, or there's something
wrong with this file, you need to delete
| | 04:39 | it, and then you can work on it.
And this is kind of why you have WordPress
| | 04:43 | installed on your computer.
| | 04:44 | You can troubleshoot very easily because
you have direct access to all your files.
| | 04:51 | Most problems with BitNami and
WordPress are caused by incorrect configurations
| | 04:56 | or that the servers are turned off.
| | 04:58 | Only rarely do you have to uninstall
and reinstall the application. When that
| | 05:02 | happens you should follow the
procedure explained in the next movie.
| | Collapse this transcript |
| Uninstalling BitNami on Windows| 00:00 | There are many reasons why you
may want to uninstall BitNami.
| | 00:04 | It could be because it's not working,
or because you're not using it, or a
| | 00:08 | myriad of other reasons.
| | 00:10 | If you plan to uninstall BitNami but
you want to keep the option open to use
| | 00:14 | WordPress under BitNami again, without
having to reconfigure or repopulate the
| | 00:18 | site, follow the following procedure.
| | 00:21 | That way you get BitNami off your
computer without losing all your work in process.
| | 00:27 | What I've done here is I've created a
new post. It's just a simple post here.
| | 00:31 | It's titled as Penguins!
| | 00:32 | It has a picture of penguins and some text.
| | 00:35 | As you are working with WordPress on
your computer, you will likely fill out
| | 00:39 | WordPress with this type of content.
| | 00:41 | You have pictures, you have
posts, you have other content.
| | 00:44 | And if you want to install BitNami,
you have to make sure that you keep that
| | 00:48 | content on your computer, so that in
the future, if you want to reinstall
| | 00:52 | BitNami or if you're uninstalling it because
it wasn't working and you want to reinstall it,
| | 00:57 | you don't have to repopulate
your site at the same time.
| | 01:00 | To do this, it's important to
understand how WordPress works.
| | 01:04 | You have seen before that WordPress
consists of some files that are located
| | 01:08 | inside BitNami itself.
| | 01:10 | You have the folders and have a bunch of
files. This is WordPress the application.
| | 01:15 | What WordPress the application does is
it talks to a database, and it's in the
| | 01:20 | database you have all the text,
| | 01:22 | you have all the links to all the
images, and you have all the other
| | 01:26 | information about the sites, such as
the site title and your username and
| | 01:29 | password and all that.
| | 01:31 | So, in addition to saving contents
that you have added to WordPress, you also
| | 01:36 | have to save a backup of your
database. But first things first:
| | 01:40 | we want to make sure that any
changes we have made to themes and plugins,
| | 01:44 | and also any files are uploaded, are
retained on the computer, even though
| | 01:49 | we're installing BitNami.
| | 01:50 | What I am going to do is grab the
wp-content folder and make a backup of it.
| | 01:56 | So, I'll open a separate window here,
I'll go to Documents, and then I'll create
| | 02:06 | a new folder, call it WPbackup, and in
that folder I am simply going to copy
| | 02:12 | over the wp-content folder.
| | 02:16 | Now I have a backup copy of
everything that matters inside my
| | 02:19 | WordPress installation.
| | 02:21 | I have my plugins, I have my themes,
and I also have my uploads, which are the
| | 02:26 | files I have added to my site, like
images and audio files or documents or
| | 02:30 | whatever else I've uploaded.
| | 02:32 | The next thing I need to do is
make a backup of my database.
| | 02:35 | We do that by using phpMyAdmin.
| | 02:39 | That's software that gives you
access to and helps you configure the
| | 02:43 | database inside BitNami.
| | 02:44 | To get to PhpMyAdmin, we simply go to
localhosts/phpmyadmin. Here we have to log in.
| | 02:54 | Your username is going to be root, and
your password is the same password you
| | 02:59 | used to log in to WordPress.
| | 03:01 | When we are inside phpMyAdmin
you'll see we have a database here called
| | 03:07 | bitnami_wordpress.
| | 03:08 | So I'll click on that database.
| | 03:11 | Here you see we have lots of information.
| | 03:13 | Now I want to export this information
into a file so that I have a backup.
| | 03:18 | So, I'll select Export from the tabs here.
| | 03:22 | Click Custom to get a custom export.
| | 03:24 | I'll scroll down. Make sure that the
Output is sent to Save Output to a file so
| | 03:29 | that I have an actual file I can use.
| | 03:31 | I'll scroll further down, check the
Add DROP TABLE option, and scroll to the
| | 03:38 | bottom, and click Go.
| | 03:40 | This produces a SQL file
I can access and place inside my backup.
| | 03:47 | So, I am going to go to the WPbackup
folder and simply drag and drop file over.
| | 03:52 | Now I know I have a complete backup of
everything I need to restore my WordPress site.
| | 03:58 | I have a wp-content folder with
all my files, and I have the entire
| | 04:02 | database backed up here.
| | 04:04 | Now I can install BitNami. So, I'll go
to the Start menu, All Programs, BitNami
| | 04:11 | WordPress Stack, and select
Uninstall BitNami WordPress Stack.
| | 04:18 | The Uninstaller asks me if I want to
uninstall the WordPress. I'll say Yes, and
| | 04:23 | the Uninstall process begins.
| | 04:27 | When the Uninstallation is completed I
can click OK, and when I go back to my
| | 04:32 | browser now, you'll see that I can no
longer access phpMyAdmin, and if I tried
| | 04:38 | accessing WordPress, you'll see
that WordPress is gone as well.
| | 04:44 | Now I want to reinstall BitNami into Windows
so that I can re-access all my old content.
| | 04:51 | Now, before I do that, I want to
show you something interesting.
| | 04:54 | Depending on your setup, it's quite
possible that BitNami did not delete
| | 04:58 | WordPress itself. This is a feature
that only happens on Windows.
| | 05:02 | You can see what happens if you go to
the Documents folder: you'll see I still have
| | 05:06 | the BitNami folder, and under that we
have Apps, WordPress, and then nothing else.
| | 05:13 | But we still have these folders, and
that's because for whatever reason, the
| | 05:18 | uninstaller in BitNami sometimes does
weird things and leaves folders open.
| | 05:23 | So, before I install WordPress again,
I need to go back and delete the BitNami
| | 05:28 | folder so that I can make a new
BitNami folder and install BitNami into it.
| | 05:32 | So, I am going to delete this folder
and all its contents, and because I have a
| | 05:39 | WPbackup folder already, I have all my
content so I don't have to be worried
| | 05:43 | about doing that. And now
I can reinstall BitNami.
| | 05:47 | So, I'll go to Downloads and run my
BitNami installer. And here I'll use the
| | 05:55 | exact same information I did last time.
| | 05:58 | So, I'm basically
duplicating my original install.
| | 06:01 | When the install is completed I am
going to unchecked the Launch Bitnami
| | 06:05 | WordPress Stack button, click Finish to
finish the installation, and then I am going
| | 06:10 | to navigate back to Documents/
BitNami/apps/wordpress/htdocs.
| | 06:18 | And from here I am going to delete the
wp-content folder completely, and then I am
| | 06:24 | going to my backup, grab the wp-
content folder from my backup, and copy it in.
| | 06:33 | Now I've restored all my original
plugins, themes, and any uploads I had in
| | 06:38 | the original site.
| | 06:40 | That means all that's left is to
reinitiate the original database.
| | 06:44 | I have it in the file over here, so
I need to go back into my browser, to
| | 06:50 | localhost/phpmyadmin, log back in, root,
and my password, find that database,
| | 07:02 | BitNami WordPress, and then I'll click
on the Import tab, choose a file, navigate
| | 07:11 | to my backup file, scroll down, and click Go.
| | 07:18 | Now all the content from my original
database is being imported into the new database,
| | 07:25 | and when I now go to localhost/
wordpress, if everything worked correctly, you
| | 07:32 | should now see your WordPress site
title and all your content, including any
| | 07:36 | upholds appear in your site.
| | 07:38 | So, even though you have now installed
the new version of WordPress and a new
| | 07:43 | installation of BitNami, you
still have the old content.
| | 07:47 | By following the correct procedure
and exporting your database and the
| | 07:51 | wp-content folder before uninstalling
BitNami, you ensure that if you ever want
| | 07:56 | to reinstall BitNami and keep
using your original content later,
| | 08:00 | you can do so without
losing anything in the future.
| | 08:04 | Now you know how to install, set up, and
use WordPress on your Windows computer
| | 08:08 | with BitNami. All that's left
to say is, go forth and code.
| | Collapse this transcript |
| Uninstalling BitNami on Mac| 00:01 | There are many reasons why you
may want to uninstall BitNami.
| | 00:04 | It could be because it's not working,
or because you're not using it, or a
| | 00:09 | myriad of other reasons.
| | 00:10 | If you plan to uninstall Bitnami but
you want to keep the option open to use
| | 00:15 | WordPress under BitNami again, without having
to reconfigure and repopulate the site,
| | 00:20 | follow the following procedure. That way
you get BitNami of your computer without
| | 00:25 | losing all your work in the process.
| | 00:27 | Before we uninstall Bitnami, it's
important that you understand how WordPress works.
| | 00:32 | WordPress is actually two components.
| | 00:35 | You have WordPress itself, which
is all the files inside WordPress.
| | 00:39 | You find them under the BitNami folder
and then under apps/wordpress/htdocs.
| | 00:45 | So, this is WordPress itself:
these files and these folders.
| | 00:50 | Then, in addition, there is a database
that contains all the information. So any
| | 00:54 | time you put in a new post--let's say
this post--what you're actually doing is
| | 00:58 | making an entry in a database.
| | 01:00 | And just as a new post is a new entry in
the database all the information on your
| | 01:05 | site--like the site title, your username
and password, and all this other information--
| | 01:10 | are actually entries in a database.
| | 01:13 | So, before you uninstall BitNami, it's
important to your both retain the files
| | 01:17 | that you are uploaded to WordPress--that
is your themes, your plugins, and any
| | 01:22 | files you uploaded into WordPress like
images--and you also have to retain the
| | 01:27 | database itself so you
can restore the database.
| | 01:31 | The first thing we should do is
make a backup of our wp-content folder.
| | 01:35 | The wp-content folder is the folder
that contains the plugins and the themes
| | 01:41 | and any files you uploaded
into a post or a page, like images.
| | 01:45 | So I'll open a new Finder window, I'll
go to my Documents, go to Sites, and then
| | 01:52 | create a new folder, I'll call this one
WPbackup, and then I'll make a copy of the
| | 02:01 | wp-content folder and place
it inside the WPbackup folder.
| | 02:06 | So, I'll just grab this,
copy it, and paste it in here.
| | 02:12 | So, now I have a complete copy of all
my plugins, all my themes, and any
| | 02:18 | uploads I've made into WordPress.
| | 02:21 | Now I need to make a
backup of the database as well.
| | 02:23 | To access the database, we are going to
use an application called phpMyAdmin, and
| | 02:28 | it's accessible by going to
localhost:8080 and then changing WordPress to
| | 02:34 | phpmyadmin, so phpmyadmin.
| | 02:40 | Here your username is root, and your
the password is the same password that
| | 02:46 | you used to access WordPress, so it's the one you
entered when you installed BitNami to begin with.
| | 02:51 | Click Go and we access to PhpMyAdmin.
From here you pick the WordPress database,
| | 02:57 | which is called BitNami_WordPress,
| | 02:59 | and then you go to Export to export, you
select Custom as the Export method, scroll
| | 03:07 | down, make sure that Save output to a
file is checked, scroll further down, make
| | 03:14 | sure that Add DROP TABLE is
checked, and then click Go.
| | 03:20 | This creates a file that's called a SQL file.
| | 03:23 | This is a dump of the entire database.
| | 03:25 | I'll open this in Finder and
then drag it into my WPbackup folder,
| | 03:30 | so that now I have both a backup of my
database and of all the content inside WordPress.
| | 03:38 | Now I can uninstall Bitnami
without losing any content.
| | 03:42 | To uninstall BitNami, I'll go to
Applications, I'll find Bitnami, and then I'll
| | 03:47 | used the BitNami Uninstaller. It's down here.
| | 03:51 | I'll double-click on it.
| | 03:53 | The application asks if I want to
uninstall the BitNami WordPress Stack and
| | 03:57 | all of its modules.
| | 03:58 | I'll say Yes and when I click the Uninstall
button, BitNami gets uninstalled from a computer.
| | 04:05 | This may take some time, and when the
uninstallation is completed you get this
| | 04:10 | message: Uninstallation Completed.
| | 04:12 | Click OK. Everything shuts down.
| | 04:15 | And now if you try to access
WordPress again, you'll see we have nothing.
| | 04:21 | But what if I want to resurrect my WordPress
site by reinstalling BitNami? I can do that too.
| | 04:28 | I'll go back to my Downloads, find my BitNami
Installer, and run it just like I did before.
| | 04:40 | When the installation is complete,
I'll leave Launch BitNami WordPress Stack
| | 04:44 | checked, and now I'll click Finish,
and this will Launch BitNami for me.
| | 04:49 | But before I go to WordPress, I now
need to bring back all that content I
| | 04:54 | created before, by reimporting the database
and also placing my backup files into BitNami.
| | 05:01 | So, first I'll go back to Finder,
close the Installer here, and then I'll
| | 05:06 | navigate to the BitNami. So I'll go
to applications/Bitnami, go to apps/
| | 05:13 | WordPress/htdocs.
| | 05:16 | And here I have a new version of the wp-
content folder, so this is what BitNami
| | 05:21 | installed from the fresh version of WordPress.
| | 05:23 | I am going to delete this folder, so
I'll right-click on it and select Move to
| | 05:28 | Trash, and then I'll go to my WPbackup
folder, copy the wp-content folder, and
| | 05:36 | paste it into my new installation of WordPress.
| | 05:40 | That way I have my original wp-content
folder with all my themes, my plugins, and
| | 05:46 | any files I've uploaded to my site,
and I can work with the original files
| | 05:51 | rather than the stock
files that come from WordPress.
| | 05:54 | Now I also need to import my database.
| | 05:57 | I have the backup of my database here,
in the SQL file. So now I have to
| | 06:01 | back to my browser, go to localhost, and
go through phpMyAdminHP. I'll have to log in
| | 06:08 | again, and it's the same login
information as before: root and then the password
| | 06:12 | you set when you installed BitNami.
| | 06:15 | Click Go and here you see we have
that same database as we have when we
| | 06:19 | exported the database.
| | 06:20 | We can go into that database by
clicking on it. And you see it's already
| | 06:24 | populated, but right now the database
is populated with just the install info.
| | 06:30 | So, I need to import the info from my backup,
| | 06:32 | so I'll click on the Import tab here,
choose File, and navigate to the file in
| | 06:39 | my WPbackup folder.
| | 06:42 | It's right here, BitNami WordPress SQL
file. Click Open, scroll down, and click
| | 06:47 | Go, and this imports all the content from
my original database into the new database.
| | 06:53 | Now, to make sure everything works, I
can go back to my Bitnami WordPress stack,
| | 06:58 | go to localhost:8080/wordpress, or I
can just click on this link here, and this
| | 07:09 | takes me to my WordPress site, and
the WordPress site contains my original
| | 07:13 | content. You see here is that post I
created and if I had images, they would
| | 07:18 | appear too, and if I had
custom themes, they would appear too.
| | 07:21 | By following the correct procedure and
exporting your wp-content folder and your
| | 07:27 | database before uninstalling BitNami,
you ensure that if you want to reinstall
| | 07:31 | BitNami and keep using your
original content later, you can do so without
| | 07:36 | losing any of the content in the future.
| | Collapse this transcript |
|
|
ConclusionNext steps| 00:00 | Now that you have WordPress running on
your computer, using BitNami, it's time to
| | 00:05 | delve deeper into the topic of WordPress.
| | 00:08 | If you haven't really used WordPress
before, I encouraging you to take the
| | 00:11 | WordPress Essential Training course right
here in the lynda.com online training library.
| | 00:16 | But that's not all we have to offer.
| | 00:18 | If you go to lynda.com and then
your put a forward slash and type in MOR10--
| | 00:24 | Morten, because that's my name--
| | 00:27 | you'll find a list of all my courses on
WordPress that are in the lynda.com Library.
| | 00:33 | We have everything from Essential
Training to how to build child themes, to
| | 00:37 | how to use different themes, and way
beyond that, to very advanced topics. And I'm
| | 00:43 | not the only author in the
lynda.com Library to talk about WordPress.
| | 00:47 | There are lots of extra courses on
everything from security to multisites to
| | 00:52 | other topics, that you can really
invest some time in and learn how to use
| | 00:56 | WordPress to make professional websites.
| | 00:59 | To get more information about
WordPress itself, you should go
| | 01:03 | check out wordpress.org.
| | 01:05 | This is the website that has all the
information about WordPress the application.
| | 01:09 | And here we find a lot of cool
stuff, like themes and plugins.
| | 01:14 | You can also find lots information in the
forums, and most importantly, if you are
| | 01:19 | developer, you'll find the WordPress Codex.
| | 01:22 | This is where you find information about how
WordPress works and what you can do with it.
| | 01:27 | Every piece of code that's in
WordPress is documented in the WordPress Codex,
| | 01:31 | and this is a website I pretty much
live on, because anytime I need to do
| | 01:36 | something advanced, I can always find
information about how to do it in the WordPress Codex.
| | 01:42 | Now, all that's left to say is, good
luck, build something awesome, and come
| | 01:46 | back and learn more.
| | Collapse this transcript |
|
|