Configuration changes: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
No edit summary
No edit summary
Line 1: Line 1:
LocalSettings.php hacks:
===LocalSettings.php hacks===


<pre>
<pre>
Line 27: Line 27:
</pre>
</pre>


3/20/2007
===3/20/2007===


Trying to increase the limit on file uploads. This hasn't worked so far.  
Trying to increase the limit on file uploads. This hasn't worked so far.  
  Changed MAX_FILE_SIZE in SpecialImport.php to 10485760
  Changed MAX_FILE_SIZE in SpecialImport.php to 10485760
I also tried various things with <code>/usr/local/lib/php.ini</code> without any luck.
I also tried various things with <code>/usr/local/lib/php.ini</code> without any luck.
See http://meta.wikimedia.org/wiki/Uploading_files.

Revision as of 18:35, 20 March 2007

LocalSettings.php hacks

# This snippet prevents new registrations from anonymous users
# (Sysops can still create user accounts)
$wgGroupPermissions['*']['createaccount'] = false;

# This prevents anonymous users from editing.
$wgGroupPermissions['*']['edit'] = false;
require_once( "includes/DefaultSettings.php" );

# Types of files which may be uploaded.
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'txt', 'ppt');

# OPeNDAP Logo
$wgLogo = "http://www.opendap.org/images/OPeNDAP-meatball.png";
$wgFavicon = "http://www.opendap.org/favicon.ico";

# Allow raw HTML. Normally 'dangerous' but we limit edits so it should be OK
$wgRawHtml = true;

# disable anonomous talk
$wgDisableAnonTalk = true;

# Set the article path
#$wgArticlePath = "/$1";

3/20/2007

Trying to increase the limit on file uploads. This hasn't worked so far.

Changed MAX_FILE_SIZE in SpecialImport.php to 10485760

I also tried various things with /usr/local/lib/php.ini without any luck.

See http://meta.wikimedia.org/wiki/Uploading_files.