「Debian GNU/Linuxのインストール」の版間の差分

提供:MoodleDocs
移動先:案内検索
編集の要約なし
 
(Done!! :-))
 
(同じ利用者による、間の27版が非表示)
1行目: 1行目:
作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] 2007年1月31日 (水) 07:17 (CST)
==MoodleをDebianパッケージとしてインストールする==
==MoodleをDebianパッケージとしてインストールする==
===Using apt-get, aptitude or Synaptic===
===apt-get、aptitude または Synaptic の使用===


# Make sure your PC connected to the internet. (Moodle has been included with Debian Sarge. You don't need net connection, if you have the Debian Sarge CDs or DVDs that are configured as download repositories for apt-get, aptitude or synaptic). Use one of these:
# あなたのパーソナルコンピュータがインターネットに接続していることを確認してください (Moodleは、Debian Sargeに同梱されています。あなたが、apt-get、aptitudeまたはsynapticのリポジトリが入っているDevian SargeのCDまたはDVDを持っている場合、インターネットに接続する必要はありません)。次の中から一つのコマンドを実行してください:
#*apt-get install moodle
#*apt-get install moodle
#*aptitude install moodle
#*aptitude install moodle
#*Run the synaptic package manager and search (Ctrl + f) for "moodle" (without quotes). You will get moodle in the results (if not, you need to configure your download URLs). Right click and select "Mark for Installation". Click "Apply" button on the Toolbar.
#*synapticパッケージマネージャを実行して、「moodle」を検索 (Ctrl + f) してください。検索結果にMoodleが表示されます (表示されない場合、ダウンロードURLを設定してください)。マウスの右ボタンをクリックして、"Mark for Installation" を選択してください。ツールバーの "Apply"ボタンをクリックしてください。
#Answer the questions asked by the installer (such as the database to be used - MySQL or PostgreSQL).
#インストーラーから尋ねられる質問に答えてください (使用するデータベース等 - MySQLまたはPostgreSQL)
#Visit your moodle site at <nowiki>http://localhost/mymoodle/admin</nowiki>
#あなたのMoodleサイト <nowiki>http://localhost/mymoodle/admin</nowiki> にアクセスしてください。


===手動ダウンロード===
===手動ダウンロード===


You will probably need to follow this, if you don't have internet connection on the PC on which you want to install moodle.
あなたがインストールするPCがインターネットに接続していない場合、おそらく次の作業に従う必要があります。


