管理コンソールのインストール

常時稼動のためにも・・・管理コンソールを使えるようにしなくっちゃ(*^^)v
でも・・・
公式サイトには・・・http://www.irlp.net/owners/remote-admin.html
「Redhat 7.3, 9, or Fedora Core 3 base operating system 」と書いてあるではないですかぁ。

強引にやっちゃいます(汗

yumでApacheとPHP入れちゃう( ̄ー ̄)ニヤリッ

# yum -y install httpd
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
extras [1/3]
extras 100% |=========================| 1.1 kB 00:00
updates [2/3]
updates 100% |=========================| 951 B 00:00
core [3/3]
core 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 787 kB 00:03
extras : ######################################### 2235/2235
Added 2235 new packages, deleted 0 old in 61.75 seconds
primary.xml.gz 100% |=========================| 453 kB 00:02
updates : ####################################### 1306/1306
Added 1306 new packages, deleted 0 old in 51.62 seconds
primary.xml.gz 100% |=========================| 767 kB 00:02
core : ########################################## 2207/2207
Added 2207 new packages, deleted 0 old in 62.07 seconds
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for httpd to pack into transaction set.
httpd-2.2.0-5.1.2.i386.rp 100% |=====================| 80 kB 00:00
—> Package httpd.i386 0:2.2.0-5.1.2 set to be updated
–> Running transaction check
–> Processing Dependency: /etc/mime.types for package: httpd
–> Processing Dependency: libapr-1.so.0 for package: httpd
–> Processing Dependency: libaprutil-1.so.0 for package: httpd
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for mailcap to pack into transaction set.
mailcap-2.1.20-1.noarch.r 100% |=====================| 5.4 kB 00:00
—> Package mailcap.noarch 0:2.1.20-1 set to be updated
—> Downloading header for apr-util to pack into transaction set.
apr-util-1.2.2-4.2.i386.r 100% |=======================| 6.9 kB 00:00
—> Package apr-util.i386 0:1.2.2-4.2 set to be updated
—> Downloading header for apr to pack into transaction set.
apr-1.2.2-7.3.i386.rpm 100% |=========================| 9.6 kB 00:00
—> Package apr.i386 0:1.2.2-7.3 set to be updated
–> Running transaction check
–> Processing Dependency: libpq.so.4 for package: apr-util
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for postgresql-libs to pack into transaction set.
postgresql-libs-8.1.4-1.F 100% |=========================| 15 kB 00:00
—> Package postgresql-libs.i386 0:8.1.4-1.FC5.1 set to be updated
–> Running transaction check

Dependencies Resolved

=========================================
Package Arch Version Repository Size
=========================================
Installing:
httpd i386 2.2.0-5.1.2 core 1.1 M
Installing for dependencies:
apr i386 1.2.2-7.3 updates 120 k
apr-util i386 1.2.2-4.2 core 74 k
mailcap noarch 2.1.20-1 core 14 k
postgresql-libs i386 8.1.4-1.FC5.1 updates 195 k

Transaction Summary
=========================================
Install 5 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.5 M
Downloading Packages:
(1/5): postgresql-libs-8. 100% |=========================| 195 kB 00:01
(2/5): mailcap-2.1.20-1.n 100% |=========================| 14 kB 00:00
(3/5): apr-util-1.2.2-4.2 100% |=========================| 74 kB 00:00
(4/5): apr-1.2.2-7.3.i386 100% |=========================| 120 kB 00:01
(5/5): httpd-2.2.0-5.1.2. 100% |=========================| 1.1 MB 00:03
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: apr ######################### [1/5]
Installing: mailcap ######################### [2/5]
Installing: postgresql-libs ######################### [3/5]
Installing: apr-util ######################### [4/5]
Installing: httpd ######################### [5/5]

Installed: httpd.i386 0:2.2.0-5.1.2
Dependency Installed: apr.i386 0:1.2.2-7.3 apr-util.i386 0:1.2.2-4.2 mailcap.noarch 0:2.1.20-1 postgresql-libs.i386 0:8.1.4-1.FC5.1
Complete!

# yum -y install php
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
extras [1/3]
extras 100% |=========================| 1.1 kB 00:00
updates [2/3]
updates 100% |=========================| 951 B 00:00
core [3/3]
core 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.0 MB 00:03
extras : ######################################### 3934/3934
Added 3934 new packages, deleted 0 old in 109.51 seconds
primary.xml.gz 100% |=========================| 453 kB 00:03
updates : ######################################## 1306/1306
Added 1306 new packages, deleted 0 old in 51.56 seconds
primary.xml.gz 100% |=========================| 767 kB 00:02
core : ########################################## 2207/2207
Added 2207 new packages, deleted 0 old in 61.71 seconds
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for php to pack into transaction set.
php-5.1.4-1.i386.rpm 100% |=========================| 21 kB 00:00
—> Package php.i386 0:5.1.4-1 set to be updated
–> Running transaction check
–> Processing Dependency: libidn.so.11 for package: php
–> Processing Dependency: libpspell.so.15 for package: php
–> Processing Dependency: libaspell.so.15 for package: php
–> Processing Dependency: php-pear for package: php
–> Processing Dependency: libgmp.so.3 for package: php
–> Processing Dependency: libcurl.so.3 for package: php
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for php-pear to pack into transaction set.
php-pear-1.4.9-1.noarch.r 100% |=========================| 23 kB 00:00
—> Package php-pear.noarch 1:1.4.9-1 set to be updated
—> Downloading header for gmp to pack into transaction set.
gmp-4.1.4-6.2.1.i386.rpm 100% |=========================| 10 kB 00:00
—> Package gmp.i386 0:4.1.4-6.2.1 set to be updated
—> Downloading header for aspell to pack into transaction set.
aspell-0.60.3-5.i386.rpm 100% |=========================| 30 kB 00:00
—> Package aspell.i386 12:0.60.3-5 set to be updated
—> Downloading header for libidn to pack into transaction set.
libidn-0.6.2-1.1.i386.rpm 100% |=========================| 9.8 kB 00:00
—> Package libidn.i386 0:0.6.2-1.1 set to be updated
—> Downloading header for curl to pack into transaction set.
curl-7.15.1-3.i386.rpm 100% |=========================| 11 kB 00:00
—> Package curl.i386 0:7.15.1-3 set to be updated
–> Running transaction check
–> Processing Dependency: /usr/bin/perl for package: aspell
–> Processing Dependency: aspell-en for package: aspell
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for perl to pack into transaction set.
perl-5.8.8-5.i386.rpm 100% |=========================| 282 kB 00:02
—> Package perl.i386 4:5.8.8-5 set to be updated
—> Downloading header for aspell-en to pack into transaction set.
aspell-en-6.0-2.i386.rpm 100% |=========================| 10 kB 00:00
—> Package aspell-en.i386 50:6.0-2 set to be updated
–> Running transaction check

Dependencies Resolved

==============================================
Package Arch Version Repository Size
==============================================
Installing:
php i386 5.1.4-1 updates 3.6 M
Installing for dependencies:
aspell i386 12:0.60.3-5 core 959 k
aspell-en i386 50:6.0-2 core 1.6 M
curl i386 7.15.1-3 updates 265 k
gmp i386 4.1.4-6.2.1 core 632 k
libidn i386 0.6.2-1.1 core 191 k
perl i386 4:5.8.8-5 updates 12 M
php-pear noarch 1:1.4.9-1 updates 357 k

Transaction Summary
=========================================
Install 8 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 19 M
Downloading Packages:
(1/8): php-pear-1.4.9-1.n 100% |=========================| 357 kB 00:02
(2/8): perl-5.8.8-5.i386. 100% |=========================| 12 MB 00:49
(3/8): gmp-4.1.4-6.2.1.i3 100% |=========================| 632 kB 00:02
(4/8): aspell-0.60.3-5.i3 100% |=========================| 959 kB 00:03
(5/8): aspell-en-6.0-2.i3 100% |=========================| 1.6 MB 00:05
(6/8): libidn-0.6.2-1.1.i 100% |=========================| 191 kB 00:01
(7/8): curl-7.15.1-3.i386 100% |=========================| 265 kB 00:02
(8/8): php-5.1.4-1.i386.r 100% |=========================| 3.6 MB 00:16
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: libidn ######################### [1/8]
Installing: curl ######################### [2/8]
Installing: gmp ######################### [3/8]
Installing: perl ######################### [4/8]
Installing: aspell ######################### [5/8]
Installing: php ######################### [6/8]
Installing: php-pear ######################### [7/8]
Installing: aspell-en ######################### [8/8]

Installed: php.i386 0:5.1.4-1
Dependency Installed: aspell.i386 12:0.60.3-5 aspell-en.i386 50:6.0-2 curl.i386 0:7.15.1-3 gmp.i386 0:4.1.4-6.2.1 libidn.i386 0:0.6.2-1.1 perl.i386 4:5.8.8-5 php-pear.noarch 1:1.4.9-1
Complete!

そんでもって、install-raスクリプトを公式サイトから落とす。
wget –passive-ftp ftp://ftp.irlp.net/pub/remote/install-ra

–18:24:52– ftp://ftp.irlp.net/pub/remote/install-ra
=> `install-ra’
Resolving ftp.irlp.net… 216.130.245.78
Connecting to ftp.irlp.net|216.130.245.78|:21… connected.
Logging in as anonymous … Logged in!
==> SYST … done. ==> PWD … done.
==> TYPE I … done. ==> CWD /pub/remote … done.
==> PASV … done. ==> RETR install-ra … done.
Length: 9,081 (8.9K) (unauthoritative)

100%[====================================>] 9,081 49.45K/s
18:24:55 (49.29 KB/s) – `install-ra’ saved [9081]

install-raスクリプトの30行目のfc3をfc5に書き換えないとダメダメ( ̄∇ ̄)
# THIS CHECKS FOR REDHAT/FEDORA VERSION
elif [ “$R” = “fc3” ] ; then


それから・・・install-raを実行する!
# ./install-ra
This script will update your system to use YUM. YUM is an automated
update software which will help keep your system up to date.

The script has detected you are running Fedora fc5.

Press ENTER to continue, or CTRL-C to exit.

String Editor SED detected OK.
String Language AWK detected OK.
FTP Client NCFTPGET detected OK.

– Patching apache conf to run as user repeater and on port 15426 ….

– Cleaning old start entries from rc.irlp ….done.

– Stopping mynetd processes on old ports ….done.

– Linking IRLP PHP script directory to web tree ….done.

Please select a username and password for your webpage security.
They are CASE SENSITIVE.
Username: *****
Password: Sat Jun 24 20:00:30 JST 2006
********
Adding password for user *****

– Creating htaccess file in web tree ….done.

– Starting HTTP service ….
Starting httpd:

– Cleaning up yum files ….
Loading “installonlyn” plugin
Cleaning up Everything
0 headers removed
0 packages removed
9 metadata files removed
0 cache files removed
3 cache files removed

Press ENTER to continue:

The IRLP remote admin scripts and service are installed and running.

You access the system by browsing to:
http://www.irlp.net/redirect

Enter in your node number and port (port default is 15426).

You also will have to direct TCP port 15426 (may already be forwarded) to
your IRLP computer IP if behind a router.

!!!!!IMPORTANT!!!!!
Since there was an update to the kernel, you must reboot your computer.
Do this by typing the following at the prompt when ready:
shutdown -r now

IRLPマシン再起動!

これだけじゃ・・・ダメでした。
Apacheの設定ファイル、httpd.confの.htaccess&.htpasswdを使える様にすること。
install-ra実行時に既に、.htaccess&.htpasswdファイルは作成済みなので・・・
Apacheの設定ファイルのみ変更して再起動でOK(*^^)v そしたら、ベーシック認証できる。

変更場所
232、233行目の
User apache
Group apache



User repeater
Group repeater

——————————
328行目
DocumentRootの設定で・・・

AllowOverride None



AllowOverride All
</Directory>

私は、80番ポートでこのサイトを動かしているので・・・IRLPのApacheは8000番ポートを指定しました。
これで、無事に管理コンソールにローカルからはアクセス可能になりました。

まだ、8000番ポート開けてない( ̄∇ ̄)