Working with the wiki: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
(New page: =can't stay logged in= http://www.gossamer-threads.com/lists/wiki/mediawiki/95406 quick solution: mkdir /tmp/apache-php-session chown apache:apache /tmp/apache-php-session /etc/init.d...)
 
Line 8: Line 8:
  /etc/init.d/apache2 stop
  /etc/init.d/apache2 stop
  /etc/init.d/apache2 start
  /etc/init.d/apache2 start
== Restrict reading, editing, and creation ==
Restrict editing and creation to only logged in user:
in file: /var/www/html/wiki/LocalSettings.php
# dthornton Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;
# dathornton , restrict editing to only logged in users.
$wgGroupPermissions['*']['edit'] = false;
# Anonymous users can't create pages
$wgGroupPermissions['*']['createpage'] = false;
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;

Revision as of 14:11, 26 August 2013

can't stay logged in

http://www.gossamer-threads.com/lists/wiki/mediawiki/95406

quick solution:

mkdir /tmp/apache-php-session
chown apache:apache /tmp/apache-php-session
/etc/init.d/apache2 stop
/etc/init.d/apache2 start

Restrict reading, editing, and creation

Restrict editing and creation to only logged in user:

in file: /var/www/html/wiki/LocalSettings.php

# dthornton Disable reading by anonymous users
$wgGroupPermissions['*']['read'] = false;

# dathornton , restrict editing to only logged in users.
$wgGroupPermissions['*']['edit'] = false;

# Anonymous users can't create pages
$wgGroupPermissions['*']['createpage'] = false;

# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;