Movable Type  はじめ方 (初心者のための)ホーム  »  slog  »  忘備録メモ  »  OpenPNE3 coreseverインストールメモ

OpenPNE3 coreseverインストールメモ

coreseverにOpenPNE3をインストールして、小規模SNSの構築をしました。
設定方法などのメモ

 

準備

サーバーにはSSH接続をするので、接続ツールは必要です。 私が使用しているのは TeraTerm

サーバーの管理画面から「ホスト情報登録」→「SSH登録」
TeraTermを起動して、ホスト接続の設定をします。

サーバー側のデータベースはmysqlを設定しておきます。


インストール

手順はほぼこちら通りに
http://github.com/openpne/OpenPNE3/raw/OpenPNE-3.4.0/doc/ja/OpenPNE3_Setup_Guide.txt

ダウンロード

coreseverの場合、非可視領域にOpenPNEを展開します。
/public_htmlの上
/となっている領域です。


>wget http://github.com/openpne/OpenPNE3/zipball/OpenPNE-3.4.0.1

URLは最新版ファイル(安定版)のURLとなります。
これで、zipファイルができます

>unzip openpne-OpenPNE3-be46a5d.zip

解凍します。


設定いろいろ

>mv openpne-OpenPNE3-be46a5d OpenPNE

フォルダ名を好きな名前に変更します。

OpenPNEに移動したいのですが、Coreserverでは >cd を実行すると

-rbash: cd: restricted

というエラーがでてしまいます。

ちょっと面倒ですが

>chsh

ログインパスワードを求められるので、サーバーのパスワードを入力します。

Enter the new value, or press returen for the default. Login Shell [/bin/rbash]:

>/bin/bash

Shell changed.

>bash

>cd OpenPNE

これで、移動できます。

configフォルダ内にある .sampleのファイル名を変更します

>cp config/ProjectConfiguration.class.php.sample config/ProjectConfiguration.class.php

>cp config/OpenPNE.yml.sample config/OpenPNE.yml


OpenPNE.ymlのbase_url と mail_domainの部分を変更します。


インストール

>./symfony openpne:install

以下
質問事項が出てくるので、必要項目を記述

Choose DBMS: - mysql - pgsql (unsupported) - sqlite (unsupported)

mysql

Type database username

データーベース名

Type database password (optional)

設定したパスワード

Type database hostname

localhost

Type database port number (optional)

未設定

Type database name

データーベース名

Type database socket path (optional)

未設定

The DBMS : mysql The Database Username : The Database Password : ****** The Database Hostname : localhost The Database Port Number : The Database Name : The Database Socket :

Is it OK to start this task? (Y/n)

確認内容で問題がなければ

y

完了した場合

>> installer installation is completed! Content-type: text/html

の表示がでます。


webフォルダの移動

.htaccesのファイルに追加します

AddHandler application/x-httpd-php5cgi .php

mod_gzip_on Off

先ほどの要領でpublic_htmlに移動

>cd ~/public_html

>ln -s /virtual/ユーザー名/OpenPNE/web ./sns.hoge.com

http://sns.hoge.comでアクセスしたときに

/virtual/ユーザー名/OpenPNE/webへ参照しに行きます。

もしくはwebの名前を変えて、sns.hoge.com以下にファイルを移動します。
その場合には、phpファイル類のパスの変更が必要になります。

その他

http://github.com/openpne/OpenPNE3/raw/OpenPNE-3.4.0/doc/ja/OpenPNE3_Setup_Guide.txt

でcronその他の設定を行います。

YouTunbeその他の外部サービスの小窓表示については、cmdの中に、主なjsがそろっていますので、特に手を加えず、そのままで表示できます。


トラックバック(0)

トラックバックURL: http://www.dream-creation.biz/mt5/mt-tb.cgi/200

コメントする

コメントは承認後となります




このページの先頭へ