AbuseFilter setup
From Wikitech
(Difference between revisions)
| (3 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{old}} | ||
| + | '''Note:''' AbuseFilter was already enabled for all wikis, no need for this. --[[User:Hydriz|Hydriz]] 12:51, 23 October 2012 (UTC) | ||
* Go into the php configuration directory: | * Go into the php configuration directory: | ||
| − | cd /home/wikipedia/common/ | + | cd /home/wikipedia/common/wmf-deployment |
* Add the extensions tables to the project: | * Add the extensions tables to the project: | ||
php maintenance/sql.php --wiki='''dbname''' extensions/AbuseFilter/abusefilter.tables.sql | php maintenance/sql.php --wiki='''dbname''' extensions/AbuseFilter/abusefilter.tables.sql | ||
* Add the wiki to the 'wmgUseAbuseFilter' array in '''InitiliseSettings.php'''. | * Add the wiki to the 'wmgUseAbuseFilter' array in '''InitiliseSettings.php'''. | ||
| + | :* /home/wikipedia/common/wmf-deployment/wmf-settings/InitiliseSettings.php | ||
* If needed, customize the settings for the extension in '''abusefilter.php'''. | * If needed, customize the settings for the extension in '''abusefilter.php'''. | ||
| + | :* /home/wikipedia/common/wmf-deployment/wmf-settings/abusefilter.php | ||
:* If they want settings other than the defaults listed in the same file, you will need to enter them. | :* If they want settings other than the defaults listed in the same file, you will need to enter them. | ||
* Update the configuration site-wide: | * Update the configuration site-wide: | ||
| Line 10: | Line 14: | ||
* Alternatively, you can sync the InitiliseSettings.php and abusefilter.php files individually via <tt>sync-file</tt> if you so choose. | * Alternatively, you can sync the InitiliseSettings.php and abusefilter.php files individually via <tt>sync-file</tt> if you so choose. | ||
| + | == Important == | ||
| + | Never assign the group 'abusefilter-private' to any usergroup. It is DEV ONLY. | ||
[[Category:How-To]] | [[Category:How-To]] | ||
Latest revision as of 12:51, 23 October 2012
Note: AbuseFilter was already enabled for all wikis, no need for this. --Hydriz 12:51, 23 October 2012 (UTC)
- Go into the php configuration directory:
cd /home/wikipedia/common/wmf-deployment
- Add the extensions tables to the project:
php maintenance/sql.php --wiki=dbname extensions/AbuseFilter/abusefilter.tables.sql
- Add the wiki to the 'wmgUseAbuseFilter' array in InitiliseSettings.php.
- /home/wikipedia/common/wmf-deployment/wmf-settings/InitiliseSettings.php
- If needed, customize the settings for the extension in abusefilter.php.
- /home/wikipedia/common/wmf-deployment/wmf-settings/abusefilter.php
- If they want settings other than the defaults listed in the same file, you will need to enter them.
- Update the configuration site-wide:
sync-common-all
- Alternatively, you can sync the InitiliseSettings.php and abusefilter.php files individually via sync-file if you so choose.
[edit] Important
Never assign the group 'abusefilter-private' to any usergroup. It is DEV ONLY.