Wikimedia server setup on cent os 5

http://blog.javachap.com/index.php/installing-mediawiki-on-linux-centos/

http://blog.sina.com.cn/s/blog_606ac2740100ghfr.html

http://benramsey.com/blog/2012/03/build-php-54-on-centos-62/

http://www.mediawiki.org/wiki/Installation


cent os 

install MediaWiki requires Apache web server, a database server (we’ll use MySQL), and PHP version 5.  I



1、使用命令 rpm -qa|grep 列出需要卸載的軟件包

rpm -qa|grep php

使用rpm -e 加包名

rpm -e php-4.3.9-3.15 


 yum install yum-priorities


Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

  1. sudo vim /etc/apache2/httpd.conf
  2. Insert the following line at the httpd.conf: ServerName localhost
  3. Just restart the Apache: sudo /etc/init.d/apache2 restart



cannot make, 確保此前的“./configure”這一操作能順利執行

Error: mysql conflicts with MySQL-server解決辦法:use php 5.4 w


./configure --prefix=/usr/php --exec-prefix=/usr/bin --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --with-apxs2=/usr/sbin/apxs --with-libxml-dir=/usr/lib --enable-zip --with-mysql=/usr/local/mysql/ --with-pdo-mysql=/usr/local/mysql/ --with-mysqli=/usr/bin/mysql_config --with-jpeg-dir=/usr/lib --enable-exif --with-gd --enable-soap --enable-sockets --enable-mbstring --with-freetype-dir=/usr/bin --enable-mbstring=all --enable-mbregex --with-zlib --with-bz2 --enable-calendar --with-iconv --with-mcrypt




cannot make, 確保此前的“./configure”這一操作能順利執行

Error: mysql conflicts with MySQL-server解決辦法:use php 5.4 w

10229  2012-09-13 11:27:49 yum update

10230  2012-09-13 11:36:30 yum install httpd

10231  2012-09-13 11:37:43 chkconfig httpd on

10232  2012-09-13 11:37:48 service httpd start

10233  2012-09-13 11:40:19 ls /etc/apache2/httpd.conf

10234  2012-09-13 11:40:24 ls /etc/apt/

10235  2012-09-13 11:40:28 ls /etc/apache

10236  2012-09-13 11:40:31 ls /etc/

10237  2012-09-13 11:50:26 yum -y groupinstall "Web Server"

10238  2012-09-13 11:50:59 yum install "Web Server"

10239  2012-09-13 11:51:11 yum install httpd

10240  2012-09-13 11:51:30 which httpd

10241  2012-09-13 11:53:37 find / -name apache2.conf

10242  2012-09-13 11:56:17 chkconfig httpd on

10243  2012-09-13 11:56:22 service httpd start

10244  2012-09-13 11:57:16 find / -name httpd.conf

10245  2012-09-13 11:57:34 vi /etc/httpd/conf/httpd.conf 

10246  2012-09-13 11:58:20 /etc/init.d/apache2 restart

10247* 2012-09-13 11:58:42 apache2ctl restar

10248* 2012-09-13 11:58:58 

10249  2012-09-13 11:59:15 ls /etc/httpd/run/

10250  2012-09-13 11:59:26 which httpd

10251  2012-09-13 11:59:44 which apache2

10252  2012-09-13 12:00:28 find / -name apache2

10253  2012-09-13 12:00:37 find / -name apache2ctl

10254  2012-09-13 12:01:16 ls vi /etc/httpd

10255  2012-09-13 12:01:20 ls vi /etc/httpd

10256  2012-09-13 12:01:25 ls /etc/httpd

10257  2012-09-13 12:02:16 service httpd start

10258  2012-09-13 12:03:08 vi /etc/httpd/conf/httpd.conf 

10259  2012-09-13 12:03:41 service httpd start

10260  2012-09-13 12:12:58 vi /etc/httpd/conf/httpd.conf 

10261  2012-09-13 12:13:11 service httpd start

10262  2012-09-13 12:15:05 vi /etc/httpd/conf/httpd.conf 

10263  2012-09-13 12:15:17 vi /etc/httpd/conf/httpd.conf 

10264  2012-09-13 12:15:43 service httpd restart

10265  2012-09-13 12:16:52 vi /etc/httpd/conf/httpd.conf 

10266  2012-09-13 12:18:34 service httpd restart

10267  2012-09-13 12:18:42 vi /etc/httpd/conf/httpd.conf 

10268  2012-09-13 12:21:42 ls

10269  2012-09-13 12:23:21 wget http://www.apachefriends.org/download.php?xampp-linux-1.8.0.tar.gz

10270  2012-09-13 13:44:34 ls

10271  2012-09-13 14:00:05 tar xvfz xampp-linux-1.8.0.tar.gz -C /opt/wiki

