Mediawiki configuration note

Source: Internet
Author: User

 

1. Change the homepage Image

Replace/var/www/mediawiki/htdocs/skins/common/images/wiki.png with a resolution of 135x135.

 

2. Open the image upload function

# Vim/var/www/mediawiki/htdocs/localsettings. php

Search for upload and change $ wgenableuploads to true;

 

3. Further setting of the upload function

# Vim/var/www/mediawiki/htdocs/localsettings. php

Add the following content

# Added by Crob
$ Wgfileextensions = array ('png ', 'gif', 'jpg', 'jpeg ', 'ppt', 'pdf ', 'doc', 'psd ', 'mp3', 'xls ', 'csv', 'txt', 'log', 'zip ', 'rar', 'swf ', 'Doc', 'docx ', 'tar.gz ');
$ Wgallowcopyuploads = true;

$ Wguploaddirectory = "{$ IP}/uploads ";
$ Wguploadpath = "{$ IP}/uploads ";
$ Wgmaxuploadsize = 10240000;

 

Create upload directory path and access permission

# Mkdir/var/www/mediawiki/htdocs/uploads

# Chmod A + w/var/www/mediawiki/htdocs/uploads

 

# Vim/etc/PHP/apache2-php5/PHP. ini

Modify the following content

File_uploads = on

Post_max_size = 10 m
Upload_max_filesize = 10 m

 

#/Etc/init. d/apache2 restart

After Apache is restarted, the file size setting takes effect.

 

4. selectcategorytagcolud

This function is used to provide direct input and selection of categories on the file upload page and document creation page.


See http://www.mediawiki.org/wiki/Extension:SelectCategoryTagCloud for details



5. categorystepper

Used to display a category list

Http://www.mediawiki.org/wiki/Extension:CategoryStepper

 

6. Balloons

Used to display balloon prompts

Http://www.mediawiki.org/wiki/Extension:Balloons

 

7. categorylink

Display a category list

Http://www.mediawiki.org/wiki/Extension:CategoryLink

 

8. createarticle

Displays an input box and button for creating a new article.

Http://www.mediawiki.org/wiki/Extension:CreateArticle

 

9. FCKeditor

Http://www.mediawiki.org/wiki/Extension:FCKeditor_ (by_fckeditor_and_wikia)

 

10. FCKeditor

Http://www.mediawiki.org/wiki/Extension:LanguageSelector

 

11. Export

Http://www.mediawiki.org/wiki/Extension:Pdf_Export_Dompdf

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.