Config
On this page
Edit configuration files for installed services directly from Crabsmith. Crabsmith backs up the current file before saving and automatically restores it if validation or reload fails.
Edit a config file
- Open your server's Services tab, click Config on an installed service, and pick the file you want to edit.
- Make your changes and click Save.
- Crabsmith backs up the current file, saves your changes, validates the config syntax (for Caddy, PHP, MySQL, and PostgreSQL), and reloads or restarts the service.
If validation or restart fails, Crabsmith restores the previous file and keeps your draft open in the editor so you can fix the mistake and try again. Note that Redis has no separate pre-restart syntax check, a restart can cause a brief interruption, and a syntactically valid setting can still affect your app—test risky changes carefully.
Editable files
| Service | Available files | Common edits |
|---|---|---|
| Caddy | Caddyfile | Global options, custom headers, or extra site rules |
| PHP | PHP settings (php.ini), CLI settings, FPM pool | upload_max_filesize, memory_limit, max_execution_time, pm.max_children |
| MySQL | Server settings | max_connections, innodb_buffer_pool_size |
| PostgreSQL | Server settings | max_connections, shared_buffers, work_mem |
| Redis | Redis settings | maxmemory, maxmemory-policy |
When a save fails
Open the failed operation to see the exact error message from the service, fix that line in the editor, and click Save again.