Database Configuration Files
Database Configuration Files
Platform-managed database servers include predefined directories for database configuration, cron jobs, scripts, backups, private keys, administration-panel settings, and PostgreSQL configuration files.
Configuration Folders Overview
| Folder | Path | Database Types |
|---|---|---|
| conf | /var/lib/pgsql/data | PostgreSQL |
| etc | /etc | All database types |
| cron | /var/spool/cron | All database types |
| scripts | /var/lib/jelastic/bin | All database types |
| backup | /var/lib/jelastic/backup | All database types |
| keys | /var/lib/jelastic/keys | All database types |
| conf.d | /etc/httpd/conf.d | MySQL, MariaDB, Percona, PostgreSQL |
ETC Folder
The /etc folder contains common configuration files used by the database server and its administration tools.
PHP Configuration
PHP settings for the database administration interface are configured in the php.ini file inside the etc folder.

MySQL, MariaDB, and Percona Configuration
These databases use the my.cnf file for database-server configuration. The platform automatically manages the following values:
key_buffer_sizetable_open_cachemyisam_sort_buffer_sizeinnodb_buffer_pool_size
Platform-managed values
To change one of these values directly in my.cnf, remove the #Jelastic autoconfiguration mark. line at the beginning of the file. Otherwise, the platform can overwrite the custom value.
Recommended override method
Any setting in /etc/my.cnf, including auto-managed settings, can be overridden by defining it in /etc/mysql/conf.d/my_custom.cnf.

Cron Configuration
The /var/spool/cron folder contains the database cron configuration. Use it to define recurring tasks such as scheduled database backups.
The backup cron expression is included in the configuration by default. Uncomment the required line and adjust the schedule when necessary.

Scripts Folder
The /var/lib/jelastic/bin folder contains the default backup_script.sh script. Custom scripts can also be uploaded to this directory.

Backup Folder
The /var/lib/jelastic/backup folder stores database backup files. These files can be used later to restore database data.

Keys Folder
The /var/lib/jelastic/keys directory is intended for private keys required by an application or database integration.
Generate the key, save it as a file, upload it to the keys directory, and reference it using:
/var/lib/jelastic/keys/{keyName}

conf.d Folder
The /etc/httpd/conf.d folder stores sub-configuration files for the database administration interface.
For example, MySQL uses an administration-panel configuration such as phpMyAdmin-jel.conf. These files can be used to define access rules that allow or deny requests by IP address or domain.

PostgreSQL conf Folder
The main PostgreSQL configuration files are stored in /var/lib/pgsql/data. This directory includes files such as:
postgresql.confpg_hba.confpg_ident.conf

The platform automatically manages these PostgreSQL values in postgresql.conf:
ulimit -s and converting the result to MB.Manual PostgreSQL changes
To change either platform-managed value manually, remove the #Jelastic autoconfiguration mark. line at the beginning of postgresql.conf. Otherwise, the platform can overwrite the custom value.
Expected Result
The database configuration manager provides access to the correct directories for database settings, scheduled tasks, backup scripts, backup files, private keys, administration-panel access rules, and PostgreSQL server configuration.
Important Notes
- Back up configuration files before making manual changes.
- Use
/etc/mysql/conf.d/my_custom.cnfto override MySQL-family settings without editing auto-managed values directly. - Remove the autoconfiguration mark only when taking responsibility for a platform-managed setting.
- Keep private keys protected and reference them through their full keys-folder path.
- Review cron timing before enabling scheduled backups.
- Restart the relevant database or administration service when a configuration change requires it.
