Changes

Jump to navigation Jump to search
m
Protected "Patent Data Project Wiki" [edit=nber:move=nber:read=nber]
When we browsed to http://www.nber.org/~edegan/w/index.php we got a 500 internal server error.
Adding the following debug code to the top of the page (below <?php) showed a problem with the ctype function. This was resolved by Mohan, who installed php5-ctype. '''Debug code''' can be added to the top of LocalSettings.php (below <?php though). It should be taken out again at the end of the build:
error_reporting( E_ALL | E_STRICT );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;
 
==Configuration and Extensions==
$wgGroupPermissions['*']['edit'] = false; #Stops editing without an account, globally
$wgEnableUploads = true; #Note that the max upload size is likely dictated by max_upload_filesize in php.ini
$wgFileExtensions=array('png','gif','jpg','jpeg','doc','xls','pdf','ppt','tiff','bmp','docx','xlsx','pptx','ps','odt','ods','odg','div','docx','xlsx','asci','csv','txt','wiki','sql');
$wgVerifyMimeType=false;
$wgStrictFileExtensions=false;
$wgCheckFileExtensions=false;
Edit (or create by going to):
** documentation|Documentation
** development|Development
** aboutreference|About the PDPReference * SEARCH * TOOLBOXabout|About PDPWiki
** recentchanges-url|recentchanges
** randompage-url|randompage
** helppage|help
*SEARCH * Special:MultipleUpload|Upload Multiple FilesTOOLBOX
* LANGUAGES
$wgMaxUploadFiles=10;
===Additional Configuration/Extensions===
At some point we might want to install the math extension (required in v1.18 to get LaTeX to render).
We might also want UserRightsList, but it does not appear to work for v1.18 (this has been reported to the author)
 
And we WILL want to use short URLs. This will mean that we need to add to LocalSettings.php
 
$wgArticlePath = "/~edegan/wiki/$1"; # Redirect for short URLs
and possibly:
$wgUsePathInfo = true;
 
As well as a .htaccess file or other means of doing the redirect. An example .htaccess file that doesn't work, most likely because the webserver doesn't allow Rewrites is:
 
RewriteEngine On
RewriteRule ^/~edegan/wiki/(.*)$ /~edegan/w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^/~edegan/wiki/*$ /~edegan/w/index.php [L,QSA]
 
Documentation on configuring Short URLs is here: http://www.mediawiki.org/wiki/Manual:Short_URL
 
 
==Security==
 
Until we can move the wiki and change its owner to apache (or similar), which requires root, the best we can do appears to be (from public_html):
 
chmod -R og-wx+X w/
chmod -R og+w w/images/
 
Note that the images directory needs write to allow file uploads.
Anonymous user

Navigation menu