Strona 1 z 1
Problem z logowaniem do MediaWiki
#1
Napisano 01 marzec 2010 - 23:30
Witam serdecznie.
problem - nie mogę zalogować się jako administrator do MediaWiki, jako admin nie mogę również zmienić, tworzyć artykułów. Mogą to robić użytkownicy niezalogowani.
Bardzo prosiłbym o pomoc w skonfigurowaniu odpowiednich plików - których i gdzie wstawić konkretne kody.
z góry dzięki za pomoc.
problem - nie mogę zalogować się jako administrator do MediaWiki, jako admin nie mogę również zmienić, tworzyć artykułów. Mogą to robić użytkownicy niezalogowani.
Bardzo prosiłbym o pomoc w skonfigurowaniu odpowiednich plików - których i gdzie wstawić konkretne kody.
z góry dzięki za pomoc.
Strona 1 z 1
Odpowiedzi do tego tematu
#4
Napisano 02 marzec 2010 - 00:28
W FTP zmieniłem atrybuty do plików ale to nie miało znaczenia po tym jest to samo.
No i próbowąłem trochę na podstawi tego co znalazłem pozmieniać w localSettings ale to pousuwałem i wstawiłem tylko tę linię:
$wgGroupPermissions['*']['edit'] = false;
i nic więcej
Kiedy chcę zapisac coś jako admin czy zalogowany użytkownik wówczas wywala mi taki komunikat:
Uwaga! Serwer nie może przetworzyć tej edycji z powodu utraty danych sesji. Spróbuj jeszcze raz. Jeśli to nie pomoże – wyloguj się i zaloguj ponownie.
No i próbowąłem trochę na podstawi tego co znalazłem pozmieniać w localSettings ale to pousuwałem i wstawiłem tylko tę linię:
$wgGroupPermissions['*']['edit'] = false;
i nic więcej
Kiedy chcę zapisac coś jako admin czy zalogowany użytkownik wówczas wywala mi taki komunikat:
Uwaga! Serwer nie może przetworzyć tej edycji z powodu utraty danych sesji. Spróbuj jeszcze raz. Jeśli to nie pomoże – wyloguj się i zaloguj ponownie.
#5
Napisano 02 marzec 2010 - 00:39
Użytkownik studzianek dnia 01 marzec 2010 - 23:25 napisał
W FTP zmieniłem atrybuty do plików ale to nie miało znaczenia po tym jest to samo.
Sprawdziłeś to o czym pisał ~elektryk?
Jak możesz to skopiuj z LocalSettings.php wszystko co zaczyna się na $wgGroupPermissions i wklej tutaj.
U mnie jest to zrobione w ten sposób:
// Dla wszystkich
$wgGroupPermissions['*' ]['createaccount'] = true; // założenie konta Jeżeli chcesz sam tworzyć stronę to zmień na false
$wgGroupPermissions['*' ]['read'] = true; // czytanie artykułów
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = true; // dodanie komentarza
$wgGroupPermissions['*' ]['upload'] = false;
$wgDefaultUserOptions ['editsection'] = false;
// Dla zalogowanych
$wgGroupPermissions['user' ]['move'] = true;
$wgGroupPermissions['user' ]['read'] = true;
$wgGroupPermissions['user' ]['edit'] = true;
$wgGroupPermissions['user' ]['createpage'] = true;
$wgGroupPermissions['user' ]['createtalk'] = true;
$wgGroupPermissions['user' ]['upload'] = true;
$wgGroupPermissions['user' ]['reupload'] = true;
$wgGroupPermissions['user' ]['reupload-shared'] = true;
$wgGroupPermissions['user' ]['minoredit'] = true;
$wgGroupPermissions['user']['writeapi'] = true;
#6
Napisano 02 marzec 2010 - 01:30
no u mni ebyła tylko jedna linia kodu:
$wgGroupPermissions['*']['edit'] = false;
I chyba gdzieś tu jest pies pogrzebany.
A cały plik localSetings wygląd anastępująco:
<?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.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki...ration_settings
# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
} else {
$IP = dirname( __FILE__ );
}
$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
require_once( "$IP/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" );
}
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "SACRAPEDIA";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki...anual:Short_URL
$wgScriptPath = "";
$wgScriptExtension = ".php";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "--------------------";
$wgPasswordSender = "-----------------";
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "-------------";
$wgDBname = "-------------";
$wgDBuser = "--------------";
$wgDBpassword = "-------------";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = true;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
# $wgShellLocale = "en_US.UTF-8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX = false;
$wgLocalInterwiki = strtolower( $wgSitename );
$wgLanguageCode = "pl";
$wgSecretKey = "-------------";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'modern';
## 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
$wgDiff3 = "";
# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
$wgGroupPermissions['*']['edit'] = false;
Po wklejeniu kodu od nowicjusza zminiło się to, że nie kazdy może edytowac artykuły ale czemu wywala mi tą sesję - ze niby wygasła próbuje na dwóch kompach i to samo
@edit: Jak sama nazwa wskazuje zmiennej $wgSecretKey też nie można ujawniać, już wymazałem ~Elektryk
Dziękuję
$wgGroupPermissions['*']['edit'] = false;
I chyba gdzieś tu jest pies pogrzebany.
A cały plik localSetings wygląd anastępująco:
<?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.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki...ration_settings
# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
} else {
$IP = dirname( __FILE__ );
}
$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
require_once( "$IP/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" );
}
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "SACRAPEDIA";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki...anual:Short_URL
$wgScriptPath = "";
$wgScriptExtension = ".php";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "--------------------";
$wgPasswordSender = "-----------------";
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "-------------";
$wgDBname = "-------------";
$wgDBuser = "--------------";
$wgDBpassword = "-------------";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = true;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
# $wgShellLocale = "en_US.UTF-8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX = false;
$wgLocalInterwiki = strtolower( $wgSitename );
$wgLanguageCode = "pl";
$wgSecretKey = "-------------";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'modern';
## 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
$wgDiff3 = "";
# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
$wgGroupPermissions['*']['edit'] = false;
Po wklejeniu kodu od nowicjusza zminiło się to, że nie kazdy może edytowac artykuły ale czemu wywala mi tą sesję - ze niby wygasła próbuje na dwóch kompach i to samo
@edit: Jak sama nazwa wskazuje zmiennej $wgSecretKey też nie można ujawniać, już wymazałem ~Elektryk
Dziękuję
Strona 1 z 1

Logowanie
Rejestracja
Pomoc
Cytuj





