Install wikimedia
#########################################################
# #
# OS: Fedora Core 6 #
# Date: 2007.5.22 #
# Server: Apache/2.2.3 #
# Homepage: http://www.mediawiki.org/ #
# #
#########################################################
## Download wiki package
cd /usr/local/src/
wget http://download.wikimedia.org/mediawiki/1.10/mediawiki-1.10.0.tar.gz
tar xvfzp mediawiki-1.10.0.tar.gz
mv mediawiki-1.10.0 mediawiki
## Install DB
wget http://mysql.byungsoo.net/Downloads/MySQL-5.0/MySQL-server-5.0.41-0.glibc23.i386.rpm
wget http://mysql.byungsoo.net/Downloads/MySQL-5.0/MySQL-devel-5.0.41-0.glibc23.i386.rpm
wget http://mysql.byungsoo.net/Downloads/MySQL-5.0/MySQL-Max-5.0.37-0.glibc23.i386.rpm
wget http://mysql.byungsoo.net/Downloads/MySQL-5.0/MySQL-shared-5.0.41-0.glibc23.i386.rpm
wget http://mysql.byungsoo.net/Downloads/MySQL-5.0/MySQL-bench-5.0.41-0.glibc23.i386.rpm
wget http://mysql.byungsoo.net/Downloads/MySQL-5.0/MySQL-client-5.0.41-0.glibc23.i386.rpm
rpm -ivh MySQL-devel-5.0.41-0.glibc23.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-devel ########################################### [100%]
rpm -ivh MySQL-shared-5.0.41-0.glibc23.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [100%]
rpm -ivh MySQL-server-5.0.41-0.glibc23.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h MyLinux password 'new-password'
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL[ OK ]
Thank you for installing the MySQL Community Server! For Production
systems, we recommend MySQL Enterprise, which contains enterprise-ready
software, intelligent advisory services, and full production support with
scheduled service packs and more. Visit www.mysql.com/enterprise for more
information.
rpm -ivh MySQL-client-5.0.41-0.glibc23.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
rpm -ivh MySQL-Max-5.0.37-0.glibc23.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-Max ########################################### [100%]
Restarting mysqld.
rpm -ivh MySQL-bench-5.0.41-0.glibc23.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-bench ########################################### [100%]
/usr/bin/mysqladmin -u root -h MyLinux password 'password'
mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.37-max MySQL Community Edition - Experimental (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.00 sec)
## Install mediawiki
cd /usr/local/src/mediawiki
chmod a+w config
## Add httpd.conf
<VirtualHost *:80>
DocumentRoot /usr/local/src/mediawiki
ServerName www.wiki.com
ErrorLog logs/wiki-error_log
CustomLog logs/wiki-access_log common
</VirtualHost>
## Install PHP
yum install php-gd.i386
yum install php-mysql.i386
yum install php-xml.i386
yum install php-devel.i386
/etc/rc.d/init.d/httpd restart
## Change php.ini
vi /etc/php.ini
memory_limit = 32M ; Maximum amount of memory a script may consume
;memory_limit = 16M ; Maximum amount of memory a script may consume
## Install eAccelerator
cd /usr/local/src/
wget http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.tar.bz2
bzip2 -dc eaccelerator-0.9.5.tar.bz2 | tar xvf -
mv eaccelerator-0.9.5 eaccelerator
cd eaccelerator
phpize
./configure
make
make install
vi /etc/php.ini
-- Insert php.ini
[eaccelerator]
zend_extension="/usr/lib/php/modules/eaccelerator.so"
;zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
/etc/rc.d/init.d/httpd restart
## Create wiki user
mysql -u root -p
INSERT INTO `user` VALUES ('localhost','wikiuser',PASSWORD('password'),'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
FLUSH PRIVILEGES;
create database wikidb;
## Install mediawiki (Web)
connect http://www.wiki.com
--After finish the installation.
cd /usr/local/src/mediawiki
mv config/LocalSettings.php .
connect http://www.wiki.com/index.php/