Havenswift Hosting Ltd
All guides

Understanding the wp-config.php settings we use

wp-config.php holds WordPress's core configuration. If we set your site up, some of these will already be in place.

What is in there

Settings we commonly add

define( 'DISABLE_WP_CRON', true );

Turns off WordPress's visitor-driven scheduler because we run a real scheduled task instead – see Why WP-Cron is disabled on our servers.

define( 'WP_POST_REVISIONS', 5 );

Caps revisions so the database does not grow without limit.

define( 'DISALLOW_FILE_EDIT', true );

Stops PHP files being edited through the admin, so a stolen login cannot immediately install a backdoor.

Editing it safely

Take a copy first. A single typo here takes the entire site down, because nothing loads without it. Add your own lines above the comment that says to stop editing, never below it. And never leave a blank line or a space after the closing PHP tag – that alone can produce a "headers already sent" error.

Other guides

Still stuck? Sign in and raise a ticket, and somebody will answer it.

Sign in