* Download moodle and all the dependencies (if you already don't have them) from Stable(http://packages.debian.org/stable/web/moodle) or Testing(http://packages.debian.org/testing/web/moodle). Place them all in the same directory (no matter which).
* Moodle (もしインストールしていない場合は依存関係にあるソフトウェア) をステーブル (http://packages.debian.org/stable/web/moodle) または テスティング (http://packages.debian.org/testing/web/moodle) からダウンロードしてください。ダウンロードしたファイルを同じディレクトリに入れてください。どのようなディレクトリでもかまいません。
* As root, run the following command:
* rootで次のコマンドを実行してください:


   dpkg -i *.deb
   dpkg -i *.deb


* This will unpack and begin the installation of all the downloaded packages.
* このコマンドでダウンロードしたパッケージを解凍し、インストールを開始します。
* Answer the questions asked by the installer (such as the database to be used – MySQL or PostgreSQL).
* インストーラーから尋ねられる質問に答えてください (使用するデータベース等 -MySQLまたはPostgreSQL)
* Visit your moodle site at http://localhost/mymoodle/admin
* あなたのMoodleサイト http://localhost/mymoodle/admin にアクセスしてください。


==Moodleを .tgz(.tar.gz) または .zipファイルからインストールする==
==Moodleを .tgz(.tar.gz) または .zipファイルからインストールする==
''More detailed instructions coming soon''
さらに詳細なインストラクションは後日作成します。


''You will probably want this if you don't like the settings of Debian moodle package.''
あなたがDebian Moodleパッケージに関する設定を好きでない場合、この記事を変更してください。


===Step 1: 必要なパッケージをインストールする===
===Step 1: 必要なパッケージをインストールする===
Install these packages (if you've not already done so). See [[Installing Apache, MySQL and PHP]] or refer to the respective user manuals. Using apt-get, aptitude or synaptic you can install these very easily.
* Web Server (Apache highly recommended)
* Database Server (MySQL or PostgreSQL recommended)
* PHP, PHP-MySQL mod (or mod for your database)


These packages are optional:
あなたがまだインストールしていない場合、下記パッケージをインストールしてください。詳細は、[[AMPのインストール|Apache、MySQLおよびPHPのインストール]]をご覧いただくか、個別のユーザマニュアルを参照してください。apt-get、aptitudeまたはsynapticを使用することで、下記パッケージを簡単にインストールすることができます。
* GD library
* ウェブサーバ (Apacheを強くお勧めします)
* データベースサーバ (MySQLまたはPostgreSQLをお勧めします)
* PHP、PHP-MySQLモジュール (またはあなたのデータベース用モジュール)


'''LAMP in Debian Etch'''
下記パッケージは任意でインストールしてください:
* GDライブラリ


Setting up a LAMP in Debian is very easy. Once you get used to Debian administration including installation and configuration are much simpler compared to other linux distros. The following describes how to install apache, php and mysql on the Debian testing distribution called etch. Etch is expected to be released in December 2006.
'''Debian EtchのLAMP'''


For installation of the necessary packages the easiest option to use apt-get.
DebianでのLAMPの設定は非常に簡単です。あなたがインストールおよび設定に関するDebian管理画面を使用しているのでしたら、他のLInuxのディストリビューションと比べてさらにシンプルです。下記の内容は、Etchと呼ばれるDebian testing distributionにApache、PHPおよびMySQLをインストールする方法です。Etchは2006年12月のリリースを予定されています。


Use the following command to install apache2, php5 and mysql
apt-getを使用することで必要なパッケージを簡単にインストールすることができます。
 
Apache、PHP5およびMySQLをインストールするには、下記のコマンドを使用してください。


  apt-get install apache2 php5 mysql-server php5-mysql libapache2-mod-php5 php5-gd
  apt-get install apache2 php5 mysql-server php5-mysql libapache2-mod-php5 php5-gd


php5-gd is optional
php5-gd は任意です。


The mentioned packages are installed along with the dependencies depending on what was already installed on your debian system.
あなたのDebianに何がインストールされているかにより、関連するパッケージがインストールされます。


Now you may fire up a browser and type localhost to check whether the apache2 default page is shown,
それではブラウザを起動して、Apache2デフォルトページが表示されるかどうか、アドレス入力欄にlocalhostと入力してください。
 
テキストエディタの「gedit」または「vi」を使用してApache設定ファイルを編集することができます。


You can edit the apache configuartion files using the text editor gedit by
  gedit /etc/apache2/apache2.conf
  gedit /etc/apache2/apache2.conf
vi /etc/apache2/apach2.conf


Now we msut make a slight change in the php5 configuration file. Open it using
それでは今度はphp5設定ファイルを少しだけ修正してください。


  gedit /etc/php5/apache2/php.ini
  gedit /etc/php5/apache2/php.ini
vi /etc/php5/apache2/php.ini


add  the entries
エントリを追加します。
  extension=mysql.so  
  extension=mysql.so  
  extension=gd.so
  extension=gd.so


Someimes these entries are provided as example lines being commented out . You can remove the commenting to activate the entries.
これらのエントリは、コメントアウト (#)  して提供されている場合もあります。エントリを有効にするには、コメントを削除してください。


 
PHPのインストール状況を確認するには、コンテンツに「 <? phpinfo() ?> 」と書いたphpinfo.phpというテキストファイルを作成して、/var/wwwに保存してください。ブラウザで「localhost/phpinfo.php」にアクセスすることで、PHPのインストール状況を確認することができます。
To test the php installtion, you can craee a text fule named phpinfo.php with the contents <?phpinfo()?>
MySQLはすでにインストールされています。ルートパスワードを使ってアクセスしてください:
and save it at /var/www. Now access this file through the browser localhost/phpinfo to check the installation of php.
Mysql installation is already there. Give it a root password using


  mysqladmin -u root password "yourpassword"
  mysqladmin -u root password "yourpassword"


You can restart apache 2 by
Apache2を再起動するには、次のコマンドを使用してください。
  /etc/init.d/apache2 restart
  /etc/init.d/apache2 restart
You can restart mysql by
 
また、MySQLを再起動するには、次のコマンドを使用してください。
  /etc/init.d/mysql restart
  /etc/init.d/mysql restart


===Step 2: Moodleをダウンロードする===
===Step 2: Moodleをダウンロードする===
Download moodle from http://download.moodle.org/?lang=en.
http://download.moodle.org/?lang=en からMoodleをダウンロードしてください。


===Step 3: ファイルを解凍する===
===Step 3: ファイルを解凍する===
* For zip file, use '''unzip <your_file>'''. For tgz(tar.gz), use '''tar -zxvf <your-file>'''. You can also use any of the GUI front-ends such as file-roller or ark. You will get a folder moodle (or moodle-1.5.2 or something similar).
* zipファイルの解凍には、コマンド '''unzip <your_file>''' を使用してください。 tgz (tar.gz) の解凍には、コマンド '''tar -zxvf <your-file>''' を使用してください。file-rollerまたはark等のGUIフロントエンドを使用することもできます。ファイルを解凍すると、フォルダmoodle ( またはmoodle-18.1または似たような名称のフォルダ) が作成されます。
* Now, suppose you want to install moodle at /var/www/moodle (This means moodle will be accessible at http://localhost/moodle). '''mv moodle /var/www/''' (Most probably you will to be root to do this)
* '''mv moodle /var/www/''' コマンドで、解凍したMoodleをウェブルートディレクトリへ移動してください。 /var/www/moodle でMoodleをインストールすることができます (これは、http://localhost/moodle でMoodleにアクセスできることを意味します)


===Step 4: ウェブサーバおよびデータベースサーバを開始する===
===Step 4: ウェブサーバおよびデータベースサーバを開始する===
* Login as root (if you have not already done so): '''su'''.
* rootとしてログインしてください (あなたがすでにrootとしてログインしていない場合): '''su'''
* Start your web server. For Apache2, '''/etc/init.d/apache2 start'''.
* ウェブサーバを起動してください。Apache2の場合 '''/etc/init.d/apache2 start'''
* Start your database server. For MySQL, '''/etc/init.d/mysqld start'''
* データベースサーバを開始してください。MySQLの場合 '''/etc/init.d/mysqld start'''


===Step 5: インストールの最後===
===Step 5: インストールの最後===
* Go to http://localhost/moodle and follow the instructions.
* <nowiki>http://localhost/moodle</nowiki> へ移動して、インストラクションに従ってください。


[[Category: 管理]]
[[Category: 管理者]]
[[Category:インストール]]
[[Category:インストール]]


[[en:Debian_GNU/Linux_installation]]
[[en:Debian_GNU/Linux_installation]]

2007年3月4日 (日) 19:24時点における最新版

MoodleをDebianパッケージとしてインストールする

apt-get、aptitude または Synaptic の使用

  1. あなたのパーソナルコンピュータがインターネットに接続していることを確認してください (Moodleは、Debian Sargeに同梱されています。あなたが、apt-get、aptitudeまたはsynapticのリポジトリが入っているDevian SargeのCDまたはDVDを持っている場合、インターネットに接続する必要はありません)。次の中から一つのコマンドを実行してください:
    • apt-get install moodle
    • aptitude install moodle
    • synapticパッケージマネージャを実行して、「moodle」を検索 (Ctrl + f) してください。検索結果にMoodleが表示されます (表示されない場合、ダウンロードURLを設定してください)。マウスの右ボタンをクリックして、"Mark for Installation" を選択してください。ツールバーの "Apply"ボタンをクリックしてください。
  2. インストーラーから尋ねられる質問に答えてください (使用するデータベース等 - MySQLまたはPostgreSQL)。
  3. あなたのMoodleサイト http://localhost/mymoodle/admin にアクセスしてください。

手動ダウンロード

あなたがインストールするPCがインターネットに接続していない場合、おそらく次の作業に従う必要があります。

  • Moodle (もしインストールしていない場合は依存関係にあるソフトウェア) をステーブル (http://packages.debian.org/stable/web/moodle) または テスティング (http://packages.debian.org/testing/web/moodle) からダウンロードしてください。ダウンロードしたファイルを同じディレクトリに入れてください。どのようなディレクトリでもかまいません。
  • rootで次のコマンドを実行してください:
 dpkg -i *.deb
  • このコマンドでダウンロードしたパッケージを解凍し、インストールを開始します。
  • インストーラーから尋ねられる質問に答えてください (使用するデータベース等 -MySQLまたはPostgreSQL)。
  • あなたのMoodleサイト http://localhost/mymoodle/admin にアクセスしてください。

Moodleを .tgz(.tar.gz) または .zipファイルからインストールする

さらに詳細なインストラクションは後日作成します。

あなたがDebian Moodleパッケージに関する設定を好きでない場合、この記事を変更してください。

Step 1: 必要なパッケージをインストールする

あなたがまだインストールしていない場合、下記パッケージをインストールしてください。詳細は、Apache、MySQLおよびPHPのインストールをご覧いただくか、個別のユーザマニュアルを参照してください。apt-get、aptitudeまたはsynapticを使用することで、下記パッケージを簡単にインストールすることができます。

  • ウェブサーバ (Apacheを強くお勧めします)
  • データベースサーバ (MySQLまたはPostgreSQLをお勧めします)
  • PHP、PHP-MySQLモジュール (またはあなたのデータベース用モジュール)

下記パッケージは任意でインストールしてください:

  • GDライブラリ

Debian EtchのLAMP

DebianでのLAMPの設定は非常に簡単です。あなたがインストールおよび設定に関するDebian管理画面を使用しているのでしたら、他のLInuxのディストリビューションと比べてさらにシンプルです。下記の内容は、Etchと呼ばれるDebian testing distributionにApache、PHPおよびMySQLをインストールする方法です。Etchは2006年12月のリリースを予定されています。

apt-getを使用することで必要なパッケージを簡単にインストールすることができます。

Apache、PHP5およびMySQLをインストールするには、下記のコマンドを使用してください。

apt-get install apache2 php5 mysql-server php5-mysql libapache2-mod-php5 php5-gd

php5-gd は任意です。

あなたのDebianに何がインストールされているかにより、関連するパッケージがインストールされます。

それではブラウザを起動して、Apache2デフォルトページが表示されるかどうか、アドレス入力欄にlocalhostと入力してください。

テキストエディタの「gedit」または「vi」を使用してApache設定ファイルを編集することができます。

gedit /etc/apache2/apache2.conf
vi /etc/apache2/apach2.conf

それでは今度はphp5設定ファイルを少しだけ修正してください。

gedit /etc/php5/apache2/php.ini
vi /etc/php5/apache2/php.ini

エントリを追加します。

extension=mysql.so 
extension=gd.so

これらのエントリは、コメントアウト (#) して提供されている場合もあります。エントリを有効にするには、コメントを削除してください。

PHPのインストール状況を確認するには、コンテンツに「 <? phpinfo() ?> 」と書いたphpinfo.phpというテキストファイルを作成して、/var/wwwに保存してください。ブラウザで「localhost/phpinfo.php」にアクセスすることで、PHPのインストール状況を確認することができます。 MySQLはすでにインストールされています。ルートパスワードを使ってアクセスしてください:

mysqladmin -u root password "yourpassword"

Apache2を再起動するには、次のコマンドを使用してください。

/etc/init.d/apache2 restart

また、MySQLを再起動するには、次のコマンドを使用してください。

/etc/init.d/mysql restart

Step 2: Moodleをダウンロードする

http://download.moodle.org/?lang=en からMoodleをダウンロードしてください。

Step 3: ファイルを解凍する

  • zipファイルの解凍には、コマンド unzip <your_file> を使用してください。 tgz (tar.gz) の解凍には、コマンド tar -zxvf <your-file> を使用してください。file-rollerまたはark等のGUIフロントエンドを使用することもできます。ファイルを解凍すると、フォルダmoodle ( またはmoodle-18.1または似たような名称のフォルダ) が作成されます。
  • mv moodle /var/www/ コマンドで、解凍したMoodleをウェブルートディレクトリへ移動してください。 /var/www/moodle でMoodleをインストールすることができます (これは、http://localhost/moodle でMoodleにアクセスできることを意味します)。

Step 4: ウェブサーバおよびデータベースサーバを開始する

  • rootとしてログインしてください (あなたがすでにrootとしてログインしていない場合): su
  • ウェブサーバを起動してください。Apache2の場合 /etc/init.d/apache2 start
  • データベースサーバを開始してください。MySQLの場合 /etc/init.d/mysqld start

Step 5: インストールの最後

  • http://localhost/moodle へ移動して、インストラクションに従ってください。