10272  2012-09-13 14:00:13 mkdir /opt/wiki

10273  2012-09-13 14:00:15 tar xvfz xampp-linux-1.8.0.tar.gz -C /opt/wiki

10274  2012-09-13 14:01:22 cd /opt/wiki

10275  2012-09-13 14:01:23 ls

10276  2012-09-13 14:01:25 cd lampp/

10277  2012-09-13 14:01:26 ls

10278  2012-09-13 14:01:39 ./lampp start

10279  2012-09-13 14:04:54 apt-get install ia32-libs

10280  2012-09-13 14:05:04 port install ia32-libs

10281  2012-09-13 14:05:16 yum install ia32-libs

10282  2012-09-13 14:08:21 which mysql-server

10283  2012-09-13 14:08:26 which mysql

10284  2012-09-13 14:08:42 yum install php

10285  2012-09-13 14:10:53 yum install php-mysql

10286  2012-09-13 14:13:05 USE mysql;

10287  2012-09-13 14:14:58 mysql -uroot -pc8U32BcTNtCYeZyfput6a2C9 

10288  2012-09-13 14:15:07 mysql -hlocalhost -uroot -pc8U32BcTNtCYeZyfput6a2C9 

10289  2012-09-13 14:16:24 man mysql

10290  2012-09-13 14:16:52 mysql--user=root --password=c8U32BcTNtCYeZyfput6a2C9 

10291  2012-09-13 14:16:55 mysql --user=root --password=c8U32BcTNtCYeZyfput6a2C9 

10292  2012-09-13 14:17:12 mysql --user=root --password=c8U32BcTNtCYeZyfput6a2C9 

10293  2012-09-13 14:18:44 mysql --user=wiki --password=123456 

10294  2012-09-13 14:18:56 mysql -h127.0.0.1 --user=wiki --password=123456 

10295  2012-09-13 14:20:04 mysql -h localhost -uwiki -p123456 

10296  2012-09-13 14:33:21 cd ..

10297  2012-09-13 14:33:21 ls

10298  2012-09-13 14:33:23 wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.1.tar.gz

10299  2012-09-13 14:35:22 tar -xvvf mediawiki-1.15.1.tar.gz 

10300  2012-09-13 14:35:24 ls

10301  2012-09-13 14:35:28 cd mediawiki-1.15.1

10302  2012-09-13 14:35:28 ls

10303  2012-09-13 14:35:45 ls /var/www/html/wiki

10304  2012-09-13 14:35:50 mkdir /var/www/html/wiki

10305  2012-09-13 14:36:07 rm /var/www/html/wiki

10306  2012-09-13 14:36:12 rm -rf /var/www/html/wiki

10307  2012-09-13 14:36:17 mediawiki-1.15.1 /var/www/html/wiki

10308  2012-09-13 14:36:22 mv mediawiki-1.15.1 /var/www/html/wiki

10309  2012-09-13 14:36:31 ..

10310  2012-09-13 14:36:35 mv mediawiki-1.15.1 /var/www/html/wiki

10311  2012-09-13 14:36:39 cd ..

10312  2012-09-13 14:36:40 mv mediawiki-1.15.1 /var/www/html/wiki

10313  2012-09-13 14:37:06 chmod a+w /var/www/html/wiki/config

10314  2012-09-13 14:37:24 ll /var/www/html

10315  2012-09-13 14:37:40 ll /var/www

10316  2012-09-13 14:38:49 service httpd restart

10317  2012-09-13 14:39:49 history

10318  2012-09-13 14:39:58 vi vi /etc/httpd/conf/httpd.conf

10319  2012-09-13 14:40:03 vi /etc/httpd/conf/httpd.conf

10320  2012-09-13 14:41:20 yum install php-mysql

10321  2012-09-13 14:44:04 which php

10322  2012-09-13 14:44:13 ll php

10323  2012-09-13 14:44:19 ll /usr/bin/php

10324  2012-09-13 14:44:29 cd /usr/bin/

10325  2012-09-13 14:44:29 ls

10326  2012-09-13 14:44:56 where php

10327  2012-09-13 14:44:59 which php

10328  2012-09-13 14:46:37 ps -ef | grep mysql

10329  2012-09-13 14:49:09 mysql -version

10330  2012-09-13 14:49:15 mysql -v

10331  2012-09-13 14:50:48 mysql -V

10332  2012-09-13 14:50:55 php -V

10333  2012-09-13 14:50:59 php -v

10334  2012-09-13 14:51:27 yum install php

10335  2012-09-13 14:51:37 yum update php

10336  2012-09-13 14:55:01 rpm -qa|grep php

10337  2012-09-13 14:55:21 rpm -e php-5.1.6-39.el5_8

