Steps for building a wiki website

Source: Internet
Author: User
Tags mediawiki
Download the Chinese version of MediaWiki and download APMServ. It is a silly tool built in the green PHP + MySQL environment. It is very easy to use and is strongly recommended! Extract the apmservinstallation file to a folder, click apmserv.exe, and click "Start APMServ" to automatically build the Apache server and MySQL database. Click "manage MySQL Database" to log on to http: // 127.0.0.1/phpmyadmin/. The default logon name is root, and the password is not required, click the "execute" button to go To the MySQL database management interface.

 

Before installing MediaWiki, you must set a database account in MySQL. Use PHPMyAdmin to set an account: Enter http: // 127.0.0.1/phpmyadmin and add a new user in the "permission" connection> on the current page.

Paste all files under the MediaWiki program file to the htdocs folder under the www folder under the APMServ directory and enter http: // 127.0.0.1 in the address bar to go to the installation interface of the MediaWiki website, follow the steps to add (it is an English interface, a little uncomfortable) Remember to set LocalSettings In the config folder. put the php file in the htdocs directory (this file is automatically generated after WiKi is installed and does not exist in the source code .) Setting LocalSettings. php is actually opening it on that page with notepad, and then adding some command text. (Remember to go to "?> "Mark the front !) Some of my current settings are: $ wgGroupPermissions ['*'] ['read'] = true; $ wgGroupPermissions ['*'] ['edit'] = false; $ wgGroupPermissions ['user'] ['edit'] = false; $ wgGroupPermissions ['student '] ['edit'] = true;

$ WgLogo = "/images/120px-Book.png ";

Explanation: $ wgGroupPermissions ['*'] ['read'] = true; it is an article that allows all visitors to read the website; $ wgGroupPermissions ['*'] ['edit'] = false; it is used to set that all visitors cannot modify the website; $ wgGroupPermissions ['user'] ['edit'] = false; it is used to set that all registered users cannot modify the website; $ wgGroupPermissions ['student '] ['edit'] = true; Sets registered users. If they are student groups, they can edit articles. (student is the group I directly added)

$ WgLogo = "/images/120px-Book.png"; specifies the MediaWiKi LOGO;

How to add a new article: Enter the question you want to write in the "Search" text box and click "enter". If it is not the same as your question, there will be a "create this page" connection

 

I have written some articles. I want to put the links of these articles on my homepage so that the author can see these articles on this website. What should I do? My current practice is to edit the homepage, enter "[your article name]", and save the page so that a link is formed on the homepage. Please leave a message if you have any better methods.

 

Set permissions for users:

To change the user group to which a user belongs, log on as the administrator (sysop) and then go to Special: Userrights (user permission management ). Each user group can be assigned a combination of the following permissions (permissions. Another method: toolbox> special page.

 

Allow File Upload settings: Add a command $ wgEnableUploads = true to LocalSettings. php;

$ WgFileExtensions = array ('png ', 'gif', 'jpg', 'jpeg ', 'doc', 'ppt ', 'pdf ');

After the image is uploaded, only the connection is displayed and the image itself is not displayed. What should I do: Add a command in LocalSettings. php to $ wgAllowExternalImages = true;

 

In addition, if you want to design and beautify the WiKi page, you need to learn some basic syntax and HTML syntax of the WiKi interface, which will not be detailed here.

 

If you install MediaWiKi directly on the purchased network space instead of testing on the local machine, note the following:

You don't have to configure the environment. You can directly operate on the Space Control Panel provided by the Space Provider.

Place all files under the MediaWiki program file to the root directory specified by the Space Provider. The other steps are the same as those described above.

During the installation process, make sure to fill in "localhost" when you enter the DataBase address. (I wrote the IP address of the remote DataBase server intelligently, but it took a lot of time ).

We recommend that you use the FTP tools we usually use when uploading files, such as FlashFTP, which is fast and skillful. I tried uploading files on the control panel provided by the Space Provider, and I felt the operation efficiency was low, the upload speed is slow. It is still easy to use with familiar tools.

 

 

 

 

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.