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: "http://localhost/resourcespace", "https://my-dam.com"