PhpDock Architecture Overview
When PhpDock is started, it first runs HTTP server that opens TCP listening socket on port specified in its ini file. If nothing is specified, PhpDock runs on port 8001. If selected port is in use, PhpDock tries to open next 30 ports one by one starting with the one selected. Once the first unused port is found, PhpDock selects it. If free port is not found, PhpDock displays [!] icon in its status bar and shows the error message. After HTTP server is successfully started, it launches default URL specified in the PhpDock's settings. It's assumed that this URL runs the application and after this the PHP application itself controls the execution flow. PhpDock can work if there are no active internet connections on the machine. The only requirement is that IP protocol stack installed.
|