_php tutorial on using the Linux-based PHP self-built wiki Wiki website

Source: Internet
Author: User
Tags build wiki
The advantage of having a wiki on your own computer is that there is no storage space, and the downside is that the whole process is a bit more cumbersome and must have good upload bandwidth. This article teaches you how to quickly build Wiki sites.

In the Web 2.0 Revolution, wikis originated earlier than blogs. Blog to be written and maintained by one of their own, the daily update of the blog will make your thinking dry, wiki technology and support its web page can let everyone together to share a common hobby. Wikis are completely open to everyone, including those who browse the wiki page. That is, everyone can create, modify, and delete page content on the site. Wikis are more team-player than blogs.

Usually we translate the wiki into "wiki". The word wiki is derived from the Hawaiian "Wee kee Wee Kee", which was originally meant to "Hurry up". Wiki is an online multi-person collaboration hypertext system Writing tool. Wiki sites support Collaborative, community-oriented writing, where everyone can express their own ideas or extend the themes that they collectively maintain. Wikis also include a set of assistive tools that support this writing, which can be created, changed, and published on a web basis on a wiki page, which is much simpler than making a Web page or updating a Web page.

There are two ways to implement a wiki: one is to provide a website registration in a wiki space, and you can start after registering. Another is to set up a wiki on their own computer, the advantage is no storage space limitations, the disadvantage is that the whole process a little trouble, but also must have a good upload bandwidth, but the number of visitors, the home adsl is enough. Although there are drawbacks to erecting wikis on your own computer, but the relative freedom is relatively large, here, the author teaches you how to set up a wiki on your computer in 10 minutes.

The lamp dynamic Wiki website that this article will build is the implementation method of the Linux-based PHP technology. LAMP (Linux + Apache + MySQL + PHP) has developed rapidly in recent years and has become a reality standard for Web servers. Although these components are not designed to be used in the first place, these open source software is readily available and free to use. This leads to the frequent use of these components. The compatibility of these components has improved over the last few years, and the application situation has become very general. PHP is a cross-platform, server-side embedded scripting language that draws heavily on the syntax of the C, Java, and Perl languages and joins PHP's own features to enable Web developers to quickly write dynamic pages. PHP supports all major databases. It is completely free and does not incur any charges when used.

In addition, if you want to use the zlib format on UNIX, BSD, and Linux platforms, you will need to install the dynamic Link function library zlib. Zlib official website: http://www.gzip.org/zlib/, compile-time note use the following command-line options:./configure--with-zlib.

selection of CMS software

If you search for open source content management from the Web, you will find a large number of sites, systems, and projects. In particular, Open Source Content Management oscom This site, which is specifically targeted for this topic. So what is a content management system? The definition from X-infomodel is one of the best definitions I have ever seen: "The processes and workflows involved in organizing, classifying, and structuring information resources to store, publish, and reuse these information resources in a variety of ways. Content Management Systems (CMS) are used to collect, manage, and publish content, store content in the form of components or complete documents, and maintain links between components. It can also provide content correction control. "Mambo, the Chinese meaning for Mambo music (originated in Cuban black music), is one of the most powerful open source content management systems. At the Linux users and Developers conference in London on April 20, 2004, Mambo emerged from a number of outstanding open source systems and won the 2004 Best Linux Open Source System award, with the same competition as KDE, Firebird SQL and Egroupware, Mambo's slogan is power in simplicity (powerful from simple). Mambo based on Php+mysql technology, it has the features of easy installation, simple management and high reliability. Mambo can build various types of Web sites around the world, small to simple personal sites, large to complex corporate application sites, Mambo can easily be done. Mambo is a content management system for publishing Web sites. Many modules have been added to provide features including shopping carts, banner ads, custom maps, chats and forums.

Building Wiki Sites

1. Mambo cms software download

#cd var/www/html

#wegt Http://mamboforge.net/frs/download.php/4211/mambo452-Global.zip

#unzip mambo452-global.zip "Create a Directory"

2. Mambo Database Creation

# mysql-u Root-p

Enter password:xxxxxxxxx

Your Mysql Connection ID is 3 to server version:4.11

Type ' help ', ' or ' h ' for help. Type ' C ' to clear the buffer.

mysql> Create Mambo database; "To build a database"

Query OK, 1 row affected (0.01 sec)

Mysql>grant all Mambo privileges in mambo.* to mambo@localhost identified by ' 76543981 ';? " Set the Mambo permissions to the Mambo account, and password "

Mysql>exit

3. Test whether the newly established database and account can be used

# Mysql-u-P

Enter password:xxxxxxxxx

Your Mysql Connection ID is 3 to server version:4.11 ...

Mysql> Connect Mambo;

Connection Id:5

Current database:

Mysql>show databases;

+--------------+

| Database |

+--------------+

| MySQL |

| Mambo |

+--------------+

2 rows in Set (0.00 sec)

Mysql> quit

4. Start the installation of Mambo

granting permissions

#cd/var/www/html/#进入到Apache Server does save the directory #

#chmod 777/var/www/html/mambo

The installation of a network is very simple, usually requires the following steps: Open Linux Firefox firefox browser in the address bar directly input: HTTP//Host name/mambo/installation/index.php, the pre-installation of the preparation of the work interface, Select the language option for green and then select Agree, then click on the "Next" button, as shown in Figure 1. Then whether to accept the Software license Agreement, select agree, click the "Next" button.



Figure 1 Pre-installation checks

MySQL Database settings

Note: The MySQL server name is localhost, this is the MySQL server name, not the Linux server name. The server name for MySQL is usually: localhost. MySQL database name is Mambo,mysql account is mambo and password is set above, database table header is usually mom_s, see Figure 2

http://www.bkjia.com/PHPjc/508487.html www.bkjia.com true http://www.bkjia.com/PHPjc/508487.html techarticle The advantage of having a wiki on your own computer is that there is no storage space, and the downside is that the whole process is a bit more cumbersome and must have good upload bandwidth. This article teaches you how to quickly ...

  • Related Article

    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.