I am new at this and I am setting up my wiki, and one of the changes to localsettings.php I'm making is that if you want to edit a page you have to have an account. Anon can read/view all they want, but editing is user only.
I also want to change the default skin used.
So I per the documentation I ADD:
# # Permission keys given to users in each group. # All users are implicitly in the '*' group including anonymous visitors; # logged-in users are all implicitly in the 'user' group. These will be # combined with the permissions of all groups that a given user is listed # in in the user_groups table. # # This replaces wgWhitelistAccount and wgWhitelistEdit # # The following line should be commented, otherwise these settings will # throw away the settings on DefaultSettings.php (you probably don't want this). # With this line commented you will only overwrite the settings you explicitly # define here (that's what you probably want). #$wgGroupPermissions = array(); $wgGroupPermissions['*' ]['createaccount'] = true; $wgGroupPermissions['*' ]['read'] = true; $wgGroupPermissions['*' ]['edit'] = false;
And UNCOMMENTED and CHANGED:
$wgDefaultSkin = 'cologneblue';
But these changes don't take effect? ?? ?
What step am I missing? I tried searches and didn't seem to find an artcile that would explain what step I am missing to get these changes to take effect.
Thanks!
Are you adding these lines before or after the require_once( "includes/DefaultSettings.php" ); line? If you are adding them before, you need to add them after that line.
mediawiki@wpascanner.com wrote:
I am new at this and I am setting up my wiki, and one of the changes to localsettings.php I'm making is that if you want to edit a page you have to have an account. Anon can read/view all they want, but editing is user only.
I also want to change the default skin used.
So I per the documentation I ADD:
# # Permission keys given to users in each group. # All users are implicitly in the '*' group including anonymous visitors; # logged-in users are all implicitly in the 'user' group. These will be # combined with the permissions of all groups that a given user is listed # in in the user_groups table. # # This replaces wgWhitelistAccount and wgWhitelistEdit # # The following line should be commented, otherwise these settings will # throw away the settings on DefaultSettings.php (you probably don't want this). # With this line commented you will only overwrite the settings you explicitly # define here (that's what you probably want). #$wgGroupPermissions = array(); $wgGroupPermissions['*' ]['createaccount'] = true; $wgGroupPermissions['*' ]['read'] = true; $wgGroupPermissions['*' ]['edit'] = false;
And UNCOMMENTED and CHANGED:
$wgDefaultSkin = 'cologneblue';
But these changes don't take effect? ?? ?
What step am I missing? I tried searches and didn't seem to find an artcile that would explain what step I am missing to get these changes to take effect.
Thanks! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Alright what is wrong with this localsettings.php that is still allowing Anon users to edit pages.
I followed the instructions to add the sections, at the bottom, from the Documentation to block these users, but clicking edit still brings up the edit box, not the login box as it should. I understand that edit will still show, but should bring up the login box, not the edit window.
I want to get this secured up before I put any effort into converting my site over, and anon editing has to go!
<?php
# This file was automatically generated by the MediaWiki installer. # If you make manual changes, please keep track in case you need to # recreate them later.
$IP = "/******************************"; ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" ); require_once( "includes/DefaultSettings.php" );
# If PHP's memory limit is very low, some operations may fail. # ini_set( 'memory_limit', '20M' );
if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } elseif ( empty( $wgConfiguring ) ) { ## Compress output if the browser supports it if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' ); }
$wgSitename = "W********r";
$wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs $wgArticlePath = "$wgScript/$1"; # $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/skins"; $wgStyleDirectory = "$IP/skins"; $wgLogo = "$wgStylePath/common/images/wiki.png";
$wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";
$wgEmergencyContact = "w****************ner.com"; $wgPasswordSender = "w****************ner.com";
$wgDBserver = "localhost"; $wgDBname = "w*****************r"; $wgDBuser = "w**************i"; $wgDBpassword = "*******"; $wgDBprefix = "";
## To allow SQL queries through the wiki's Special:Askaql page, ## uncomment the next lines. THIS IS VERY INSECURE. If you want ## to allow semipublic read-only SQL access for your sysops, ## you should define a MySQL user with limited privileges. ## See MySQL docs: http://www.mysql.com/doc/en/GRANT.html # # $wgAllowSysopQueries = true; # $wgDBsqluser = "*******"; # $wgDBsqlpassword = "*******";
# If you're on MySQL 3.x, this next line must be FALSE: $wgDBmysql4 = $wgEnablePersistentLC = true;
## Shared memory settings $wgUseMemCached = false; $wgMemCachedServers = array(); #$wgUseTurckShm = function_exists( 'mmcache_get' ) && php_sapi_name() == 'apache';
## To enable image uploads, make sure the 'images' directory ## is writable, then uncomment this: # $wgDisableUploads = false; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";
## If you have the appropriate support software installed ## you can enable inline LaTeX equations: # $wgUseTeX = true; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgLocalInterwiki = $wgSitename;
$wgLanguageCode = "en"; $wgUseLatin1 = false;
$wgProxyKey = "****************************************************************";
## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': $wgDefaultSkin = 'cologneblue';
## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. # $wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; # $wgRightsCode = ""; # Not yet used
# # Permission keys given to users in each group. # All users are implicitly in the '*' group including anonymous visitors; # logged-in users are all implicitly in the 'user' group. These will be # combined with the permissions of all groups that a given user is listed # in in the user_groups table. # # This replaces wgWhitelistAccount and wgWhitelistEdit # # The following line should be commented, otherwise these settings will # throw away the settings on DefaultSettings.php (you probably don't want this). # With this line commented you will only overwrite the settings you explicitly # define here (that's what you probably want). #$wgGroupPermissions = array(); $wgGroupPermissions['*']['createaccount'] = true; $wgGroupPermissions['*']['read'] = true; $wgGroupPermissions['*']['edit'] = false; $wgDisableAnonTalk = true; $wgCacheEpoch = "20060225005900"; $wgAccountCreationThrottle = 1; $wgShowIPinHeader = false; # For non-logged in users $wgAmericanDates = true;
?> ---- Support your LOCAL scanner frequency site and groups! http://www.wpascanner.com http://www.tampascanner.info ------------------------------------------------------- http://www.gulfcoastdish.net
mediawiki-l@lists.wikimedia.org