カスタム検索
|
Tweet |
|
|
2つめ(複数)のXOOPSをインストールする
Modified: 16 July 2005
ひとつのサーバで複数のXOOPSを動かす、といっても実は、XOOPS自身がサポートしているので、インストールに気をつければ簡単です。
XOOPSを再度解凍
XOOPSを再度解凍し、異なるディレクトリ名で移動します。
# tar zxvf xoops-2.0.10.2-JP.tar.gz : # mv xoops-2.0.10.2-JP xoops-2.0.10.2-JP-2 # mv xoops-2.0.10.2-JP-2 /var/www/html # cd /var/www/html : # ln -s xoops-2.0.10.2-JP-2/html xoops-2以下のアクセス権を変更します。
# cd /var/www/html/xoops-2 # chmod 777 uploads # chmod 777 cache # chmod 777 templates_c # chmod 666 mainfile.php #
インストーラの起動
以下のURLから、ブラウザでインストーラを起動します。
http://192.168.0.74/xoops-2/install/index.php
インストールの注意事項
以下の基本的な環境を設定で、「テーブル接頭語」のところを変更します。
つまり、2つのXOOPSは、同じデータベースの中に、接頭辞を付加したテーブル名を使うことで、分離しています。
![]()
後はそのままインストールすればOKです。
テーブルを見てみる
本当に分離されているかどうか、MySQL内のテーブルを確認してみます。
mysql> show tables; +---------------------------+ | Tables_in_xoops2 | +---------------------------+ | shn_avatar | | shn_avatar_user_link | | shn_banner | | shn_bannerclient | | shn_bannerfinish | | shn_block_module_link | | shn_config | | shn_configcategory | | shn_configoption | | shn_group_permission | | shn_groups | | shn_groups_users_link | | shn_image | | shn_imagebody | | shn_imagecategory | | shn_imgset | | shn_imgset_tplset_link | | shn_imgsetimg | | shn_modules | | shn_newblocks | | shn_online | | shn_priv_msgs | | shn_ranks | | shn_session | | shn_smiles | | shn_tplfile | | shn_tplset | | shn_tplsource | | shn_users | | shn_xoopscomments | | shn_xoopsfaq_categories | | shn_xoopsfaq_contents | | shn_xoopsnotifications | | xoops_avatar | | xoops_avatar_user_link | | xoops_banner | | xoops_bannerclient | | xoops_bannerfinish | | xoops_block_module_link | | xoops_config | | xoops_configcategory | | xoops_configoption | | xoops_group_permission | | xoops_groups | | xoops_groups_users_link | | xoops_image | | xoops_imagebody | | xoops_imagecategory | | xoops_imgset | | xoops_imgset_tplset_link | | xoops_imgsetimg | | xoops_modules | | xoops_mylinks_broken | | xoops_mylinks_cat | | xoops_mylinks_links | | xoops_mylinks_mod | | xoops_mylinks_text | | xoops_mylinks_votedata | | xoops_newblocks | | xoops_online | | xoops_priv_msgs | | xoops_ranks | | xoops_session | | xoops_smiles | | xoops_stories | | xoops_topics | | xoops_tplfile | | xoops_tplset | | xoops_tplsource | | xoops_users | | xoops_xoopscomments | | xoops_xoopsfaq_categories | | xoops_xoopsfaq_contents | | xoops_xoopsnotifications | +---------------------------+ 74 rows in set (0.00 sec) mysql>上記のように先頭の文字列が異なる、2つのテーブル群が確認できます。