Skip to content

Bbconsole

Anthony Ogundipe edited this page Apr 10, 2023 · 2 revisions

Working with BBConsole

bbconsole

This is a new add-on console app that comes with phpbrowserbox to allow troubleshooting and working generally on the CLI for CLI lovers.

This console allows you to run commands from apache, mysql, php, windows commands, and custom commands e.g. to restart the server on the console is simply bbrestart.

You can skip this section entirely as it does not affect phpbrowserbox workings.

Table of Contents

  1. Launching the Console

  2. Basic console commands

  3. Controlling phpbb server

  4. Writing Console Commands

1. Launching the Console

You can launch the console in two ways:

  1. Launch the app directly from bin/bbconsole
  2. Launch Console from bbcpanel directly

2. Basic console commands

The console is running ms-dos so all ms-dos commands work normally. So we will be looking at special commands.

Alias Commands:

  • bbset : this displays some environment variables unique to phpbrowserbox server.

  • clear: clears the screen like cls

  • ls : basically lists directory like dir

  • cat: basically aliases type command to write out contents of a file e.g. cat sample.txt

  • composer : alias for composer. You can run any composer commands with this e.g. composer install e.t.c

  • bbphp : Allows to download/install of switch php versions.

  • bbphpdownload : Download new php versions

  • bbphpinstall : Install downloaded php versions

  • bbdoctor : Displays information about the components such as php version, mysql version e.t.c.

  • bbwebkit : This will launch the browser component of phpbrowserbox i.e phpbrowserbox.exe

3. Controlling phpbb server

This section deals with commands that directly affect the webserver component.

  • bbstart : start phpbrowserbox server
  • bbstop : stops phpbrowserbox server
  • bbstatus : displays the status of phpserverbox server components
  • bbrestart : restarts phpbrowserbox server
  • bbping : ping phpbrowserbox

4. Writing Console Commands

The custom console commands are located inside bin/scripts folder.

They are basically cmd, but you can write .exe and batch files to extend where necessary.

Clone this wiki locally