Disable Runquery for Discuz in less than 5mins! When you first install the DiscuzX, you may have a prompt when going to the admin portal recommending that you need to disable the SQL runquery.

Disable Runquery for Discuz

You can do this by editing the file config_global.php found in your /config folder.

// --------------------------  CONFIG ADMINCP  -------------------------- //

// -------- Founders: $_config['admincp']['founder'] = '1,2,3'; --------- //

$_config['admincp']['founder'] = '1';

$_config['admincp']['forcesecques'] = '0';

$_config['admincp']['checkip'] = 1;

$_config['admincp']['runquery'] = 1;

$_config['admincp']['dbimport'] = 1;

See this line: –

$_config['admincp']['runquery'] = 1;

Simply change the ‘1’ to ‘0’ and it’s fixed!



Lincoln is a fan of Apple products, loves red wine and traveling. He blogs on internet marketing, social media, wordpress tips & guides, and using technology to maximize efficiency. Follow him on Twitter or Facebook for regular updates.

Leave a Reply

Your email address will not be published. Required fields are marked *