How to Setup PhpVirtualbox on Mac

Tamir Suliman
3 min readApr 25, 2023

Step by step guide on how to install ‘PhpVirtualBox’ to Manage VirtualBox Virtual Machines via Web Browser in MAC

Photo by Daniel Enders-Theiss on Unsplash

Introduction

phpVirtualBox is a PHP application, so like all PHP applications, it needs to be run under a PHP-capable web server. It manages your VirtualBox installation by communicating with VirtualBox’s API server (vboxwebsrv — distributed with VirtualBox) over a network connection [1] .

php virtualbox block diagram — screenshot from the phpvirtualbox github page

Before installing VirtualBox and PhpVirtualBox, you need to updated system package database and install prerequisites such as Apache, PHP and other needed dependencies as shown below.

Install Homebrew

The following script installs Homebrew to its default, supported, best prefix (/usr/localfor macOS Intel, /opt/homebrew for Apple Silicon [2].

/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install required packages

--

--

Tamir Suliman

Writer, Engineer, Cyber security enthusiast ,PhD. Candidate & 4 Open Source write about my day to day experience in Software Data, and Engineering.