PEAR Channel Server

PEAR channel server 構築スクリプトのインストール

shell> sudo pear channel-discover pear.chiaraquartet.net
shell> sudo pear install chiara/Chiara_PEAR_Server-alpha

PEAR channel server (www http) の設定(Virtual Host)

shell> sudo vi /etc/apache2/sites-available/pear
<VirtualHost *>
    DocumentRoot /var/www/pear
    ServerName pear.pbg4.local
    ErrorLog /var/log/apache2/pear-error_log
    CustomLog /var/log/apache2/pear-access_log common
    <Directory /var/www/pear>
        DirectoryIndex index.html index.php
        Options All
        AllowOverride All
    </Directory>
</VirtualHost>

DB ユーザ権限

サーバ構築スクリプトがDBをセットアップする際に必要になる。

最低限、DB 作成/テーブル作成が可能である必要がある。

mysql> GRANT ALL PRIVILEGES ON pear.* TO pear@localhost IDENTIFIED BY 'pear' WITH GRANT OPTION;

default:

  • DB : pear
  • HOST: localhost
  • USER: pear
  • PASS: pear

PEAR channel server 構築

shell> sudo pear run-scripts chiara/Chiara_PEAR_Server
Including external post-installation script "/usr/share/php/Chiara/PEAR/Server/mysqlinstall.php" - any errors are in this script
Inclusion succeeded
running post-install script "Server_mysqlinstall_postinstall->init()"
init succeeded
Create/Upgrade database for Chiara_PEAR_Server? All previous installations must run the script [yes] : 
Your choices:
Create/Upgrade database for Chiara_PEAR_Server? All previous installations must run the script: yes
These Choices OK? (use "abort" to halt) [yes] : 
Mysql database [pear] : (1)
Mysql Username (must have create permision) [pear] : (2)
Mysql password [pear] : (3)
Database Host [localhost] : (4)
Channel Administrator Handle (package.xml user tag) : (5)
Channel Name (server uri like pear.php.net) : (6)
Your choices:
Mysql database: (*1)
Mysql Username (must have create permision): (*2)
Mysql password: (*3)
Database Host: (*4)
Channel Administrator Handle (package.xml user tag): (*5)
Channel Name (server uri like pear.php.net): (*6)
These Choices OK? (use "abort" to halt) [yes] : 
Copying DB_DataObject config file to "/usr/share/php/data/Chiara_PEAR_Server/data/DBDataObject/pear.ini"
Creating Chiara_PEAR_Server database structure...
Updating database succeeded
Suggested Channel Alias [pear] : (7)
Channel summary : my library
Your choices:
Suggested Channel Alias: (*7)
Channel summary: my library
These Choices OK? (use "abort" to halt) [yes] : 
Channel Administrator Real Name : (8)
Channel Administrator Email : (9)
Channel Administrator Password : (10)
Your choices:
Channel Administrator Real Name: (*8)
Channel Administrator Email: (*9)
Channel Administrator Password: (*10)
These Choices OK? (use "abort" to halt) [yes] : 
Add the primary administrator
Creation of admin user succeeded
PEAR Configuration File Location [/.pearrc] : (11)
Path to document root of web server for pear.pbg4.local : (12)
name of frontend.php HTML admin frontend file : (13)
temporary path to save uploaded releases in : (14)
port clients should connect to (443 is SSL, 80 is regular HTTP) [80] : (15)
protocol clients should use to connect (http or https) [http] : (16)
Your choices:
PEAR Configuration File Location: (*11)
Path to document root of web server for pear.pbg4.local: (*12)
name of frontend.php HTML admin frontend file: (*13)
temporary path to save uploaded releases in: (*14)
port clients should connect to (443 is SSL, 80 is regular HTTP): (*15)
protocol clients should use to connect (http or https): (*16)
These Choices OK? (use "abort" to halt) [yes] : 
adding channel to local registry
Successfully created /var/www/pear/index.php
/var/www/pear/pear_server.css already exists
Enabling REST for channel pear.pbg4.local
Adding REST 1.0 and REST 1.1 to channel.xml
Saving Categories REST
  Category Default
Saving All Maintainers REST
Saving Maintainer REST
Maintainer admin
Saving Package REST
Saving Category Package REST
  Default
Install scripts complete
  • (1) : DB データベース名
  • (2) : DB ユーザ名
  • (3) : DB パスワード
  • (4) : DB ホスト
  • (5) : 管理者名(ログインアカウント)
  • (6) : チャンネル
  • (7) : チャンネルエイリアス
  • (8) : 管理者名(実名)
  • (9) : 管理者のメールアドレス
  • (10) : 管理者のパスワード(ログインパスワード)
  • (11) : PEAR configure ファイルパス
  • (12) : Web ページの DocumentRoor
  • (13) : Web 管理画面のファイル名
  • (14) : 仮ファイルを置くディレクトリパス
  • (15) : ポート番号
  • (16) : プロトコル

管理画面

設定した URL にブラウザからアクセスする。

 
koshigoewiki/php/pear/channel_server.txt · 最終更新: 2006/04/10 17:14 by koshigoebushou
 
Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki