Install the Yii2 framework in Raspberry Pi3 via Pantacor Hub

This tutorial describes how to use the Yii framework with Pantavisor and share it on our firmware and app sharing and management platform Pantacor Hub. You’ll first download Pantavisor onto your device, and then you’ll download the Yii framework. Pantavisor converts regular Docker containers into LXC containers so that they can run on the device.

Prepare your RPI3 device with Pantavisor to deploy Yii2 by following 6 Steps

Step 1: Burn the RPI3 initial stable image into your sd card.

a) Download RPI3 Pantavisor image

Click to download:

b) unxz the device image

Run $ unxz rpi3_initial_stable.img.xz

c) Burn the image into sd card using Raspberry Pi Imager 1.2

Step 2: Boot the RPI3

a) Insert the sd card and supply the power

Step 3: Sign up for a Pantacor Hub account.

Step 4: Download and install the Pantavisor CLI utilities “pvr”

Note: pvr are CLI utilities that interact with your device and the Pantacor Hub platform. With pvr you can share containerized firmware and other projects. After you’ve downloaded the binary, move it to your bin folder. See Pantacor Docs for more information.

Linux(AMD64): Download Linux(ARM32v6): Download Darwin(AMD64): Download

pvr clone; pvr commit; pvr post

Step 5: Detect and Claim your device

a) Connect a LAN cable between your RPI3 & computer/Router.
b) Open the terminal and scan the device with:
$ pvr scan
c) Claim your device

$ pvr claim -c merely-regular-gorilla

d) Log into Pantacor Hub to check for the newly claimed device in the dashboard.

Step 6: Clone the device to your computer using the device clone URL

$ pvr clone presently_learning_pelican

Now your device is ready to deploy your Yii2 app

Deploy the Yii2 app to the device by following 5 Steps

Step 1: Move to device root dir

 `$ cd presently_learning_pelican`

Step 2: Add a new app “yii2” into the device

sirinibin/yii2-basic-arm32v7:latest is a Docker image made for the devices with ARM32 architecture

You can customise the docker image for your custom Yii2 app.

$ pvr app add yii2 --from=sirinibin/yii2-basic-arm32v7:latest

Step 3: Deploy the changes to the device

$ pvr add .
$ pvr commit
$ pvr post

Step 4: Check the device status changes in dashboard & wait for the status to become “DONE

Status 1:

Status 2:

Status 3:

Status 4:

Step 5: Verify the “yii2” app deployment

Access the device IP: in your web browser.

You are done!


Share on facebook
Share on twitter
Share on linkedin