Blog

Create a Simple Schema and Table To get us started, we’ll need a source of data for our service. I’m going to use IBM i DB2 for this example, since that is primarily what I work on. Below is SQL to define a simple table and populate it with some data. CREATE SCHEMA APIGILITY ;…

Download & Attach VirtualBox Guest Additions Download the appropriate version of VirtualBox Guest Additions. The latest would be VBoxGuestAdditions_5.1.20 at the time this article was written. Go ahead and attach the VirtualBox Guest Additions ISO as a device to the virtual machines storage. This is basically emulating a CD being inserted into our virtual machine….

Most commands will need to be ran with super user permissions. Just prepend withsudo if any permissions errors occur. Download CentOS 7 Download the preferred version of CentOS. I suggest the “Everything” version for this tutorial. Install CentOS 7 Begin the installation process like any other Linux installation. Either through USB or Virtual Machine. Installation…

Making BASH Your Default Shell There are (at least) a couple of different ways to achieve having BASH on login. sshd_config – Globally (not recommended) This will make it so anyone that SSHs in will have BASH at login. More information can be found here Editsshd_config (usually found at/QOpenSys/QIBM/UserData/SC1/OpenSSH/etc/sshd_config) to have the following: # $OpenBSD: sshd_config,v…

The Problem Ideally, application development is separated into three environments: local (development), staging, and production. Staging and production would reside on the IBM i, while local is specific to each developer and would reside on the developer’s local development machine. In a perfect world, the developer would have a mock of the database on their…

Install Apigility I find the easiest way to accomplish this on the IBM i is to use PHP itself on command line: $ php -r “readfile(‘https://apigility.org/install’);” | php After this is ran, Apigility will try to serve itself up. While it is successful in doing so, I have not been able to visit Apigility without…