OpenPNE 3.8.6 on FreeBSD 9.1R
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[ZFS on G7 FreeBSD9.1R-p3]]
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*OpenPNE3 [#ncc6c8a5]
install dir : /usr/local/www/apache22/data/OP3
access url : http://g7.kuji-clinic.net/OP3/
.htaccess
RewriteBase /OP3/
sns.conf
Alias /OP3/ "/usr/local/www/apache22/data/OP3/web/"
<Directory "/usr/local/www/apache22/data/OP3/">
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
*OpenPNE3 install error [#qcca0804]
OpenPNE3系のインストールで、PHPがCore吐いて落ちるので、gd...
#0 0x000000000066ae48 in zend_hash_get_current_key_type...
1184 /usr/ports/lang/php5/work/php-5.4.16/Zend/zend_h...
in /usr/ports/lang/php5/work/php-5.4.16/Zend/zen...
[New Thread 802407400 (LWP 100812/php)]
(gdb) where
#0 0x000000000066ae48 in zend_hash_get_current_key_type...
#1 0x0000000000485ed8 in zif_spl_autoload_call (ht=1, r...
at /usr/ports/lang/php5/work/php-5.4.16/ext/spl/php_...
#2 0x00000000006436ac in zend_call_function (fci=0x7fff...
#3 0x0000000000644165 in zend_lookup_class_ex (name=0x8...
use_autoload=1, ce=0x7fffffffb5a8) at /usr/ports/lan...
#4 0x0000000000644540 in zend_lookup_class (name=0x816b...
at /usr/ports/lang/php5/work/php-5.4.16/Zend/zend_ex...
#5 0x00000000006702f2 in zif_class_exists (ht=2, return...
at /usr/ports/lang/php5/work/php-5.4.16/Zend/zend_bu...
#6 0x00000000006920ea in zend_do_fcall_common_helper_SP...
#7 0x0000000000697637 in ZEND_DO_FCALL_SPEC_CONST_HANDL...
#8 0x00000000006911bd in execute (op_array=0x816940dc8)...
#9 0x00000000006574a9 in zend_execute_scripts (type=8, ...
#10 0x00000000005c3946 in php_execute_script (primary_fi...
#11 0x00000000006fed24 in do_cli (argc=4, argv=0x7ffffff...
#12 0x00000000006ffd09 in main (argc=4, argv=0x7fffffffd...
(gdb)
で、もう一度php5のコンパイルオプションにdebugを有効にして...
setenv FORCE_PKG_REGISTER yes
とかしながら入れ直したら、エラーしなくなりますた。( ̄^ ̄)ゞ
*OpenPNE 3.8.6 on FreeBSD 9.1R [#gcd469d8]
http://www.openpne.jp/pne-downloads/openpne3/#openpne-3.7...
G7(FreeBSD9.1R-p3の実験機)へ、k222(FreeBSD 7.1R-p16)で稼...
+稼働中のOpnePne3系は、sns.example.net/Com_Name/ なので、...
+データは出来るだけzpool上に置くようにデザインする。
OpenPneを取って来るために
** portinstall devel/git [#l441783a]
する
root@G7:/root # mkdir /home/OpenPne3
root@G7:/root # cd /home/OpenPne3/
root@G7:/home/OpenPne3 # ll
total 0
root@G7:/home/OpenPne3 # git clone git://github.com/open...
Cloning into 'OpenPNE3'...
remote: Counting objects: 54395, done.
remote: Compressing objects: 100% (17621/17621), done.
remote: Total 54395 (delta 35724), reused 52916 (delta 3...
Receiving objects: 100% (54395/54395), 17.91 MiB | 921 K...
Resolving deltas: 100% (35724/35724), done.
root@G7:/home/OpenPne3 #
root@G7:/home/OpenPne3 #
root@G7:/home/OpenPne3 # ll
total 2
drwxr-xr-x 15 root wheel 20 Jun 7 14:16 OpenPNE3/
root@G7:/home/OpenPne3 # cd OpenPNE3/
root@G7:/home/OpenPne3/OpenPNE3 # git checkout OpenPNE-3...
Note: checking out 'OpenPNE-3.8.6'.
You are in 'detached HEAD' state. You can look around, m...
changes and commit them, and you can discard any commits...
state without impacting any branches by performing anoth...
If you want to create a new branch to retain commits you...
do so (now or later) by using -b with the checkout comma...
git checkout -b new_branch_name
HEAD is now at 055e197... version 3.8.6
OpenPNE3.8 セットアップ手順
https://raw.github.com/openpne/OpenPNE3/OpenPNE-3.8.6/doc...
** portinstall lang/php5 [#x42dbb3f]
** portinstall lang/php5-extensions [#w7d00cae]
以下のExtensionは外す。
PDO_Firebird
recode
sybase_ct
http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?cm...
** MySQL [#ida58492]
***databases/mysql55-client [#bb1e8dd5]
***databases/mysql55-server [#zb25792a]
[[MySQL on FreeBSD]]
/etc/rc.conf
mysql_enable="YES"
デフォルトでは /var/db/mysql にデータベースファイルが作成...
mysql_dbdir="/path/to/mysql"
mysqlの設定ファイルの雛形をコピーしておきます。(より大規...
# cp /usr/local/share/mysql/my-large.cnf /usr/local/etc/...
または
# cp /usr/local/share/mysql/my-medium.cnf /usr/local/etc...
# chmod 644 /usr/local/etc/my.cnf
/usr/local/etc/my.conf
[client]
#password = your_password
#port = 3306
port = ****
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
#port = 3306
port = ****
socket = /tmp/mysql.sock
以下の起動スクリプトで制御できます。
# /usr/local/etc/rc.d/mysql-server start ←デーモンを起動...
# /usr/local/etc/rc.d/mysql-server restart ←デーモンを再...
# /usr/local/etc/rc.d/mysql-server stop ←デーモンを停止...
起動できたら、rootユーザのパスワードを設定します。初期状...
# mysqladmin -u root -h localhost password 'XXXXXX' ←XXX...
**databases/phpmyadmin [#kd7c48d9]
[[phpMyAdmin Ver 3.4.9]]
===> Creating users and/or groups.
Using existing group `www'.
phpMyAdmin-4.0.3 has been installed into:
/usr/local/www/phpMyAdmin
Please edit config.inc.php to suit your needs.
To make phpMyAdmin available through your web site, I su...
that you add something like the following to httpd.conf:
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
<Directory "/usr/local/www/phpMyAdmin/">
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
</Directory>
SECURITY NOTE: phpMyAdmin is an administrative tool that...
remote vulnerabilities discovered in the past, some allo...
attackers to execute arbitrary code with the web server'...
All known problems have been fixed, but the FreeBSD Secu...
advises that any instance be protected with an additiona...
e.g. a different access control mechanism implemented by...
as shown in the example. Do consider enabling phpMyAdmi...
is in use.
===> Correct pkg-plist sequence to create group(s) and u...
===> Registering installation for phpMyAdmin-4.0.3
===> Cleaning for phpMyAdmin-4.0.3
# ln -s /usr/local/www/phpMyAdmin/ /usr/local/www/apache...
*OpenPNE-3.8.6 [#g7405878]
https://raw.github.com/openpne/OpenPNE3/OpenPNE-3.8.6/doc...
$ cd OpenPNE3
$ cp config/ProjectConfiguration.class.php.sample config...
$ cp config/OpenPNE.yml.sample config/OpenPNE.yml
$ ./symfony openpne:install --internet
**EUSM [#re68a12b]
***/usr/local/etc/apache22/Includes/sns.conf [#ib9ededf]
<Directory "/usr/local/www/apache22/data/EUSM">
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/EUSM/(.*)$ /EUSM/web/$1
</IfModule>
***/usr/local/www/apache22/data/EUSM/web/.htaccess [#cc53...
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
# uncomment the following line, if you are having trou...
# getting no_script_name to work
#RewriteBase /
RewriteBase /EUSM/
# we skip all files with .something
#RewriteCond %{REQUEST_URI} \..+$
#RewriteCond %{REQUEST_URI} !\.html$
#RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
***/usr/local/www/apache22/data/EUSM/config/OpnePNE.yml [...
######################################
# 基本設定 (Basic)
######################################
# SNS の URL
# URL of the SNS
base_url: "http://sns.kuji-clinic.net/EUSM"
######################################
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
[[ZFS on G7 FreeBSD9.1R-p3]]
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*OpenPNE3 [#ncc6c8a5]
install dir : /usr/local/www/apache22/data/OP3
access url : http://g7.kuji-clinic.net/OP3/
.htaccess
RewriteBase /OP3/
sns.conf
Alias /OP3/ "/usr/local/www/apache22/data/OP3/web/"
<Directory "/usr/local/www/apache22/data/OP3/">
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
*OpenPNE3 install error [#qcca0804]
OpenPNE3系のインストールで、PHPがCore吐いて落ちるので、gd...
#0 0x000000000066ae48 in zend_hash_get_current_key_type...
1184 /usr/ports/lang/php5/work/php-5.4.16/Zend/zend_h...
in /usr/ports/lang/php5/work/php-5.4.16/Zend/zen...
[New Thread 802407400 (LWP 100812/php)]
(gdb) where
#0 0x000000000066ae48 in zend_hash_get_current_key_type...
#1 0x0000000000485ed8 in zif_spl_autoload_call (ht=1, r...
at /usr/ports/lang/php5/work/php-5.4.16/ext/spl/php_...
#2 0x00000000006436ac in zend_call_function (fci=0x7fff...
#3 0x0000000000644165 in zend_lookup_class_ex (name=0x8...
use_autoload=1, ce=0x7fffffffb5a8) at /usr/ports/lan...
#4 0x0000000000644540 in zend_lookup_class (name=0x816b...
at /usr/ports/lang/php5/work/php-5.4.16/Zend/zend_ex...
#5 0x00000000006702f2 in zif_class_exists (ht=2, return...
at /usr/ports/lang/php5/work/php-5.4.16/Zend/zend_bu...
#6 0x00000000006920ea in zend_do_fcall_common_helper_SP...
#7 0x0000000000697637 in ZEND_DO_FCALL_SPEC_CONST_HANDL...
#8 0x00000000006911bd in execute (op_array=0x816940dc8)...
#9 0x00000000006574a9 in zend_execute_scripts (type=8, ...
#10 0x00000000005c3946 in php_execute_script (primary_fi...
#11 0x00000000006fed24 in do_cli (argc=4, argv=0x7ffffff...
#12 0x00000000006ffd09 in main (argc=4, argv=0x7fffffffd...
(gdb)
で、もう一度php5のコンパイルオプションにdebugを有効にして...
setenv FORCE_PKG_REGISTER yes
とかしながら入れ直したら、エラーしなくなりますた。( ̄^ ̄)ゞ
*OpenPNE 3.8.6 on FreeBSD 9.1R [#gcd469d8]
http://www.openpne.jp/pne-downloads/openpne3/#openpne-3.7...
G7(FreeBSD9.1R-p3の実験機)へ、k222(FreeBSD 7.1R-p16)で稼...
+稼働中のOpnePne3系は、sns.example.net/Com_Name/ なので、...
+データは出来るだけzpool上に置くようにデザインする。
OpenPneを取って来るために
** portinstall devel/git [#l441783a]
する
root@G7:/root # mkdir /home/OpenPne3
root@G7:/root # cd /home/OpenPne3/
root@G7:/home/OpenPne3 # ll
total 0
root@G7:/home/OpenPne3 # git clone git://github.com/open...
Cloning into 'OpenPNE3'...
remote: Counting objects: 54395, done.
remote: Compressing objects: 100% (17621/17621), done.
remote: Total 54395 (delta 35724), reused 52916 (delta 3...
Receiving objects: 100% (54395/54395), 17.91 MiB | 921 K...
Resolving deltas: 100% (35724/35724), done.
root@G7:/home/OpenPne3 #
root@G7:/home/OpenPne3 #
root@G7:/home/OpenPne3 # ll
total 2
drwxr-xr-x 15 root wheel 20 Jun 7 14:16 OpenPNE3/
root@G7:/home/OpenPne3 # cd OpenPNE3/
root@G7:/home/OpenPne3/OpenPNE3 # git checkout OpenPNE-3...
Note: checking out 'OpenPNE-3.8.6'.
You are in 'detached HEAD' state. You can look around, m...
changes and commit them, and you can discard any commits...
state without impacting any branches by performing anoth...
If you want to create a new branch to retain commits you...
do so (now or later) by using -b with the checkout comma...
git checkout -b new_branch_name
HEAD is now at 055e197... version 3.8.6
OpenPNE3.8 セットアップ手順
https://raw.github.com/openpne/OpenPNE3/OpenPNE-3.8.6/doc...
** portinstall lang/php5 [#x42dbb3f]
** portinstall lang/php5-extensions [#w7d00cae]
以下のExtensionは外す。
PDO_Firebird
recode
sybase_ct
http://piano2nd.smb.net/~kuji/pukiwiki-1.4.7/index.php?cm...
** MySQL [#ida58492]
***databases/mysql55-client [#bb1e8dd5]
***databases/mysql55-server [#zb25792a]
[[MySQL on FreeBSD]]
/etc/rc.conf
mysql_enable="YES"
デフォルトでは /var/db/mysql にデータベースファイルが作成...
mysql_dbdir="/path/to/mysql"
mysqlの設定ファイルの雛形をコピーしておきます。(より大規...
# cp /usr/local/share/mysql/my-large.cnf /usr/local/etc/...
または
# cp /usr/local/share/mysql/my-medium.cnf /usr/local/etc...
# chmod 644 /usr/local/etc/my.cnf
/usr/local/etc/my.conf
[client]
#password = your_password
#port = 3306
port = ****
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
#port = 3306
port = ****
socket = /tmp/mysql.sock
以下の起動スクリプトで制御できます。
# /usr/local/etc/rc.d/mysql-server start ←デーモンを起動...
# /usr/local/etc/rc.d/mysql-server restart ←デーモンを再...
# /usr/local/etc/rc.d/mysql-server stop ←デーモンを停止...
起動できたら、rootユーザのパスワードを設定します。初期状...
# mysqladmin -u root -h localhost password 'XXXXXX' ←XXX...
**databases/phpmyadmin [#kd7c48d9]
[[phpMyAdmin Ver 3.4.9]]
===> Creating users and/or groups.
Using existing group `www'.
phpMyAdmin-4.0.3 has been installed into:
/usr/local/www/phpMyAdmin
Please edit config.inc.php to suit your needs.
To make phpMyAdmin available through your web site, I su...
that you add something like the following to httpd.conf:
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
<Directory "/usr/local/www/phpMyAdmin/">
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
</Directory>
SECURITY NOTE: phpMyAdmin is an administrative tool that...
remote vulnerabilities discovered in the past, some allo...
attackers to execute arbitrary code with the web server'...
All known problems have been fixed, but the FreeBSD Secu...
advises that any instance be protected with an additiona...
e.g. a different access control mechanism implemented by...
as shown in the example. Do consider enabling phpMyAdmi...
is in use.
===> Correct pkg-plist sequence to create group(s) and u...
===> Registering installation for phpMyAdmin-4.0.3
===> Cleaning for phpMyAdmin-4.0.3
# ln -s /usr/local/www/phpMyAdmin/ /usr/local/www/apache...
*OpenPNE-3.8.6 [#g7405878]
https://raw.github.com/openpne/OpenPNE3/OpenPNE-3.8.6/doc...
$ cd OpenPNE3
$ cp config/ProjectConfiguration.class.php.sample config...
$ cp config/OpenPNE.yml.sample config/OpenPNE.yml
$ ./symfony openpne:install --internet
**EUSM [#re68a12b]
***/usr/local/etc/apache22/Includes/sns.conf [#ib9ededf]
<Directory "/usr/local/www/apache22/data/EUSM">
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/EUSM/(.*)$ /EUSM/web/$1
</IfModule>
***/usr/local/www/apache22/data/EUSM/web/.htaccess [#cc53...
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
# uncomment the following line, if you are having trou...
# getting no_script_name to work
#RewriteBase /
RewriteBase /EUSM/
# we skip all files with .something
#RewriteCond %{REQUEST_URI} \..+$
#RewriteCond %{REQUEST_URI} !\.html$
#RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
***/usr/local/www/apache22/data/EUSM/config/OpnePNE.yml [...
######################################
# 基本設定 (Basic)
######################################
# SNS の URL
# URL of the SNS
base_url: "http://sns.kuji-clinic.net/EUSM"
######################################
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: