オープンソースのホスティングコントロールパネル、ispCP Omegaの安定版、1.0.0がリリースされたので、インストールしてみました。
前回(RC版)は、Ubuntu server 7.10(vmware版)でしたが、今回は、vmwareではなく自宅サーバーのUbuntu 8.04です。

今回のサーバーは、バックアップ用のサーバーで、Apache、PHP、MySQLはインストールされていませんが、
ispCPは、インストールの際に、Apache、PHP、MySQLはインストールされますので、事前にインストールしなくてOKです。

■ダウンロード
$ cd /tmp
$ wget http://jaist.dl.sourceforge.net/sourceforge/ispcp/ispcp-omega-1.0.0.tar.bz2
(ブラウザでダウンロードする場合はこちらのClick here to download ispCP Omega 1.0.0 from Sourceforge.net )

■rootになって作業
# sudo su –
(Ubuntuではrootのパスワードがないので、上記コマンドでユーザのパスワードを入力すればrootになれます)

■ダウンロードしたファイルを展開します
# cd /root
# tar xjvf /tmp/ispcp-omega-1.0.0.tar.bz2
# cd ./ispcp-omega-1.0.0

■インストール方法等を確認します
# less docs/Ubuntu/INSTALL
(他のディストリビューションの場合は、上記Ubuntuを読み替えてください)
下記、INSTALL全文です。その通りにやって、不都合があったので、この記事の内容とは少々異なります。
[code]
ispCP ω (OMEGA) HowTo Install for Ubuntu
================================================================================
For other Linux distributions please check the other INSTALL files.
================================================================================

Table of Content
================
1) Version Info
2) Requirements
3) Introduction
4) Installation
5) Update
6) Uninstall
7) Credits

================================================================================
1) Version Info
—————
ispCP ω Version: 1.0.0
INSTALL Skript: 1.2
Maintainer:
Homepage: http://isp-contol.net
Linux Distris: Ubuntu

================================================================================
2) Requirements
—————
There is no must have for a system using ispCP ω. This is only a recommendation:

Penitum III or K6-4 with 500 MHz
512 MB RAM
100 MB disk space (only for install of ispCP ω)
Debian (or even any other *NIX-Distribution)

All 6.06 LTS required packages are listed in ./docs/Ubuntu/ubuntu-packages-edgy
All 7.04 required packages are listed in ./docs/Ubuntu/ubuntu-packages-feisty
All 7.10 required packages are listed in ./docs/Ubuntu/ubuntu-packages-gutsy
All 8.04 LTS required packages are listed in ./docs/Ubuntu/ubuntu-packages-hardy
All 8.10 required packages are listed in ./docs/Ubuntu/ubuntu-packages-interpid

================================================================================
3) Introduction
—————
ispCP ω delivers a complete hosting automation appliance by offering significant
security, total-cost-of-ownership, and performance advantages over competing
commercial solutions.

With ispCP ω you can configure your server and applications, create user with
domains with a few point-and-click operations that take less than a minute.
There is no limit to the number of resellers, users and domains that can be
created. The core of ispCP ω are 3 easy-to-use, web-based control panels. ispCP
provides graphic user interfaces for the administrators, resellers and users.

================================================================================
4) Installation
—————

1. Untar or unzip the distribution files to a secure directory:
# cd /root
# tar xjvf ispcp-omega-1.0.0.tar.bz2

2. Change to the newly created directory:
# cd ./ispcp-omega-1.0.0

3. Install the required modules
First update your system:
# sudo apt-get update && apt-get upgrade

for Ubuntu 6.06 LTS please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-edgy)
for Ubuntu 7.04 please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-feisty)
for Ubuntu 7.10 please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-gutsy)
for Ubuntu 8.04 please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-hardy)
for Ubuntu 8.10 please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-interpid)

If using Hardy, make sure you have added multiverse into your /etc/apt/sources.list

(when you get to the courier screen select ‘no’ to web directories)
(when you get to the postfix screen select ‘internet site’ and then type ‘root’
for mail. If you’ve set debian up correctly on install your domain should be
already on screen. Select ‘no’ to force sync updates.)
(when you get to the proftpd screen, select ‘standalone’)
(when you get to the rootkithunter screen, select two time ‘yes’)

4. (optional) Check the ispcp.conf and adapt it to your requirements.

5. Build the System by using make:
# sudo make -f Makefile.ubuntu install

6. Copy all the directories into your system (you may make backups)
# sudo cp -Rv /tmp/ispcp/* /

7. Now it’s time to set up the frontend. Change into the engine directory:
# cd /var/www/ispcp/engine/setup

7a. Set the MySQL password, if not set:
# sudo mysqladmin -u root password YOUR_PASSWORD

8. Start the engine setup:
# sudo perl ispcp-setup

9. Install ispCP ω step-by-step

If you get no error, all went good; if you get one, look at
http://isp-control.net to solve the problem.

