This is the 1st in a 5 part series on Creating a Local Installation of WordPress using Bitnami and then creating a Netbeans Project out of it. In this first part we download and install the WordPress stack for Bitnami. We go step by step through the installation process using a PC and Windows 7.
How to Create a Local Installation of WordPress – Part 2 – Adjust Windows Permissions
How to Create a Local Installation of WordPress – Part 3 – Modify the php.ini file
How to Create a Local Installation of WordPress – Part 4 – Create a NetBeans Project
How to Create a Local Installation of WordPress – Part 5 – Enable Pretty Permalinks
Let’s talk about how to make a local installation of your WordPress website using Bitnami and the how to make it into a NetBeans project. You know, I’ve read a couple of requests lately on how to set up WordPress as a NetBeans project and months ago, we did a thing on how to set up a Bitnami and stuff like that but the recording failed. And so, it never made its way on to the site and now what I would like to do is go through that process here and do an installation of Bitnami, install WordPress locally and then convert it into a NetBeans project. And that’s probably going to take about 20 minutes so if you’re interested in watching that then by all means, stick around.
Okay so, how to create a local installation of WordPress as a NetBeans project with Bitnami and the reason you do this is of course is because you’d use it for testing the customization you know, before you edit your actual site. And so, step 1 of that is to install your local server. You know, WordPress isn’t going to run without Apache, MySQL and php. And so you need some version of that. Now I’m going to show you how to do that with Bitnami because it’s dead easy. But it does have limitations. That is you could only create one site for each installation of Bitnami so if you want to have multiple sites as local installs, you’d have to have multiple installations of Bitnami. If you used WAMP or MAMP or ZAMP you know, one of the other Apache MySQL php server stacks, those ones allow you to have you know, unlimited different kinds of sites that would use that. But Bitnami is specifically designed to be very easy to set up and that ease comes with that restriction. So you can only create one installation but it’s dead easy.
So let’s go to bitnami.org, let’s see back to…I’m going to find the right… there we go. Let’s go back to bitnami.org and we’ll go to downloads. It takes you to this Bitnami stacks page and what you want is the WordPress stack. So if you just select WordPress here, it takes you to the WordPress stack page and this will work on you know, a couple of different version of the Mac. It’ll work on a Linux install and it’ll work on a Windows and you have a couple of different versions. One of those versions if the full boat installation and that’s what you want. Theoretically, you can have essentially a vanilla Bitnami stack that then you add this module to but that violates our slam dunk easy system so we’re not going to show that. So you just go ahead and download this and when you finish downloading it you go on to the installation.
So I’ve already downloaded this so I’m just going to open up my download directory here and find it and I’m going to install it from there rather than taking the time. Okay so there’s a Bitnami WordPress 3.1.2 installer. So you just double click on that, run it, say yes. Hopefully, I’m not stymied by failure. Okay so now we say next. Okay we definitely want to include php myAdmin so it’s going to install WordPress and php myAdmin and now, it wants a folder to be installed in.
Now the person who asked me the question on how to do this asked how to do this so that you can put it on a flash drive. So you can easily, you can put this on any folder you want and in this case, you could select the flash drive to install it in. I’m just going to let it go to its default place and say there…oops, pardon me. I’m just going to let it go to its default place and say next. Although you can see that it says, “Select a folder that’s not empty. Please select a different folder.” And that’s because I actually have already 3 Bitnami stacks installed. And so, I’m just going to add a 4 to this. It doesn’t really matter what the name is but I’m going to add a 4 to that Bitnami stack so I can have my 4th one installed. And then we add all of our WordPress user information that we want to use so this is my username, password and then say next to that.
And now it’s asking for an Apache web server port. Now if you use Skype like I do, your port 80 can be used by Apache and so what I do is I just choose another server port. The server port needs to be unique so if you go 85 for example… actually, I’m going to say 84 for the 4th installation of Bitnami. So I’m going to say Apache web server port 84 and then the MySQL server port you know, because it’s a separate installation of MySQL server, it can’t have the same name and so, if we say next for example, it says you know, I don’t have permission to buy in the port or the port’s already taken by another application… so I’m just going to choose another port. I’m going to put a 4 in the place of that 0 so 3346 and then I’m going to give it a blog name and we’re going to call this Live Answers. And in this case, it has taken the IP address that my network here has given this computer as the host name and that’s just fine. Let’s go ahead and say next. I don’t care about any more cloud hosting so we’ll say next to that and then next for set up. It’s going to take a few minutes for this to set up. In fact in a moment, we just did the host name but in a moment, it’s going to switch to… it’s going to ask us about various firewalls. This may be applicable only to Windows 7. I don’t know if you get dialogs that ask you whether or not your new installation should have access you know, probably the best thing to do is just say yes but while we watch this thing do its thing… it is a big set of files that needs to be expanded.
And actually, once this part is finished, you’ll actually have WordPress installed but then there are a few things that you really want to change in order to make the installation really useful. So it’s those changes that we’re going to you know, take up the next steps.
Now if you’ve ever done or seen or read about or tried to figure out a WAMP or ZAMP or MAMP local installation system, you will be amazed at how simple this is in comparison because pretty much all the configuration is done for you. So we’re just going to wait here to do its thing. It is quite handy though to actually have a WordPress NetBeans project because you can have Thesis you know, installed on it and you can do your own customization files installed on it and then you can use its inbuilt system for searching for stuff. So for example, if you’ve got a custom CSS designation…say you’ve got like mine. I’ve got 2500 lines of CSS in my custom CSS file. Well you know, it takes a long time to search through and find that stuff and in fact, it’s so much easier for me then to just enter a keyword into a search function.
So here’s our first firewall alert for MySQL. You definitely want to allow access for that. It’s very nice to be able to enter a keyword and have NetBeans show me where the CSS style is on the sheet. So I can just jump directly to it without having to search through 2500 lines you know, visually. It also turns out that if you do any extended programming, it’s also quite nice to check for variable names and it will tell you whether or not you have conflicts in your function names and stuff like that. It also in fact, will do auto completion for WordPress functions as well, as long as it’s set up as a project.
Notice here that it’s installing Apache as a Windows service and it was creating it as a WordPress Apache – 3. That was something I was going to play on to but it’s okay. We’ll find it easily enough when we need to. There’s one other thing we have to do is… okay so here we are. We want to go ahead and launch this so we just hit finish. And here’s our little introductory page and then if we go to Access to Bitnami WordPress stack, here we have our WordPress site installed.
Now look up at the URL. This URL is going to be important and it’s going to be different for everybody, right? This happens to be my URL because this is the number that’s been assigned to my computer from my server and 84 is the port that I chose to install this on. So this is my URL and we need to keep track of that URL here for a couple of reasons here a moment. But you know, this is just an ordinary WordPress site that we can log in to using a password that we did. And you can actually just you know, let it go here. You don’t have to do anything else. You can go ahead and start playing around with your WordPress site but there are some things I think that you should do in order to make it work better. So…