This script creates a series of web servers defined in a config file on different ports.
- Copy
cliServers.sh
from below to the root directory in which you have all your php projects (e.g./var/www/ or ~/code/
) - In that directory run
mkdir logs
- Create a file in that directory called
config
and add configuration for each web server as detailed below and exemplified in the config file in this gist. - Run
sh cliServers.sh
when you wish to start your web servers. They will run in the background until their processes are killed (by usingkill
or a reboot).