10338  2012-09-13 14:55:24 rpm -qa|grep php

10339  2012-09-13 14:55:33 rpm -e php-common-5.1.6-39.el5_8

10340  2012-09-13 14:55:41 rpm -e php-cli-5.1.6-39.el5_8

10341  2012-09-13 14:55:43 rpm -e php-common-5.1.6-39.el5_8

10342  2012-09-13 14:56:29 rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm

10343  2012-09-13 14:57:18 yum install php54

10344  2012-09-13 14:57:49 yum install yum-priorities

10345  2012-09-13 14:58:14 rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm

10346  2012-09-13 14:58:24 yum install php54 php54-common php54-devel

10347  2012-09-13 15:00:53 ls

10348  2012-09-13 15:01:23 cd ~

10349  2012-09-13 15:01:23 ls

10350  2012-09-13 15:01:28 cd downloads/

10351  2012-09-13 15:01:28 ls

10352  2012-09-13 15:01:30 ..

10353  2012-09-13 15:01:32 cd ..

10354  2012-09-13 15:01:33 ls

10355  2012-09-13 15:01:42 cd ..

10356  2012-09-13 15:01:43 ls

10357  2012-09-13 15:01:46 cd var/

10358  2012-09-13 15:01:47 ls

10359  2012-09-13 15:01:55 cd sbin

10360  2012-09-13 15:01:55 ls

10361  2012-09-13 15:01:57 cd ..

10362  2012-09-13 15:01:58 cd sbin

10363  2012-09-13 15:01:58 ls

10364  2012-09-13 15:02:07 cd ..

10365  2012-09-13 15:02:07 ls

10366  2012-09-13 15:02:10 cd root/

10367  2012-09-13 15:02:10 ls

10368  2012-09-13 15:02:13 mkdir wiki

10369  2012-09-13 15:02:14 ls

10370  2012-09-13 15:02:15 cd wiki/

10371  2012-09-13 15:02:16 ls

10372  2012-09-13 15:02:18 wget http://www.php.net/get/php-5.4.0.tar.bz2/from/this/mirror

10373  2012-09-13 15:11:53 tar jxf php-5.4.0.tar.bz2 

10374  2012-09-13 15:11:59 ls

10375  2012-09-13 15:12:01 cd php-5.4.0

10376  2012-09-13 15:12:02 ls

10377  2012-09-13 15:14:01 ls

10378  2012-09-13 15:14:04 vi configure

10379  2012-09-13 15:17:09 vi configure

10380  2012-09-13 15:18:32 which mysql

10381  2012-09-13 15:20:47 ll /var/lib/mysql/

10382  2012-09-13 15:20:53 ll /var/lib/mysql/mysql

10383  2012-09-13 15:21:10 ll /var/lib/mysql/wiki

10384  2012-09-13 15:21:21 ll /var/lib/mysql/ReportDB

10385  2012-09-13 15:21:46 ll /usr/bin/mysql_config 

10386  2012-09-13 15:22:13 vi config

10387  2012-09-13 15:22:16 vi configure

10388  2012-09-13 15:24:29 ls /usr/local/mysql/

10389  2012-09-13 15:24:39 ls /usr/local/mysql/bin/

10390  2012-09-13 15:25:29 ls /usr/local/mysql/lib/

10391  2012-09-13 15:25:44 which mysql

10392  2012-09-13 15:26:30 vi configure

10393  2012-09-13 15:32:32 ./configure --prefix=/usr/php --exec-prefix=/usr/bin --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --with-apxs2=/usr/sbin/apxs --with-libxml-dir=/usr/lib --enable-zip --with-mysql=/var/lib/mysql --with-pdo-mysql=/var/lib/mysql --with-mysqli=/usr/bin/mysql_config --with-jpeg-dir=/usr/lib --enable-exif --with-gd --enable-soap --enable-sockets --enable-mbstring --with-freetype-dir=/usr/bin --enable-mbstring=all --enable-mbregex --with-zlib --with-bz2 --enable-calendar --with-iconv --with-mcrypt

10394  2012-09-13 15:33:16 wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

10395  2012-09-13 15:33:46 rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

10396  2012-09-13 15:33:55 rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm

10397  2012-09-13 15:34:02 rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm

10398  2012-09-13 15:34:10 yum install libmcrypt-devel

10399  2012-09-13 15:34:32 ./configure --prefix=/usr/php --exec-prefix=/usr/bin --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --with-apxs2=/usr/sbin/apxs --with-libxml-dir=/usr/lib --enable-zip --with-mysql=/var/lib/mysql --with-pdo-mysql=/var/lib/mysql --with-mysqli=/usr/bin/mysql_config --with-jpeg-dir=/usr/lib --enable-exif --with-gd --enable-soap --enable-sockets --enable-mbstring --with-freetype-dir=/usr/bin --enable-mbstring=all --enable-mbregex --with-zlib --with-bz2 --enable-calendar --with-iconv --with-mcrypt

