Setting New PHP Development with Apricity OS & VirtualBox : Part 1 – Setting VirtualBox

My latest post was about Apricity OS. This OS continue to surprise me with its ‘archlinux’ blood 🙂 . Getting new update every day is good for my general requirement but not suitable for my job in programming. I need php environment that stable and also support all old php version that our team ever made (I can share it to my team easily).

In short I need mutiple php support with these requirements :

  1. Minimum dependency
  2. Using Ubuntu or CentOS
  3. I can code in Apricity OS and see the result in other machine (point 2).

All those factors fit with Virtualbox. I just need to install Virtualbox (I use version 5.0.16) in Apricity (host) and install Ubuntu LTS (14.04 or 16.04) as guest.

Setting VirtualBox Guest in Apricity OS

VirtualBox already installed in last post. The plan for VirtualBox new guest :

  1. Set 2 card for NAT and Host Only
  2. Create fix hard disk with VDI type (50GB)
  3. Use Ubuntu server 14.04 LTS (32 bit for lower resource).
  4. 1 GB memory assignment

Picture of 2 card on VirtualBox

nat

Adapter 1 -> NAT

host-only

Adapter 2 -> Host Only

Fixed HD

Screenshot of Fixed HD that much faster that dynamic one.

vdi-fixed

How to add Host-Only Networks

My VirtualBox don’t have host only network by default. I have to add it manually.

Open VirtualBox then Click

File -> Preferences -> Network

Choose Host-Only Networks.

add_host

Click + to add new one.

How to remote Ubuntu guest from Apricity OS

Copy and paste method preferred 🙂 . I use port forward port facility that exist on VirtualBox.

Click on Adapter 1

port_forward

Add port 2222 as source and port 22 as target. This setting will be useful for access Ubuntu server remotely.

ssh_web

Port 8080 for mapping request to port 80 (web server).

Mounting Ubuntu Server 14.04 iso as seen on the image.

ubuntu_mount

At this stage Ubuntu server guest ready to install. Next post is about instalation process.

Reference :

Setting up PHP development environment