Difference between revisions of "Lab Manual:SPAN-ipedia Wiki"
(→Wiki Backup) |
(→Wiki Backup) |
||
Line 116: | Line 116: | ||
crontab -e | crontab -e | ||
+ | |||
+ | ===Cleaning up Old Wiki Backups=== | ||
The backups are timestamped. Old backups need to be cleaned out every once in a while for space. | The backups are timestamped. Old backups need to be cleaned out every once in a while for space. | ||
+ | |||
+ | A script has been added to delete old wiki backups at /biac2/data2/wiki_backup/wikibackup_cleanup_script | ||
+ | |||
+ | It can be run manually using the command | ||
+ | |||
+ | /biac2/data2/wiki_backup/wikibackup_cleanup_script | ||
+ | |||
+ | The script is enabled to run every night through a crontab on amygdala. | ||
+ | |||
+ | You can edit the crontab using | ||
+ | |||
+ | crontab -e |
Revision as of 17:05, 6 May 2009
Contents
Introduction
SPAN-ipedia is a wiki reference for the SPAN Lab which uses the ubiquitous MediaWiki software. The same PHP, MySQL based software used for wikipedia. Wiki's are easy to update, which makes it ideal for documents and resources which are often updated.
SPAN-ipedia includes the lab manual and other resources for the lab.
Feel free to contribute, add, and update. The more people contribute. The more useful the wiki becomes.
Logging In / Creating a login
You will have to login to view this wiki. Login as 'span' or 'admin'. See lab manager for password. All pages are set to be private. These settings can be found in in the LocalSettings.php configuration file.
You can set a particular page to be viewable to the public by editing the following line in LocalSettings.php
e.g. $wgWhitelistRead = array ("Main_Page","Lab_Manual");
You can either login with the 'span' username, or you can login as 'span' and create a username for yourself. You can find the user management tools in the menu under toolbox -> special pages.
If you create your own login, you can login with that name and people will be able to see which edits are made by you. You can also get access to cool features such as getting email updates when a specific page is changed by using the 'watch' feature!
Create a Login
First Create Your Login:
- Login as span
- Go to toolbox > special pages > login / create account
- Click on Create Account
- Create your Account
Now Edit Your User Rights:
- Login as span
- Go to toolbox > special pages > restricted special pages > user rights management
- Add yourself to the sysop / bureaucrats groups
Keeping Updated
If you have created your own SPAN-ipedia account, you can watch a page, by clicking on the 'watch' button at the top of the page.
This will keep you updated when a page is updated.
Help & Reference
Quick Wiki Tips
- Login using the "login" link in the upper right.
- Browse SPAN-ipedia using the navigation menu on the left.
- Search SPAN-ipedia using the search box.
- Edit a page or a section by clicking on edit at the top of a page or next to a section.
- Create a new page by creating a link in an existing page, or searching for the page title you want, and clicking on creat this page.
- For Help with MediaWiki syntax for formatting, visit: http://meta.wikimedia.org/wiki/Help:Editing
MediaWiki Help
Consult the User's Guide for information on using the wiki software.
You can edit the Navigation Side Bar at http://spanlab.stanford.edu/wiki/index.php/MediaWiki:Sidebar
Uploading Files
Only certain file types are uploadable. These can be changed and are specified in the wiki/includes/DefaultSettings.php file.
e.g. $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'mov' );
Security
The standard MediaWiki files are uploaded in an insecure fashion. Anyone can access them by going to an URL (e.g. http://spanlab.stanford.edu/wiki/images/example.doc)
To secure files, three changes need to be made.
In .htaccess file in images directory
Deny from All
In [path/to/wiki]/includes/DefaultSettings.php
$wgUploadPath = "{$wgScriptPath}/img_auth.php";
In /etc/apache2/httpd.conf add lines:
Alias /home/span/public_html/spanlab.stanford.edu/wiki/images/ /home/span/public_html/spanlab.stanford.edu/wiki/img_auth.php Alias /home/span/public_html/spanlab.stanford.edu/wiki/images /home/span/public_html/spanlab.stanford.edu/wiki/img_auth.php
Website Tracking / Google Analytics
Tracking code was added using Google Analytics as javascript to the bottom of the Monobook.php file under ./wiki/skins/MonoBook.php, and can be accessed with the spanlab google account at http://www.google.com/analytics
Wiki Backup
Wiki backup has been implemented using a script in /biac2/data2/wiki_backup/wikibackup_script
It can be run manually using the command
/biac2/data2/wiki_backup/wikibackup_script
The script is enabled to run every night through a crontab on amygdala.
You can edit the crontab using
crontab -e
Cleaning up Old Wiki Backups
The backups are timestamped. Old backups need to be cleaned out every once in a while for space.
A script has been added to delete old wiki backups at /biac2/data2/wiki_backup/wikibackup_cleanup_script
It can be run manually using the command
/biac2/data2/wiki_backup/wikibackup_cleanup_script
The script is enabled to run every night through a crontab on amygdala.
You can edit the crontab using
crontab -e