Add in your LocalSettings.php file the following lines:
$wgEnableParserCache = false;
$wgCachePages = false;
Posts Tagged ‘disable’How to disable cache in MediaWiki?Add in your LocalSettings.php file the following lines: How to disable registration for MediaWiki?You can disable the option for your MediaWiki visitors to register accounts at your MediaWiki website you will have to add the following line in the LocalSettings.php file: $wgGroupPermissions['*']['createaccount'] = false; You can find below detailed instructions on how to do this on your web hosting account using cPanel: 1. Login to cPanel for your hosting account 2. Click on the File Manager icon 3. Click on the folder icon next public_html folder name 4. Click on the folder icon next to the folder in which your MediaWiki is installed 5. Click on the LocalSettings.php file 6. In the upper right corner you will see several management options for LocalSettings.php file. Click on Edit File 7. Look for a line that starts with $wgGroupPermissions. If there is no such line you should add it yourself and if there already is such a line you should edit it to look this way $wgGroupPermissions['*']['createaccount'] = false; 8. Save the edited LocalSettings.php file and the new users account creation will be disabled. How to disable all WordPress plugins directly from the database?You can easily disable all WordPress plugins directly from your database. This is useful when you have some problems with your WordPress installation such as not being able to log in to the admin area and/or having blank pages. To disable all plugins, log in to phpMyAdmin and select your WordPress database from the menu on the left. Browse the table wp_options and find the option active_plugins. Click the pencil icon to edit the table. Its content will vary, depending on what plugins you have enabled. For example, if you have the Akismet and Hello Dolly plugins enabled, the code there will be: a:2:{i:0;s:19:”akismet/akismet.php”;i:1;s:9:”hello.php”;} To disable all plugins, simply delete the code and click the Go button to save the change. The other option is to use the following query to disable all of your WordPress plugins:
Please note that disabling the plugins will not remove them from your WordPress application. They will simply be deactivated. You can easily activate them from your WordPress admin area at any time. |
|
How to disable comments in Drupal
Very often Drupal (especially outdated versions) has problems with Spam bots which flood its comment modules.
The first thing to do in this case is to disable the comments modules until you clean all the Spam posts.
This can be done in two ways:
If you have admin access to Drupal log in and go to Administer – Content – Content Types. Then edit the content type of your choice and make sure comments are set to off by default.
Alternatively the above can be done directly by executing the following query in your database:
UPDATE system SET status = ’0′ WHERE filename = ‘modules/comment/comment.module’;
When you decide to re-enable the module simply issue the reverse query:
UPDATE system SET status = ’1′ WHERE filename = ‘modules/comment/comment.module’;
A good choice for fighting spam bots is using a captcha module in combination with Akismet. This way you ensure that even if a bot passes your captcha module, Akismet will check the post against a huge spam database. Only after that the post will appear.
Posted in Application Installer