Installation

To install NumberNine, you need only Docker to be installed on your host.

You don't need to be familiar with Docker. Everything is taken care of for you. Just download and install itopen in new window.

To create a new project, simply replace myproject by the name of your project and run:

docker run --rm --pull=always -t -e HOST_PWD=$PWD \
    -v $PWD:/srv/app -v /var/run/docker.sock:/var/run/docker.sock \
    numberninecms/installer myproject
1
2
3

Wait a couple of minutes. Done! Now visit https://myproject.localhost/open in new window.

If port 443 is unavailable, the installation process will automatically assign a free port to your app.

Windows / Linux / WSL / macOS manual installation

Requirements to install NumberNine:

Create the project

To create a new project with NumberNine, run the following commands:

symfony new myproject --full
cd myproject
composer config extra.symfony.allow-contrib true
composer req numberninecms/numbernine
1
2
3
4

Launch installation

Go to your new project root and run:

bin/console assets:install public --symlink
bin/console numbernine:install
bin/console doctrine:database:create
bin/console doctrine:migrations:diff
bin/console doctrine:migrations:migrate
bin/console doctrine:fixtures:load
1
2
3
4
5
6

Run the server

Now launch the local server and visit your website.

symfony local:server:ca:install
symfony serve -d
1
2

You're done. Visit https://localhost:8080/open in new window or the given URL if different.

Optional: Redis extension

Assuming you've got Redis installed, run these commands:

composer req numberninecms/redis
bin/console numbernine:install:redis
1
2

Answer the questions, then clear your Symfony cache:

bin/console cache:clear
1

Done! Your Symfony cache and sessions will now be handled through Redis.