- Notifications
You must be signed in to change notification settings - Fork 7
Configuration
phpRedExpert allows you to configure different aspects of how it works and feels. These parameters can be specified in a app/parameters.yml
file placed in the phpRedExpert's directory.
Do not use tabs in configuration file! This will either lead to parsing errors, or phpRedExpert will ignore settings. Use spaces instead.
Clear cache after changing configuration file! Since phpRedExpert does not parse the configuration files every time and uses cache, you need to update the cache files. Run this command in the phpRedExpert's root directory:
$ php app/console cache:clear --env=prod --no-debug
After installation, only access to the localhost Redis server is configured.
parameters: redis_servers: - host: 127.0.0.1 port: 6379 name: localhost redis password:
phpRedExpert supports the administration of multiple Redis servers.
To add another Redis server you should create a new section under redis_servers
and specify server's host
, port
and password
. You could specify any server name
you want.
Example:
parameters: redis_servers: - host: 127.0.0.1 port: 6379 name: localhost redis password: - host: 192.168.0.1 port: 6800 name: production server password: somesecretpassword
Important! Because Redis server password is specified in plain text it is highly recommended to restrict access to the
app/parameters.yml
. See "Securing your installation" how to do this.
By default, phpRedExpert gives names to the databases in a format DB#
, but you can specify your own names for them. Simply add databases
entry and set name
for database id:
Example:
parameters: redis_servers: - host: 127.0.0.1 port: 6379 name: localhost redis password: databases: 0: name: products 2: name: users
search_per_page
- how much keys are displayed per page in the search result.