How to install wikis under Freebsd5.4release _unix Linux

Source: Internet
Author: User
Tags create database mediawiki
Today in the morning a period of time, completed the installation of the MediaWiki service, using the version of mediawiki-1.5.2, installation steps:

1, download the following required software

Php-4.3.9.tar.gz
Apache_1.3.33.tar.gz
Mysql-4.0.21.tar.gz
Mediawiki-1.5.2.tar.gz

Copy the downloaded software to the server via FTP (/home/funpower)

2. Install Apache and PHP

# Cd/home/funpower
# tar ZXVF apache_1.3.33.tar.gz
# tar ZXVF php-4.3.9.tar.gz
# CD apache_1.3.33
#./configure--prefix=/usr/local/apache
# CD php-4.3.9
#./configure--with-apache=. /apache_1.3.33--with-mysql--disable-debug--enable-track-vars
# CP Php.ini-dist/usr/local/lib
# Cd/usr/local/lib
# MV Php.ini-dist php.ini
# CD apache_1.3.33
#./configure--prefix=/usr/local/apache--activate-module=src/modules/php4/libphp4.a
# make
# make Install

Configure/usr/local/apache/conf/httpd.conf
Join:
AddType application/x-httpd-php. php
AddType Application/x-httpd-php-source. Phps
and modify the following:
Servername itnew.3322.org
DirectoryIndex index.php

To add Apache to a startup item:
# ee/etc/rc.local
Add the following line:
/usr/local/apache/bin/apachectl start

Restart the server, create a new test.php under/usr/local/apache/htdocs, and then enter http://yourdomain.com/test.php, and if you can see php-4.3.9 information, Apache and PHP are installed successfully.

3, install MySQL

# Cd/home/funpower
# PW Groupadd MySQL
# PW AddUser mysql-g mysql-s/nonexitent
# tar ZXVF mysql-4.0.21.tar.gz
#./configure--prefix=/usr/local/mysql
# make
# make Install
At this point, the MySQL installation is complete, the following start the specific configuration.

Run the script
# CD Scripts
#./mysql_install_db

Changing file and Directory permissions
# Chown-r Root/usr/local/mysql
# Chown-r Mysql/usr/local/mysql/var
# Chgrp-r Mysql/usr/local/mysql

Copy configuration file to/etc
# CP.. /support-files/my-medium.cnf/etc/my.cnf

Add a startup script to enable MySQL to start with the system
# echo "/usr/local/mysql/bin/mysqld_safe--user=mysql &" >>/etc/rc.local

Start MySQL
# Cd/usr/local/mysql/bin
#./mysqld_safe--user=mysql &

Change the MySQL root password
# Cd/usr/local/mysql/bin
#./mysqladmin-u root password ' 123456 '

Copy MySQL's libmysqlclient.so.10
# cp/usr/local/mysql/lib/mysql/*/usr/lib
# cp/usr/local/mysql/include/mysql/*/usr/include

Add database and database username used by wiki
# Cd/usr/local/mysql/bin
#./mysql-u root-p
mysql> CREATE DATABASE Wikidb;
Mysql> Grant all on wikidb.* to wikidb@localhost identified by ' 654321 ';
mysql> flush Privileges;
Mysql> exit

4. Installation MediaWiki

# Cd/home/funpower
# tar ZXVF mediawiki-1.5.2.tar.gz
# Mkdir/usr/local/apache/htdocs/wiki
# CD mediawiki-1.5.2
# Cp–r */usr/local/apache/htdocs/wiki

In IE browser input http://127.0.0.1/wiki/, fill out some wiki installation basic parameters, fill in the database and database user name is just created the database. After filling in, click "Install" button, complete the installation.

Complete the last few steps:

# Cd/usr/local/apache/htdocs/wiki/config
# CP CP LocalSettings.php. /
# CD ... /
# MV Config Config.bak

Visit http://127.0.0.1/wiki/, appear home, installation success!
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.