kopug memo


Flash Media Server 2 を Linuxサーバにインストール

本当は Flash Community Server を入れてみたかったのだが、もう配布されていないようなので、

1. Adone社サイトより、Flash Media Server 2(以下FMS2)のLinux版をダウンロードする
2. /usr/local/src 配下にコピーする
3. 解凍してみる

# cd /usr/local/src
# tar zxf FlashMediaServer2.tar.gz

4. インストールを試みる

# cd FMS_2_0_2_r51_linux/
# ./installFMS

./fmsini: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

ERROR: Your are running the Macromedia Flash Media Server installer
       on the wrong platform.

5. libstdc++.so.5 が無いぞゴラァと怒られてしまったので、libstdc++.so.5を入れてみる。

# yum install libstdc++.so.5

Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package compat-libstdc++-33.i386 0:3.2.3-47.3 set to be updated
--> Running transaction check

Dependencies Resolved

 Package                 Arch       Version          Repository        Size
 compat-libstdc++-33     i386       3.2.3-47.3       base              226 k

Transaction Summary
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 226 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): compat-libstdc++-3 100% |=========================| 226 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: compat-libstdc++-33          ######################### [1/1]

Installed: compat-libstdc++-33.i386 0:3.2.3-47.3

6. 再度インストールを試みる

# ./installFMS -platformWarnOnly

WARNING: Your distribution, unknown, is not supported by this
         Macromedia Flash Media Server installer.

Copyright(C) 1993-2005 Macromedia, Inc. and its licensors. All rights reserved.

Macromedia Flash Media Server 2.0 for

Macromedia Flash Media Server 2.0 will be installed on this machine.

You will be asked a series of questions during the install
process and will be presented with the defaults for these questions.

Support is available at http://www.macromedia.com/go/flashmediaserver_en

To install Macromedia Flash Media Server now, press ENTER.

To cancel the installation at any time, press Control-C.

End User License Agreement

Do you agree with the license agreement? (y/n): y

Macromedia Flash Media Server 2.0 requires approximately 25MB of
disk space.

The installer will install Macromedia Flash Media Server 2.0 in the
following directory
Default [/opt/macromedia/fms]: /usr/local/macromedia/fms

The Macromedia Flash Media Server communicates on the IANA-assigned
port of 1935, which is the port most Flash applications expect.

Please enter the Macromedia Flash Media Server port
Default [1935]:

Please enter the port to use for the Admin service. You can only specify one
admin port.
Default [1111]:

The administrative user name and password you provide here is required to use
the Macromedia Flash Media Server Management Console for
administration, monitoring, and debugging.

Please enter the administrative username: administrator

Please enter the administrative password:
Confirm password:

When the Macromedia Flash Media Server service is started, the service
can be run as a user other than "root". The server would change to this user
when the server is started and has acquired its ports.

Please enter the user that the Macromedia Flash Media Server service will run as
Default user [nobody]: apache

Please enter a valid user group for the "apache" user: apache

Do you want the Macromedia Flash Media Server service to run as a
daemon? (y/n)
Default [y]:

Do you want to start the Macromedia Flash Media Server
after the installation is done? (y/n)
Default [y]:

 ----------- Install Action Summary -----------

Installation directory         = /usr/local/macromedia/fms

FMS Server Port                = 1935
FMS Admin Server Port          = 1111

Administrative username        = administrator
Administrative password        = (suppressed)

FMS owner                      = apache

FMS service user               = apache
FMS service user group         = apache

FMS run as daemon              = Yes
Start FMS                      = Yes

Proceed with the installation? (y/n/q):y

Installing Macromedia Flash Media Server files...
Configuring Macromedia Flash Media Server...
Adding "fms" service.
Setting default admin to "fms".
Setting autostart for "fms".
Server:fms command:start
NPTL 2.3.4
Starting Macromedia Flash Media Server (please check /var/log/messages)

Admin server:fmsadmin command:start
Starting Macromedia Flash Media Admin Server (please check /var/log/messages)

The Macromedia Flash Media Server installation is complete.

7. 管理画面に手軽にアクセスできるようにしてみる

# vi /etc/httpd/conf.d/fms_admin.conf
Alias /fms2admin /usr/local/macromedia/fms

<Location /fms2admin >
    Order deny,allow
    Deny from all
    #Allow from All
    Allow from
    Allow from 192.168.24
    Allow from ::1
    # Allow from .example.com
# cd /usr/local/macromedia/fms
# ln -s fms2_console.htm index.html
# service httpd restart

http://serverIP/fms2admin にアクセスすると管理用の画面が表示されます。