Skip to content

072 Setup Local Development Environment with Bitnami

Amigo edited this page Oct 3, 2019 · 9 revisions

SETUP LOCAL DEVELOPMENT ENVIRONMENT WITH BITNAMI

Bitnami - Distributor Of Images

00:00:00 (Click on these time links to see Youtube video)

I want to give you a quick tutorial on how to use Bitnami on your local development environment. Bitnami is a very well known Distributor of images. They have association with Amazon. They know what they are doing. For local developing environment I found them most convenient. But then again that is if you are not afraid of command line which you shouldn't be. Command line is an amazing world for you to make use of as a developer. It'll be good for you to just jump in.

Installing Bitnami Joomla Stack

00:00:43

The first thing I did, google Bitnami Joomla together and you'll see there is a download Joomla Bitnami and Bitnami Joomla installer and how to install Bitnami Joomla. Even on Joomla a documentation installing, Joomla using Bitnami, Joomla. We can open the link. 00:01:13 We'll see that it has a recommended stack for Windows, Linux and Mac. You will get a little setup Bitnami Joomla Stack tutorial. I t will take you through the process of installation, helps you select the place, adds information and then you are done. 00:01:42 It does what other similar components do, but I have experience it is targeting Joomla, it really does and places everything. You could click on Bitnami website link or you can click there at the bottom where it says Bitnami.org stack Joomla. That's the same as the first one. You could also click on this result. I should download it and run it but because I'm on a Linux environment you would click on WIN/MAC/LINUX. 00:02:26 Select the environment which you're in. Click Download. I'm waiting for the download to start. Save the file to your local system. Run the file.

Download - Using Windows/Mac/Linux

00:02:54

If you are using Microsoft, they have executable (exe) file, you can double click on it and that should get you going. The same goes for Mac. You can double click on the file and it will run you through tutorial. I'm using Linux which is a little bit different because it using a run file and you need to start it from the command line. As you can see 00:03:35 I have downloaded it, and it already have Joomla 3.8.11. It's always up-to-date. If you're on a Linux system you would open in terminal, do a quick ls la and I will see the file is not executable. We'll make it executable. They will be sudo chomd +x and the file name, enter. It'll ask you for your password, and type it in. Wrong command, the typo, it should be chmod. 00:04:23 The file is executable. Check it out its sl is correct. Once you've done that you can close the command line. It was to run chmod command over here to make the file executable. Which is a safe and making sure that it runs correctly. 00:04:53 You could double click on the file in your file system. It should start a Bitnami tutorial. Select language, Welcome to Bitnami Joomla Stack, and yes we want all of this installed. We are going to set /home/llewellyn/joomla_bitnami 00:05:36 and click next. You can give some defaults. I'm going to add a simple password, click next. It's asking for MySQL Server port. I know that I've already have MySQL installed. 3 0 7 should be OK. Giving it a name. 00:06:10 I'm not going to do email or try and link up with Bitnami's Cloud. We're done.

Run The Installer - PHP, MySQL, Joomla With Its Database

00:06:20

It's going to run the installer and deploy everything you need. The PHP, the MySQL, Joomla with its Database. It's really setting everything up for you. If you are going to do local development, I suggest using this path because it takes care of everything for you. Do it in a way that it doesn't affect your already existing PHP, and SQL and everything else. It packages it into a folder which 00:06:58 I'm using. We're almost there. It is doing the MySQL, Database, creating the databases. This can take long depending on your systems resources. Removing the things that it doesn't need. It's setting up and uninstaller script. If you didn't like this, you could then undo it. 00:07:46 We are done. Now you can launch the Bitnami Joomla Stack. Click finish. There we go. We have it installed.

Access Joomla - Joomla Website - Administrator - Login

00:08:10

To access the Joomla sign, I'm going to use my Local IP, and add Joomla and there is our Joomla website. To access the Administrator, there we go. To login they have default passwords and stuff set. Basically the one that you typed in during the installation. And there we go. We want to have JCB. We install the web tab and we type JCB enter. It comes up, click on it and install. It will grab the master branch which is in sync with the latest release. 00:09:00 Install. It's also not counting these downloads. That's one of the reasons, we don't have any idea how many are using JCB at the moment.

JCB Installed - Grab Packages - Importing Packages

00:09:13

Once it's installed you can go and open JCB. We are now on a little screen issue, I'm downsize a bit. Let's grab a demo package by going to install JCB packages. There is VDM Packages and JCB Community Packages. We can grab any of these. Take the Hello World and get the package. As you can see I've done nothing. I've deployed Bitnami, I haven't touched any other feature of PHP or anything else. It grabs the package and it validates the checksum for us, we force it to update. Click continue. 00:10:13 It's importing the Hello World component. And there we go, it's done. W quickly compile Hello World and install. Hello World is there and it is working.

Doing Everything That Is Expected

00:10:40

We can add a greeting, and it's doing everything that is expected. We can also check the front-end, Main menu. Change the main menu by using the Hello World greetings. Save and close. Just before we do that, we can go back to Hello World, we open the options, check out the permissions. We search for Site. We will see there is two and they're already set to allowed Greetings. If not you change them to allowed for the public. 00:11:14 That is the the two areas you would like. You can click Sign. There is some text you will see it. We have not given the public the edit rights. It will say that it's not available, but it can check some text and go back to home. We will see that the Hello World tutorial is functioning on our Bitnami within 11 minutes. 00:11:46

That was a quick demonstration of setting up a local developing environment with Bitnami. The reason why I take this path is primarily because of what I'll show you next. Here you have the Bitnami folder, remember we've typed it in. There's your Apache. There is all the files. If you want to go into the apps folder then into the Joomla folder 00:12:17 and into the htDocs folder. Here is your whole Joomla website and you can you can open and go in and work on your components, edit its files. This is really the biggest reason I want to be able to easily access the files and work with them. It is very doable here.

New Feature - phpMyAdmin

00:12:40

The other feature which just comes out of the box by default is if you go back to Joomla Bitnami, You'll see in the apps folder, you can see that it have the phpmyadmin installed. You could type in the URL phpmyadmin and be right there able to access phpMyAdmin and check out its databases. This all Bitnami did out of the box without real complications. That's the reason I like using bitnami on my local developing environment. They are quite quick with the updates. If you go back to that folder, you'll see that it has uninstall and a manage files. 00:13:39 You could run this one to uninstall and you can run this one to manage the environment. Which does check whether the server is up, the configurations and Civil events and stuff like that. You can stop all. The other one which I like is that you can click Uninstall. Do you want to uninstall Bitnami Joomla stack and all it's models, yes. It starts to uninstall everything, removes everything. You could run this, do some work. Save your components, export your JCB packages and then complete this thing and 00:14:28 move on. But it's dangerous, do keep in mind it really removes everything.

Clone this wiki locally