10. Activate php mcrypt extension for ubuntu hardy
# sudo touch /etc/php5/conf.d/mcrypt.ini
# sudo echo “extension=mcrypt.so” > /etc/php5/conf.d/mcrypt.ini
# sudo chmod 644 /etc/php5/conf.d/mcrypt.ini
# sudo cp /etc/php5/conf.d/mcrypt.ini /etc/php5/cgi/conf.d/
# sudo /etc/init.d/apache2 restart

11. Clean the temporary folders:
# sudo rm -fR /tmp/ispcp

================================================================================
5) Update
———

1. If you upgrade from VHCS 2.4.7.1 or VHCS OMEGA 2.4.8 you must first install
ISPCP as described in INSTALL sections. Please note that ispCP Omega comes
with a new webmail client. Please make sure that your customers can still
access the address book data. You can ensure this either by making the old
webmail client accessable or by using this script:
http://www.isp-control.net/ispcp/ticket/1614.

2. Untar or unzip the distribution files to a secure directory:
# cd /root
# tar xjvf ispcp-omega-1.0.0.tar.bz2

3. Change to the newly created directory:
# cd ./ispcp-omega-1.0.0

4. Install the required modules
first update your system:
# sudo apt-get update && apt-get upgrade

for Ubuntu 6.06 LTS please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-edgy)
for Ubuntu 7.04 please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-feisty)
for Ubuntu 7.10 please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-gutsy)
for Ubuntu 8.04 please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-hardy)
for Ubuntu 8.10 please use:
# sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-interpid)

(when you get to the courier screen select ‘no’ to web directories)
(when you get to the postfix screen select ‘internet site’ and then type ‘root’
for mail. If you’ve set debian up correctly on install your domain should be
already on screen. Select ‘no’ to force sync updates.)
(when you get to the proftpd screen, select ‘standalone’)
(when you get to the rootkithunter screen, select two time ‘yes’)

5. (optional) Check the ispcp.conf and adapt it to your requirements.

6. Stop the ispcp_deamon and build the System by using make:
# sudo /etc/init.d/ispcp_daemon stop
# sudo make install

7. Save files
# sudo cp -v /var/www/ispcp/engine/ispcp-db-keys.pl /tmp/ispcp/var/www/ispcp/engine/
# sudo cp -v /var/www/ispcp/engine/messager/ispcp-db-keys.pl /tmp/ispcp/var/www/ispcp/engine/messager/
# sudo cp -v /var/www/ispcp/gui/include/ispcp-db-keys.php /tmp/ispcp/var/www/ispcp/gui/include/
# sudo cp -v /var/www/ispcp/gui/themes/user_logos/* /tmp/ispcp/var/www/ispcp/gui/themes/user_logos/

If updating from RC3 or higher:
# sudo cp -v /var/www/ispcp/gui/tools/pma/config.inc.php /tmp/ispcp/var/www/ispcp/gui/tools/pma/

8. Delete old files to avoid security risks:
# sudo rm -fR /var/www/ispcp/gui/{admin,client,include,orderpanel,themes,reseller}/
# sudo rm -fR /var/www/ispcp/gui/*.php

9. Copy /usr and /var directories into your system (you may make backups)
# sudo cp -Rv /tmp/ispcp/usr/* /usr/
# sudo cp -Rv /tmp/ispcp/var/* /var/

10. Backup ispcp.conf and copy the /etc directory into your system (you may make backups):
# sudo mv -v /etc/ispcp/ispcp.conf /etc/ispcp/ispcp.old.conf
# sudo cp -Rv /tmp/ispcp/etc/* /etc/

11. Now it’s time to update your installation. Change into the engine directory:
# cd /var/www/ispcp/engine/setup

12. Start the engine update:
# sudo perl ispcp-update

13. Update ispCP ω step-by-step

If you get no error, all went good; if you get one, look at
http://isp-control.net to solve the problem.

14. Clean the temporary folders:
# sudo rm -fR /tmp/ispcp/

================================================================================
6) Uninstall
————
Make sure you are logged in as root and MySQL is running.

1. Change into the engine directory:
# cd /var/www/ispcp/engine/setup

2. Start the uninstall script:
# perl ispcp-uninstall

3. Clean up ur system

================================================================================
7) Credits
———-

ispCP ω is a project of ispCP | isp Control Panel.
ispCP, ispCP ω, isp Control Panel, the ispCP logo and the ω Logo are trademarks
of the ispCP | isp Control Panel Project Team.

Please visit our site under http://isp-control.net for further information on
ispCP ω, ispCP and other themes.

We hope you enjoy using ispCP ω. If you like it, help us, to make it better. We
would be glad on any help provided!
[/code]

■必要なパッケージをインストールします
# apt-get update && apt-get upgrade
# apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-hardy)
(ディスクスペースが必要という旨の確認のY/nが表示されますのでYで進めましょう)

