Install mediawiki-Linux Enterprise Application-Linux server application under fedoracore6. For more information, see. Reprinted with indicated source http://blog.chinaunix.net/u/4670/showart_431951.html
1. Build a php + mysql + apache Platform
1.1 download mysql-5.0.45-linux-i686-glibc23.tar.gz from www.mysql.com,
No installation required. Unzip the package and move it to/usr/local/mysql.
# Groupadd mysql # create a mysql Group
# Useradd mysql-g mysql # create a mysql user and add it to the mysql Group
Then set permissions
# Chown-R root. # Set root to access/usr/local/mysql
# Chown-R mysql data # Set mysql users to access/usr/local/mysql/data, which contains mysql database files
# Chown-R mysql data/. # Set mysql users to access all files under/usr/local/mysql/data
# Chown-R mysql data/mysql/. # Set mysql users to access all files in/usr/local/mysql/data/mysql
# Chgrp-R mysql. # Set the mysql group to access/usr/local/mysql
#/Usr/local/mysql/bin/mysql_install_db // initialize authorization
# Chown? R root: root/usr/local/mysql // File Attribute changed to root user
# Cp/usr/local/mysql/share/mysql/my-medium.cnf/etc/my. cnf // copy the configuration file
---------------------------------- Start the MySQL service ----------------------------------
#/Usr/local/mysql/bin/mysqld_safe -- user = root & // start MySQL
-------------------------------- Change the MySQL password ----------------------------------
#/Usr/local/mysql/bin/mysqladmin-uroot password mysqlsecret // change the password
---------------------------------- Close the MySQL service ----------------------------------
#/Usr/local/mysql/bin/mysqladmin-uroot-pmysqlsecret shutdown // close MySQL
1.2 create a wiki Database
Mysql-u root-p
Mysql> create database wikidb;
Mysql> show databases ;;
2. install apache
2.1 Download the httpd package
#./Configure -- prefix =/usr/local/apache \
-- Enable-module = most \
-- Enable-shared = max
# Make
# Make install
---------------------------------- Start the Apache service ----------------------------------
#/Usr/local/apache/bin/apachectl start
---------------------------------- Close the Apache service ----------------------------------
#/Usr/local/apache/bin/apachectl stop
-------------------------------- Restart the Apache service ----------------------------------
#/Usr/local/apache/bin/apachectl restart
3. install php
# Tar zvxf php-5.1.6.tar.gz
# Cd php-5.1.6
#./Configure -- prefix =/usr/local/php -- with-mysql =/usr/local/mysql-with-apxs2 =/usr/local/apache/bin/apxs
Note: If the mysql rpm package is installed, -- with-mysql
# Make
# Make install
# Cp php. ini-dist/usr/local/php/lib/php. ini
4. Configure the httpd. conf file of the Apache service
* Add LoadModule php5_module module/libphp5.so to LoadModule.
* Add index. php at DirectoryIndex
* Add in AddType application
AddType application/x-httpd-php. php. phtml
AddType applicatoin/x-httpd-php-source. phps
5. Download The mediawiki package and decompress it,
----------------------------------------------------------------------
Mysql startup error, prompt:
Starting mysqld daemon with databases from/usr/local/mysql/data
STOPPING server from pid file/usr/local/mysql/data/xmcncn. pid
Mysqld ended
Refer to the online solution:
Touch/tmp/mysql. sock
Killall-9 mysqld
/Usr/local/mysql/bin/mysqld_safe-user = mysql &
Started successfully
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.