1 views
実現する機能
何度も見返して記憶の定着や理解を深める、そんなデジタル学習ノートを構築するために、最初に試して見ようと思ったのがMediaWikiです。主に仕事での利用を考えています。
しかし、いざインストールしようとすると環境構築が必要です。今回ご紹介するのは、その環境構築編です。
事前準備
Webサーバー構築・公開(Apache)とデータベースサーバーの構築(MySQL)が終わっていること
※PHP5.3.1は、MediaWikiでは使用禁止になっています。
PHPの環境整備
[root@ufuso ~]# php -v ← PHPのバージョンを確認
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11) ← PHPは5.3.3なので問題無し
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
※PHPがインストールされていない場合
[root@ufuso ~]# yum -y install php php-mbstring php-pear ← MediaWikiのインス
トールに最低必要なもの
|
APCのインストール(やらなくてもMediaWikiはインストールOK)
[root@ufuso ~]# yum -y install php-pecl-apc ← php-pecl-apcのインストール |
intl PECLのインストール(やらなくてもMediaWikiはインストールOK)
[root@ufuso ~]# yum -y install gcc-c++ ← インストールに必要なコンパイルツール Installed: gcc-c++.x86_64 0:4.4.7-3.el6 Dependency Installed: libstdc++-devel.x86_64 0:4.4.7-3.el6 Complete! [root@ufuso ~]# yum -y install php-devel ← peclに必要なphp-develのインストール Installed: php-devel.x86_64 0:5.3.3-22.el6 Dependency Installed: autoconf.noarch 0:2.63-5.1.el6 automake.noarch 0:1.11.1-4.el6 Complete! [root@ufuso ~]# yum -y install httpd-devel ← peclに必要なhttpd-develのインストール Installed: httpd-devel.x86_64 0:2.2.15-26.el6.centos Dependency Installed: apr-devel.x86_64 0:1.3.9-5.el6_2 apr-util-devel.x86_64 0:1.3.9-3.el6_0.1 cyrus-sasl-devel.x86_64 0:2.1.23-13.el6_3.1 db4-cxx.x86_64 0:4.7.25-17.el6 db4-devel.x86_64 0:4.7.25-17.el6 expat-devel.x86_64 0:2.0.1-11.el6_2 openldap-devel.x86_64 0:2.4.23-32.el6_4.1 Complete! [root@ufuso ~]# yum install icu libicu-devel ← intlのインストールに必要なicu とlibicu-develのインストール Package icu-4.2.1-9.1.el6_2.x86_64 already installed and latest version Package libicu-devel-4.2.1-9.1.el6_2.x86_64 already installed and latest version Nothing to do ← インストール済み [root@ufuso ~]# pecl install intl ← intlのインストール WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading intl-2.0.1.tgz ... Starting to download intl-2.0.1.tgz (149,430 bytes) .........done: 149,430 bytes 111 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 Specify where ICU libraries and headers can be found [DEFAULT] : ← enter key 押下 building in /var/tmp/pear-build-root1gVYBX/intl-2.0.1 running: /var/tmp/intl/configure --with-icu-dir=DEFAULT checking for grep that handles long lines and -e... /bin/grep ・・・ ・・・ configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands running: make ・・・ ・・・ Build complete. Don't forget to run 'make test'. running: make INSTALL_ROOT="/var/tmp/pear-build-root1gVYBX/install-intl-2.0.1" install Installing shared extensions: /var/tmp/pear-build-root1gVYBX/install-intl-2.0.1/usr/lib64/php/modules/ running: find "/var/tmp/pear-build-root1gVYBX/install-intl-2.0.1" | xargs ls -dils ・・・ ・・・ Build process completed successfully Installing '/usr/lib64/php/modules/intl.so' install ok: channel://pecl.php.net/intl-2.0.1 ← intlのインストールは成功 configuration option "php_ini" is not set to php.ini location You should add "extension=intl.so" to php.ini ← php.iniにextension=intl.soを追記の指示 [root@ufuso ~]# vi /etc/php.ini ← php.iniの編集 ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; extension=intl.so ← 指示どおり追記 ; If you wish to have an extension loaded automatically, use the following ; syntax: [root@ufuso ~]# service httpd restart ← WEBサーバー再起動 httpd を停止中: [ OK ] httpd を起動中: [ OK ] |
コメントを残す