The config file
ResourceSpace can be configured with various PHP variables that can be found in the config.default.php file in the 'include' folder. When changing these values you should always copy them to the config.php file and change the value there rather than changing the default file.
Core config options
- $mysql_server
- The host name or IP address of the MySQL (or MariaDB) server.
- Example values: "localhost", "168.212.226.204"
- $mysql_server_port
- The port number of the MySQL server.
- Example values: "3306", "3308"
- $mysql_username
- The username of the MySQL user with both read and write permissions.
- Example values: "root", "resourcespace_rw"
- $mysql_password
- The password of the MySQL user with both read and write permissions.
- $read_only_db_username
- The username of the MySQL user with only read permission.
- Example value: "resourcespace_r"
- $read_only_db_password
- The password of the MySQL user with only read permission.
- $mysql_db
- The database name for ResourceSpace
- Example value: "resourcespace"
- $baseurl
- The 'base' web address for this installation, no trailing slash. Update this value when changing from http to https.
- Example values: "https://localhost/resourcespace", "https://my-dam.com"
Resource upload config options
- $merge_filename_with_title
- When enabled, this config option will add more options to the Title field on the Edit page, allowing the original filename replace, prefix, or suffix the title.
- $merge_filename_with_title_default
- Set the default option for $merge_filename_with_title, possible values: 'do_not_use', 'replace', 'prefix', 'suffix'.
Resource display config options
- $ffmpeg_preview_gif
- When set to true (default from v10.2), animations within a gif file will be displayed on the view page.
- Further customisation of the preview is possible using config. $ffmpeg_preview_gif_options
- NOTE: This setting will only take effect for gif files uploaded after the the config has been enabled. To apply it to a resource created previously the previews should be recreated.