Getting a local install of Drupal on your Nexus/Android device using Bit Web Server

I wanted to get a Drupal local on a tablet. My original thought was to get a Windows tablet, wipe it, install some Linux flavor, and go from there. However, that seemed like a big ole pain. Conveniently, around that time I learned about Bit Web Server for Android, & decided to go that direction instead.

Got a super sweet deal on a 2nd gen Nexus 7, and here’s what ended up working for me:

1. Downloaded Bit Web Server
Super easy to set up. Note: your localhost files will live in storage/sdcard0/www. If you’re on a 2nd gen Nexus 7 at least. I’m assuming other Android devices would be similar. However, as this is the first Android device I’ve ever owned, you might not wish to listen to me!

2. Downloaded Astro File Manager
You’ll need to navigate your file structure somehow, after all. There’s probably a decent selection of file managers out there, and I’m sure any of them would work fine. However, my brief and frantic research led me to this one, and it’s working out quite nice for me thus far.

3. Download AWD
This is an IDE for Android. Seems like the most recommended one (based, again, on my brief and frantic research). I ended up dropping the $5 for the paid version, so I could have git capabilities, among other things. Which brings us to…

4. Grab some Drupal files
I tried cloning this from git at first. (Here’s the instructions in case you wanna try it.) I, uh, failed. The first time I failed, it was because my tablet display only stayed active 2 minutes before the tablet fell asleep. Oops. So I bumped it up to 30 minutes. And then git stalled at 24%. So I gave up and just downloaded it directly from the site.

So, technically step 4.5 here is “Download a zip program” (I ended up grabbing Winzip). But, hopefully others have better luck with git cloning than I did and thus don’t need to worry about that part.

5. Move it into your localhost dir
Astro made this pretty simple.

6. Create your database
If you open up your Bit Web Server, there’s a PHPMyAdmin link, will take you right in there. Just make yourself a nice little empty db.

6. Navigate to your drupal root dir in your browser, and commence setup
Open up Bit Web Server, and click Localhost, and your directory should be sitting there. Assuming all goes well, once you go into your dir, you should see the standard Drupal setup screen.

Setup was super easy for me. Simpler than standard setup – no renaming default.settings.php, no dir creation or permissions changing. Slightly concerned about that, tbh. But, it works.

Still need to explore a bit more, give it some stress testing, load in some modules. Also on the list is to figure out how to get some sort of command line. Would be amazing if I can get Drush on this thing. Or SASS, for that matter. We’ll see!

Leave a Reply