PHP Luminova: Run the Luminova PHP Development Server with Novakit
Start a Luminova application locally with `php novakit server`. Choose a PHP executable, host, and port, or test your application from another device on your network.
Novakit starts PHP’s built-in HTTP server with the project’s public/ directory as the document root. It supplies a router script so application URLs work during development. If your application uses a database, make sure the selected PHP executable has the required driver and can reach the database. See Luminova Requirements.
Start the Server
From your project root, run the following command.
php novakit serverOpen the address printed in the terminal. The default is http://127.0.0.1:8080. Novakit can try subsequent ports if the PHP process exits with an error, so use the address shown for the running server. Press Ctrl+C to stop it.
The command also accepts serve and http as aliases. To see the available options, run php novakit server --help.
Command Options
| Option | Short form | Effect |
|---|---|---|
--php | -b | Select a PHP executable. By default Novakit searches for PHP, then falls back to the current PHP_BINARY. |
--host | -a | Bind to a hostname or IP address. Defaults to 127.0.0.1 in local mode. |
--port | -p | Set the starting port. Defaults to 8080. The starting port must be between 1 and 65535. |
--retry | -r | Set the number of additional ports to try when the PHP process exits with an error. Defaults to 5. Use 0 to try only the starting port. |
--testing | -t | Detect and bind to the local network address when you omit --host. An explicit host takes precedence. |
--json | -j | Print host, port, and url as JSON for each start attempt. PHP can also print server diagnostics. |
--help | -h | Show the command’s help. |
Choose a Host, Port, or PHP Executable
Start on port 8081 and disable retries when another tool expects a fixed URL.
php novakit server --host=127.0.0.1 --port=8081 --retry=0If you have multiple PHP versions installed, pass the executable you want to use.
php novakit server --php=/path/to/phpFor scripts that read the server address, use --json. Novakit prints the address before starting PHP, so check that the server responds before sending requests.
php novakit server --json --retry=0{"host":"127.0.0.1","port":8080,"url":"http://127.0.0.1:8080"}Test from Another Device
Start the server in network testing mode and open the printed network URL on a phone or another computer connected to the same network.
php novakit server --testing --port=8080If address detection fails, find the IPv4 address of your active Wi-Fi or Ethernet interface. Use ipconfig on Windows, ifconfig on macOS, or ip addr on Linux. Replace the example address with yours.
php novakit server --host=192.168.1.100 --port=8080Open http://192.168.1.100:8080 from the other device. If it cannot connect, check that both devices are on the same network and that your firewall allows inbound connections to the selected port.
Use a Local Hostname
To open the local app at a name such as myapp.test, add this entry to your hosts file. Use /etc/hosts on macOS or Linux and C:\Windows\System32\drivers\etc\hosts on Windows.
127.0.0.1 myapp.testStart the server on port 8081, then open http://myapp.test:8081 on the machine where you added the entry.
php novakit server --host=myapp.test --port=8081 --retry=0Use Apache or Nginx
To develop with Apache or Nginx, including Apache installations from XAMPP or WAMP, configure a virtual host with the project’s public/ directory as its document root. See Installation and Setup for configuration examples.
Test Webhooks Through a Tunnel
A tunnel provides a public URL for testing services that need to reach your local application, such as webhook providers. Start Novakit on a fixed local address.
php novakit server --host=127.0.0.1 --port=8080 --retry=0In another terminal, forward requests to that address with ngrok. Use the HTTPS URL printed by ngrok as the webhook base URL.
ngrok http http://127.0.0.1:8080If ngrok reports ERR_NGROK_8012, first check that Novakit is running and responds at the same address and port configured in the tunnel. If your app generates redirects to an unexpected hostname, inspect the request’s Host header and the application URL configuration. See ngrok’s upstream connection error reference.