Using PHP server for development¶
If Vagrant is too heavy for your purpose, you can simply use PHP built-in server.
Following command will launch a web-server listening on all IP addresses on port
- We also use a dedicated router file to serve static and generated resources:
# Create a new Roadiz project composer create-project roadiz/standard-edition # Create a new theme for your project cd standard-edition bin/roadiz themes:generate --symlink --relative FooBar # Launch PHP server with web folder as root php -S 0.0.0.0:8080 -t web vendor/roadiz/roadiz/conf/router.php
If you want to use PHP internal server, make sure you have installed all required PHP extensions and that you have a database server:
- You can use a local MySQL/MariaDB server
- Or use a SQLite3 database, just use
../app/conf/database.db3path during install.
PHP web server was designed to aid application development. It may also be useful for testing purposes or for application demonstrations that are run in controlled environments. It is not intended to be a full-featured web server. It should not be used on a public network.