-
Notifications
You must be signed in to change notification settings - Fork 6
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
You can launch the console in two ways:
- Launch the app directly from bin/bbconsole
- Launch Console from bbcpanel directly
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
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
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.