Extra services
With Coduva 0.3.0 you can install three optional servers next to Nginx and MariaDB: Redis, PostgreSQL and MySQL. They are not part of the setup; they are downloaded when you need them.
Installing
- On the Control center, find the Extra services card.
- Click Install on the service's row.
Coduva downloads the package from its official source, verifies its SHA-256 value, installs it and starts it. Installed services run together with Start all and Stop all. If you turn a service off with Stop, it stays off until you start it again.
All extra services are reachable only from this computer (127.0.0.1).
| Service | Version | Download | Port | User |
|---|---|---|---|---|
| Redis | 5.0.14 | ~12 MB | 6379 | — |
| PostgreSQL | 18.7 | ~390 MB | 5432 | postgres, no password |
| MySQL | 8.4.13 LTS | ~280 MB | 3310 | root, no password |
If another program is using the port, the service does not start and the error names that program. While the service is stopped, you can pick another port with the Port button on its row.
Connecting a project
The .env button on the row copies the connection lines for Laravel to the clipboard; paste them into the project's .env file.
PostgreSQL (the pdo_pgsql and pgsql extensions are already on in PHP):
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=myapp
DB_USERNAME=postgres
DB_PASSWORD=To create the database, run this in the project terminal: "C:\Coduva\bin\postgresql\18.7\bin\createdb.exe" -h 127.0.0.1 -U postgres myapp.
MySQL is a second server next to MariaDB; both can run at the same time. MariaDB listens on 3306, MySQL on 3310:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3310
DB_USERNAME=root
DB_PASSWORD=For Redis in Laravel, use the Predis client, which needs no PHP extension:
composer require predis/predisREDIS_CLIENT=predis
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
CACHE_STORE=redis
QUEUE_CONNECTION=redisThings to know
- Redis has no official Windows release; Coduva uses the BSD-licensed native Windows port (Redis 5.0.14). It is enough for caching and queues. Persistence is off: data in Redis is cleared when it stops.
- PostgreSQL and MySQL data lives under
C:\Coduva\data, in a separate folder per major version (postgresql-18,mysql-8.4). - Logs are in
C:\Coduva\logs(redis.log,postgresql.log,mysql.log). - The Database screen and phpMyAdmin currently work with MariaDB only.