Ubuntu 8.04(hardy)の場合、インストール中にダイアログが表示されますので、下記の通りに進めます。

・mysql-server-5.0
 rootユーザのパスワードを決めて入力してください。

・Configuring courier-base
 Create directories for web-based administration?と聞かれたらNoを選択

・Postfix Configuration
 OK→Internet Siteを選択→System mail nameにrootと入力

・ProFTPd configuration
 standaloneを選択

コンソールに
[code]
Setting up libsnmp-session-perl (1.11-1) …

Processing triggers for libc6 …
ldconfig deferred processing now taking place
[/code]
などと表示されたら終了です。

■インストールファイルを作成(make)&コピー
# make -f Makefile.ubuntu install
コンソールに
[code]
cd ./keys && make install
make[1]: Entering directory `/root/ispcp-omega-1.0.0/keys’
/bin/mkdir -p /tmp/ispcp/var/www/ispcp/keys
cp ./rpl.pl /tmp/ispcp/var/www/ispcp/keys
make[1]: Leaving directory `/root/ispcp-omega-1.0.0/keys’
[/code]
などと表示されれば終了です。

上記では、まだ/tmp/ispcpにファイルがあるので、これをコピーします。上書きされるファイルは、念のため、バックアップしておきましょう。

下記でシステムにインストール(コピー)されます。
# cp -Rv /tmp/ispcp/* /

■MySQL 起動
私の場合、apt-getでMySQLのインストール中にrootのパスワードを設定しましたが、パスワードを設定していない場合は以下にて設定します
# mysqladmin -u root password YOUR_PASSWORD

これから行うセットアップ作業では、MySQLが起動している必要があります。起動していない場合は、以下にて起動してください。
# /etc/init.d/mysql start
ステータス確認は↓
# /etc/init.d/mysql status

■セットアップ作業
# cd /var/www/ispcp/engine/setup
# perl ispcp-setup

上記で、step-by-stepによるセットアップが開始されます。
簡単な英語ですので、そのままでもわかると思いますが、下記のような質問事項があります。

・Please enter a fully qualified hostname.
 サーバーのFQDNを入力(デフォルト:ホスト名)
 * ホスト名とFQDNが異なる場合は、事前に# hostanmae FQDN で設定しておきましょう。

・Please enter system network address.
 サーバーのIPアドレスを入力
 (今回のサーバーは、動的IPなので、192.168.1.xxでテストしました)

・Please enter the domain name where ispCP OMEGA will run on [ FQDN ]
 管理パネルにアクセスする際のアドレスになります(デフォルト:admin.上記FQDN)

・Please enter SQL server host.
 localhostでOK(デフォルト:localhost)

・Please enter system SQL database
 ispCP用のデータベース名(デフォルト:ispcp)

・Please enter system SQL user.
 SQLユーザ(デフォルト:root)

・Please enter system SQL password.
 上記SQLユーザのパスワード(デフォルト:none)

・Please enter ispCP ftp SQL user.
 vftp用のユーザ名(デフォルト:vftp)

・Please enter ispCP ftp SQL user password.
 上記ユーザのパスワードを設定します

・Please enter ispCP phpMyAdmin Control user.
 phpMyAdmin用のユーザ名(デフォルト:pma)

・Please enter ispCP phpMyAdmin Control user password.
 上記ユーザのパスワードを設定します

・Please enter administrator login name.
 ispCPの管理パネルのログイン名(デフォルト:admin)

・Please enter administrator password
 上記ユーザのパスワードを設定します

・Please enter administrator e-mail address
 上記ユーザのメールアドレスを設定します

・IP of Secondary DNS.
 セカンダリDNSを利用する場合は、IPを入力します

・Use MySQL Prefix
 infront|behind|none(デフォルト:none)
 [i]nfront にするとデータベース名やテーブル名の前にプレフィックスが追加されます。

・FastCGI Version
 fcgid|fastcgi
 FastCGI を選択します。(デフォルト:fcgid)

・Activate AWStats
 AWStatsをインストールしてない場合は、No しか選べません。

すべての入力が終了すると
Starting Installation…
と表示され、しばらく待ちます。

ERROR: Unable to connect SQL server !
と表示されてしまったら、MySQLが起動してません・・・
[code]
Congratulations!

ispCP ‘1.0.0 OMEGA’ Setup completed successfully!
[/code]
が表示されたらインストールは完了です!

■動作確認

ブラウザから
http://管理パネルにアクセスする際のアドレス or IPアドレス
へアクセスし、ispCPの管理パネルのログイン名&パスワードでログインすることができます。
管理パネル自体が表示されない場合は、Apache(webサーバー)が起動していない可能性があります。
Apacheの起動は以下の通りです。
# /etc/init.d/apache2 start

■インストールファイルの削除
インストールできたことが確認できたら、インストールファイルを削除しましょう。
# rm -fR /tmp/ispcp