- 1. ダウンロード
- 2. コンテンツの配置
- 3. apache 構成ファイル作成
- 4. データベース作成
- 5. インストールコマンドの実行
1. ダウンロード
ダウンロードサイトは
「ダウンロード|OpenPNE」
になります。
2018年7月23日時点のバージョンは 3.8.28 でした。
.zip ファイルをダウンロードします。
2. コンテンツの配置
ダウンロードした openpne-OpenPNE3-OpenPNE-3.8.28-0-g68e2f88.zip を解凍します。
unzip openpne-OpenPNE3-OpenPNE-3.8.28-0-g68e2f88.zip
カレントディレクトリ配下に「openpne-OpenPNE3-68e2f88」というディレクトリが解凍されます。
ドキュメントルートを
/usr/local/www
コンテンツディレクトリを pne として
http://ドメイン名/pne/
でアクセスするものとします。
上記のディレクトリ配下をドキュメントルートへ移動して、パーミッションを変更します。
mv openpne-OpenPNE3-68e2f88 /usr/local/www/pne
cd /usr/local/www
chown -R www:www pne
3. apache 構成ファイルの作成
にアクセス可能となるように
/usr/local/etc/apache24/openpne.conf
ファイルを作成して下記のように記述します。
Alias /pne/ "/usr/local/www/pne/web/"
<Directory "/usr/local/www/pne/web/">
Options None
AllowOverride None
Require all granted
</Directory>
4. データベース作成
mySQL に OpenPNE 用のデータベースを作成します。仮に以下のようにするとすれば
データベース名 | opnebase |
データベースユーザ | opneuser |
以下のようにしてデータベース・ユーザを作成します。
> mysql -u root -p
Enter password: ← root のパスワードを入力
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.22-log Source distribution
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database opnebase;
Query OK, 1 row affected (0.01 sec)
mysql> GRANT ALL PRIVILEGES ON opnebase.* to opneuser@localhost IDENTIFIED BY 'パスワード';
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> Bye ← Ctrl-D で抜けます
5. インストールコマンドの実行
構成設定ファイルのサンプルをリネームして使えるようにします。
cd /usr/local/www/pne/config
mv ProjectConfiguration.class.php.sample ProjectConfiguration.class.php
mv OpenPNE.yml.sample OpenPNE.yml
インストールコマンドを実行します。
root@ns /root > /usr/local/www/pne/symfony openpne:install
Choose DBMS:
- mysql
- pgsql (unsupported)
- sqlite (unsupported)
mysql ← mysql を入力して Enter
選択肢があるように見えて実は mysql しか選べない(笑)
Type database username
opneuser ← ユーザ名を入力して Enter
Type database password (optional)
パスワード ← パスワードを入力して Enter
Type database hostname
localhost ← ホスト名を入力して Enter
Type database port number (optional)
← Enter
Type database name
opnebase ← データベース名を入力して Enter
Type database socket path (optional)
← Enter
The DBMS : mysql
The Database Username : openuser
The Database Password : ******
The Database Hostname : localhost
The Database Port Number :
The Database Name : openbase
The Database Socket :
Is it OK to start this task? (Y/n) ← Y Enter
>> installer start clean install
と・・・ここでインストーラがこけてしまったのでした・・・。
ので「OpenPNE」はここで断念。
|