10400  2012-09-13 15:35:02 make && make install

10401  2012-09-13 15:35:09 make

10402  2012-09-13 15:35:17 ls

10403  2012-09-13 15:35:26 make

10404  2012-09-13 15:36:08 make install

10405  2012-09-13 15:36:41 vi README.UNIX-BUILD-SYSTEM 

10406  2012-09-13 15:37:01 vi INSTALL 

10407  2012-09-13 15:37:48 ls

10408  2012-09-13 15:37:56 ls

10409  2012-09-13 15:38:02 mv rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm ../

10410  2012-09-13 15:38:04 make

10411  2012-09-13 15:39:30 ls /usr/local/mysql/

10412  2012-09-13 15:40:05 ./configure --prefix=/usr/php --exec-prefix=/usr/bin --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --with-apxs2=/usr/sbin/apxs --with-libxml-dir=/usr/lib --enable-zip --with-mysql=/usr/local/mysql/ --with-pdo-mysql=/usr/local/mysql/ --with-mysqli=/usr/bin/mysql_config --with-jpeg-dir=/usr/lib --enable-exif --with-gd --enable-soap --enable-sockets --enable-mbstring --with-freetype-dir=/usr/bin --enable-mbstring=all --enable-mbregex --with-zlib --with-bz2 --enable-calendar --with-iconv --with-mcrypt

10413  2012-09-13 15:40:51 make

10414  2012-09-13 15:41:03 make && make install

10415  2012-09-13 15:50:28 vi /etc/httpd/conf/httpd.conf

10416  2012-09-13 15:50:42 vi /etc/httpd/conf/httpd.conf

10417  2012-09-13 15:50:52 ls  /usr/lib64/httpd/modules/libphp5.so

10418  2012-09-13 15:51:10 vi /etc/httpd/conf/httpd.conf

10419  2012-09-13 15:51:49 service httpd restart

10420  2012-09-13 15:52:59 echo "<?php phpinfo();" > /var/www/html/phpinfo.php

10421  2012-09-13 16:09:27 cd /var/www/html/

10422  2012-09-13 16:09:27 ls

10423  2012-09-13 16:09:29 cd wiki/

10424  2012-09-13 16:09:29 ls

10425  2012-09-13 16:09:42 cp config/LocalSettings.php ../

10426  2012-09-13 16:10:06 service httpd restart

10427  2012-09-13 16:10:46 ls

10428  2012-09-13 16:11:19 cp config/LocalSettings.php ./

10429  2012-09-13 16:32:41 ls

10430  2012-09-13 16:33:07 cd images/

10431  2012-09-13 16:33:07 ls

10432  2012-09-13 16:33:09 ..

10433  2012-09-13 16:33:15 cd ..

10434  2012-09-13 16:33:31 find ./ -name *logo*

10435  2012-09-13 16:33:42 pwd

10436  2012-09-13 16:34:15 vi LocalSettings.php 

10437  2012-09-13 16:34:27 vi LocalSettings.php 

10438  2012-09-13 16:35:34 vi LocalSettings.php 

10439  2012-09-13 16:36:13 scp

10440  2012-09-13 16:36:18 pwd

10441  2012-09-13 16:50:06 cp /tmp/julu_logo.png ./

10442  2012-09-13 16:50:09 ls

10443  2012-09-13 16:50:16 vi LocalSettings.php 

10444  2012-09-13 16:51:38 service httpd restart

10445  2012-09-13 16:54:45 service httpd restart

10446  2012-09-13 16:55:01 cp /tmp/julu_logo.png ./

2012-09-13 15:08:38 yum install libxml2-devel httpd-devel libXpm-devel gmp-devel libicu-devel t1lib-devel aspell-devel openssl-devel bzip2-devel libcurl-devel libjpeg-devel libvpx-devel libpng-devel freetype-devel readline-devel libtidy-devel libxslt-devel

10230  2012-09-13 15:12:55 ls

10231  2012-09-13 15:13:11 ls /var/lib/mysql/

10232  2012-09-13 15:15:36 ls //usr/bin/

10233  2012-09-13 15:16:19 ls

10234  2012-09-13 15:16:24 ls /var/lib/

10235  2012-09-13 15:16:29 ls /var/lib/mysql/

10236  2012-09-13 15:16:45 which mysql

10237  2012-09-13 15:28:29 ls /var/lib/mysql

10238  2012-09-13 15:28:41 ls /usr/bin/mysql

發佈了69 篇原創文章 · 獲贊 2 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章