OpenPNE3 on FreeBSD
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[OpenPNE on FreeBSD 7.1]]
#contents
----
*---> Upgrading 'php5-5.4.5' to 'php5-5.4.13' (lang/php5...
Blackcube2で、pHpのバージョンを最新にあげてみたけど、Open...
*portupgrade apache22-2.2.22 → apache22-2.2.24 [#c46d46...
&ref(apache_blackcube2_options.png);
----
*Blackcube2でスクラッチからインストール再チャレンジ 2013...
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/...
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/...
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/...
>> doctrine Dropping "doctrine" database
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine generating model classes
>> file+ /var/tmp/doctrine_schema_95573.yml
というエラーなので、phpMyAdmin で DBとuserを作成して --...
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/...
>> doctrine Dropping "doctrine" database
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine generating model classes
>> file+ /var/tmp/doctrine_schema_66394.yml
Segmentation fault (core dumped)
root@blackcube2:/usr/local/www/apache22/data/OpenPNE3 # ...
>> plugin Configuring plugin - opAlbumPlugin
>> plugin Configuring plugin - opAshiatoPlugin
>> plugin Configuring plugin - opAuthMailAddressPlugin
>> plugin Configuring plugin - opAuthMobileUIDPlugin
>> plugin Configuring plugin - opAuthOpenIDPlugin
>> plugin Configuring plugin - opBlogPlugin
>> plugin Configuring plugin - opCommunityTopicPlugin
>> plugin Configuring plugin - opDiaryPlugin
>> plugin Configuring plugin - opFavoritePlugin
>> plugin Configuring plugin - opIntroFriendPlugin
>> plugin Configuring plugin - opMessagePlugin
>> plugin Configuring plugin - opOpenSocialPlugin
>> plugin Configuring plugin - opRankingPlugin
>> plugin Configuring plugin - opSkinBasicPlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/o...
>> plugin Configuring plugin - opSkinClassicPlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/o...
>> plugin Configuring plugin - opWebAPIPlugin
>> plugin Configuring plugin - sfDoctrinePlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/s...
>> plugin Configuring plugin - sfFormExtraPlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/s...
>> plugin Configuring plugin - sfImageHandlerPlugin
>> plugin Configuring plugin - sfProtoculousPlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/s...
>> plugin Configuring plugin - sfSymfonyTemplatingVie...
>> installer installation is completed!
root@blackcube2:/usr/local/www/apache22/data/OpenPNE3 #
あっさりOK ( ´▽`)ノ
**/usr/local/www/apache22/data/OpenPNE3/web/.htaccess [#s...
# uncomment the following line, if you are having trouble
# getting no_script_name to work
RewriteBase /OpenPNE3
**/usr/local/etc/apache22/includes/sns.conf [#ta9d28a4]
<Directory "/usr/local/www/apache22/data/OpenPNE3">
# Options Indexes FollowSymLinks ExecCGI
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/OpenPNE3/(.*)$ /OpenPNE3/web/$1
# RewriteRule ^/OpenPNE3/(.*)$ OpenPNE3/web/$1
</IfModule>
RewriteLog "/tmp/rewrite.log"
RewriteLogLevel 9
----
*何度もインストールやり直すときに便利なコマンド [#nfdaf1ad]
http://openpne3.com/wiki/OpenPNE3%E3%83%8E%E3%82%A6%E3%83...
OpenPNE3.6から
openpne:install --redo
で出来るようになりました
$ ./symfony openpne:install
----
>> file+ /usr/local/www/apache22/data/OP36B/data/fi...
>> doctrine Dropping "doctrine" database
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_73175.yml
Bus error (core dumped)
----
http://himaphp.blog.fc2.com/blog-entry-8.html
Parse error: syntax error, unexpected ';' in /usr/home/O...
----
root@g7:/root # portinstall devel/pear-channel-symfony
[Gathering depends for devel/pear-channel-symfony ........
---> Installing 'pear-channel-symfony-20110701' from a ...
---> Building '/usr/ports/devel/pear-channel-symfony'
===> Cleaning for pear-channel-symfony-20110701
===> Extracting for pear-channel-symfony-20110701
===> Patching for pear-channel-symfony-20110701
===> pear-channel-symfony-20110701 depends on file: /u...
===> Configuring for pear-channel-symfony-20110701
---> Installing the new version via the port
===> Installing for pear-channel-symfony-20110701
===> pear-channel-symfony-20110701 depends on file: /u...
===> Generating temporary packing list
===> Registering installation for pear-channel-symfony...
===> Cleaning for pear-channel-symfony-20110701
root@g7:/root #
----
Warning: ob_start(): function '' not found or invalid fu...
/usr/local/www/apache22/data/OP3/lib/vendor/symfony/lib/...
----
なんか、やたらApacheが落ちまくってダメ。
root@g7:/usr/home/OpenPNE3-OpenPNE-3.4.21 # ll
total 55329
-rw------- 1 www www 56541184 Mar 12 14:07 php.core
root@g7:/usr/home/OpenPNE3-OpenPNE-3.4.21 # gdb /usr/loc...
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public ...
welcome to change it and/or distribute copies of it unde...
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show war...
This GDB was configured as "amd64-marcel-freebsd"...(no ...
warning: exec file is newer than core file.
Core was generated by `php'.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/libcrypt.so.5...(no debugging ...
Loaded symbols for /lib/libcrypt.so.5
Loaded symbols for /libexec/ld-elf.so.1
#0 0x00000000005813d2 in zend_hash_get_current_key_type...
[New Thread 802007400 (LWP 100724/php)]
(gdb)
(gdb)
(gdb) where
#0 0x00000000005813d2 in zend_hash_get_current_key_type...
#1 0x00000000004624ae in zif_spl_autoload_call ()
#2 0x00000000005681f8 in zend_call_function ()
#3 0x00000000005687ae in zend_lookup_class_ex ()
#4 0x0000000000586ee3 in zif_class_exists ()
#5 0x00000000005a3326 in zend_do_fcall_common_helper_SP...
#6 0x00000000005a919d in execute ()
#7 0x0000000000574457 in zend_execute_scripts ()
#8 0x0000000000514ef7 in php_execute_script ()
#9 0x000000000061d33c in do_cli ()
*FreeBSDにPHPフレームワーク Zend Frameworkをインストール...
http://kaworu.jpn.org/kaworu/2009-01-11-1.php
但し、古いOpenPne3だとインストールエラーするよ
http://trac.openpne.jp/ticket/4183
/usr/local/share/ZendFramework/library
にインストールされます。
**PHPの設定 [#e835b37c]
php.iniなどのPHPの設定ファイルのinclude_pathにZendFramewo...
include_path = ".:/usr/local/share/ZendFramework/library"
**サンプルコード [#la08b655]
Zend Frameworkのバージョンを表示するだけのサンプルコード。
<?php
require 'Zend/Version.php';
echo Zend_Version::VERSION;
?>
********************************************************...
Now you need to adjust PHP's include_path to contain
`/usr/local/share/ZendFramework/library'
For example, insert:
include_path = ".:/usr/local/share/ZendFramework...
into `/usr/local/etc/php.ini'.
Zend Framework includes the Zend_Tool class and wrapper ...
for automating many common framework-related tasks. To u...
zf wrapper script, set the following environment variable:
Bourne shell:
export ZEND_TOOL_INCLUDE_PATH_PREPEND= \
/usr/local/share/ZendFramework/library
C-shell:
setenv ZEND_TOOL_INCLUDE_PATH_PREPEND \
/usr/local/share/ZendFramework/library
Documentation for the Zend_Tool class is found at:
http://framework.zend.com/manual/1.12/en/zend.tool.frame...
For more general information about the Zend Framework, p...
visit: http://framework.zend.com/
********************************************************...
===> Registering installation for ZendFramework-1.12.0_1
===> Cleaning for php5-pdo_mysql-5.4.12
===> Cleaning for ZendFramework-1.12.0_1
----
SQLSTATE[HY000]: General error: 1364 Field 'height' doesn...
http://12net.jp/blog/b20110208_01.html
----
>> doctrine Dropping "doctrine" database
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_85868.yml
Segmentation fault (core dumped)
----
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>
----
*新規登録 で、エラー [#w5eb0e42]
http://d.hatena.ne.jp/hydrangeas/20121017/1350473032
*OpnePNE3 FreeBSD 9.1R [#q0658dca]
2013-03-07 (木) 15:50:54
githubで最新を追いかけるのは、この次にw
取り敢えず2013/03/07の時点での最新版、OpenPNE3.6.8をDL。
で、サーバのzpool事情もあって、/usr/home/以下において解凍...
root@g7:/usr/home # unzip OpenPNE3-OpenPNE-3.6.8.zip
セットアップ手順
https://raw.github.com/openpne/OpenPNE3/OpenPNE-3.6.8/doc...
手順書に曰く
Webサーバ
Apache
* mod_rewrite を使用可能
PHP
PHP5.2.3 以降
* PHP の mbstring 拡張モジュールを使用可能
* PHP の XML 拡張モジュールを使用可能
* PHP の PCRE 拡張モジュールを使用可能 (UTF-8 サポート)
* PHP の PDO 拡張モジュールを使用可能 (利用する DBMS ...
* PHP の JSON 拡張モジュールを使用可能
* PHP から GD ライブラリを使用可能 (JPEG/GIF/PNG サポ...
* PHP の mcrypt 拡張モジュールの使用を推奨
* PHP の APC 拡張モジュールの使用を推奨
データベースサーバ
MySQL4.1以降(5.1 以降を推奨)
PostgreSQL, SQLite は現時点で未サポート(将来的にサポー...
とのことであるので、
portinstall lang/php5-extensions
する。
**Couldn't locate driver named mysql [#g4f3f44c]
と言うエラーがでる。
portinstall databases/php5-pdo_mysql
root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 # ./symfony ope...
>> file+ /tmp/doctrine_schema_57917.yml
Segmentation fault (core dumped)
>> file+ /usr/local/www/apache22/data/OpenPNE3-OpenP...
012_010_default_api_configuration_84ee96bc5607b297400a10...
>> doctrine Dropping "doctrine" database
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_71958.yml
Fatal error: Cannot call overloaded function for non-obj...
3.6.8/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
lib/vendor/doctrine/Doctrine/Import/Builder.php on line ...
root@g7:/usr/local/www/apache22/data/OpenPNE3-OpenPNE-3....
関係無いとは思うが、
MySQLを56にUPして環境を整え、さらに
root@g7:/usr/ports/lang/php5-extensions # portinstall te...
してからインストールを繰り返す。
結果、phpMyAdminで予め全権ユーザと同名DBをつくって、再イ...
>> plugin Configuring plugin - sfProtoculousPlugin
>> link+ /usr/home/OpenPNE3-OpenPNE-3.6.8/web/sfProt...
>> plugin Configuring plugin - sfSymfonyTemplatingVie...
>> installer installation is completed!
root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 #
無事通りました。( ´▽`)ノ
ということだが、また、別のPNE3をインストールすると、
>> file+ /usr/local/www/apache22/data/OP3/data/fixtu...
>> file+ /usr/local/www/apache22/data/OP3/data/fixtu...
>> file+ /usr/local/www/apache22/data/OP3/data/fixtu...
>> doctrine Dropping "doctrine" database
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_99811.yml
いつも大抵ここで
Bus error (core dumped)
とか、
Segmentation fault (core dumped)
になって落ちる(ーー;)
>> tokens /usr/local/www/apache22/data/OP3/lib/model/...
>> tokens /usr/local/www/apache22/data/OP3/lib/model/...
と言うことを繰り返す。が、何度もやると、鬼門を通り抜けて...
root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 # ./symfony pro...
さて、現在、/usr/home/OpenPNE3-OpenPNE-3.6.8 にあるwebを
http://g7.kuji-clinic.net/SNS
で表示することにする。
http://mpweb.mobi/server/mod_rewrite.php
/usr/local/etc/apache22/Includes/sns.conf
#OpnePNE 3
<Directory "/usr/home/OpenPNE3-OpenPNE-3.6.8">
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/www/apache22/data/SNS">
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/SNS/(.*)$ /usr/home/OpenPNE3-OpenPNE-3.6...
</IfModule>
RewriteLogLevel 9
RewriteLog /var/log/httpd-rewrite.log
/usr/home/OpenPNE3-OpenPNE-3.6.8/web/.htaccess
オリジナルのまま
http://g7.kuji-clinic.net/SNS/pc_backend.php/
----
*OpenPNE3 が、php.core を吐く件 [#k7a7397a]
k222# chown -R www:www OpenPNE3
SNS毎のデイリーニュースを送信したあとcore吐いて落ちる。デ...
k222# cd /usr/local/www/apache22/data/OpenPNE3
k222# ll
total 11440
drwxr-xr-x 8 www www 512 Aug 17 2010 .git
-rw-r--r-- 1 www www 483 Aug 17 2010 .gitignore
-rw-r--r-- 1 www www 11358 Aug 17 2010 LICENSE
-rw-r--r-- 1 www www 1413 Aug 17 2010 NOTICE
-rw-r--r-- 1 www www 164 Aug 17 2010 README
drwxr-xr-x 7 www www 512 Aug 17 2010 apps
drwxr-xr-x 2 www www 512 Aug 17 2010 bin
drwxrwxrwx 6 www www 512 Sep 24 2010 cache
drwxr-xr-x 4 www www 512 Aug 17 2010 config
drwxr-xr-x 8 www www 512 Aug 17 2010 data
drwxr-xr-x 4 www www 512 Aug 17 2010 doc
drwxr-xr-x 2 www www 512 Aug 17 2010 i18n
drwxr-xr-x 29 www www 512 Aug 17 2010 lib
drwxrwxrwx 2 www www 512 Aug 30 2010 log
-rw------- 1 root www 11644928 Mar 22 12:00 php.core...
drwxr-xr-x 25 www www 1024 Sep 24 2010 plugins
-rwxrwxrwx 1 www www 825 Aug 17 2010 symfony
drwxr-xr-x 2 www www 512 Aug 17 2010 templates
drwxr-xr-x 6 www www 512 Aug 17 2010 test
drwxr-xr-x 10 www www 1024 Sep 26 11:55 web
k222# which php
/usr/local/bin/php
k222#
k222#
k222#
k222# gdb /usr/local/bin/php -c php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public ...
welcome to change it and/or distribute copies of it unde...
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show war...
This GDB was configured as "amd64-marcel-freebsd"...(no ...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...(no debugging ...
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /usr/local/lib/libpcre.so.1...(no d...
Loaded symbols for /usr/local/lib/libpcre.so.1
Reading symbols from /lib/libm.so.5...(no debugging symb...
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...(no d...
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.4...(no debugging symb...
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libiconv.so.3...(no ...
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...(no debugging symb...
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debuggin...
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000802357770 in ?? ()
(gdb) where
#0 0x0000000802357770 in ?? ()
#1 0x0000000800d06975 in xmlFreeMutex () from /usr/loca...
#2 0x0000000800d063b5 in xmlCleanupGlobals () from /usr...
#3 0x0000000800c9ee8a in xmlCleanupParser () from /usr/...
#4 0x000000000044b9f8 in php_libxml_shutdown ()
#5 0x000000000044ba53 in zm_shutdown_libxml ()
#6 0x0000000000575e73 in module_destructor ()
#7 0x000000000057dd32 in zend_hash_apply_deleter ()
#8 0x000000000057dfa8 in zend_hash_graceful_reverse_des...
#9 0x00000000005718b0 in zend_shutdown ()
#10 0x00000000005116d5 in php_module_shutdown ()
#11 0x0000000000619935 in main ()
#12 0x000000000041a0ce in _start ()
#13 0x00000008007c7000 in ?? ()
#14 0x0000000000000000 in ?? ()
#15 0x0000000000000004 in ?? ()
:
: 中略
:
#598 0x247c8d48002454ff in ?? ()
#599 0x01a1c0c748006a10 in ?? ()
#600 0x66fdebf4050f0000 in ?? ()
#601 0x9066669066669066 in ?? ()
#602 0x00007fffffffed90 in ?? ()
#603 0x0000000000000004 in ?? ()
#604 0x00007fffffffedb8 in ?? ()
#605 0x0000000000000007 in ?? ()
Cannot access memory at address 0x800000000000
(gdb)
終了行:
[[OpenPNE on FreeBSD 7.1]]
#contents
----
*---> Upgrading 'php5-5.4.5' to 'php5-5.4.13' (lang/php5...
Blackcube2で、pHpのバージョンを最新にあげてみたけど、Open...
*portupgrade apache22-2.2.22 → apache22-2.2.24 [#c46d46...
&ref(apache_blackcube2_options.png);
----
*Blackcube2でスクラッチからインストール再チャレンジ 2013...
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/...
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/...
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/...
>> doctrine Dropping "doctrine" database
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine generating model classes
>> file+ /var/tmp/doctrine_schema_95573.yml
というエラーなので、phpMyAdmin で DBとuserを作成して --...
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/...
>> doctrine Dropping "doctrine" database
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine generating model classes
>> file+ /var/tmp/doctrine_schema_66394.yml
Segmentation fault (core dumped)
root@blackcube2:/usr/local/www/apache22/data/OpenPNE3 # ...
>> plugin Configuring plugin - opAlbumPlugin
>> plugin Configuring plugin - opAshiatoPlugin
>> plugin Configuring plugin - opAuthMailAddressPlugin
>> plugin Configuring plugin - opAuthMobileUIDPlugin
>> plugin Configuring plugin - opAuthOpenIDPlugin
>> plugin Configuring plugin - opBlogPlugin
>> plugin Configuring plugin - opCommunityTopicPlugin
>> plugin Configuring plugin - opDiaryPlugin
>> plugin Configuring plugin - opFavoritePlugin
>> plugin Configuring plugin - opIntroFriendPlugin
>> plugin Configuring plugin - opMessagePlugin
>> plugin Configuring plugin - opOpenSocialPlugin
>> plugin Configuring plugin - opRankingPlugin
>> plugin Configuring plugin - opSkinBasicPlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/o...
>> plugin Configuring plugin - opSkinClassicPlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/o...
>> plugin Configuring plugin - opWebAPIPlugin
>> plugin Configuring plugin - sfDoctrinePlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/s...
>> plugin Configuring plugin - sfFormExtraPlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/s...
>> plugin Configuring plugin - sfImageHandlerPlugin
>> plugin Configuring plugin - sfProtoculousPlugin
>> link+ /usr/local/www/apache22/data/OpenPNE3/web/s...
>> plugin Configuring plugin - sfSymfonyTemplatingVie...
>> installer installation is completed!
root@blackcube2:/usr/local/www/apache22/data/OpenPNE3 #
あっさりOK ( ´▽`)ノ
**/usr/local/www/apache22/data/OpenPNE3/web/.htaccess [#s...
# uncomment the following line, if you are having trouble
# getting no_script_name to work
RewriteBase /OpenPNE3
**/usr/local/etc/apache22/includes/sns.conf [#ta9d28a4]
<Directory "/usr/local/www/apache22/data/OpenPNE3">
# Options Indexes FollowSymLinks ExecCGI
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/OpenPNE3/(.*)$ /OpenPNE3/web/$1
# RewriteRule ^/OpenPNE3/(.*)$ OpenPNE3/web/$1
</IfModule>
RewriteLog "/tmp/rewrite.log"
RewriteLogLevel 9
----
*何度もインストールやり直すときに便利なコマンド [#nfdaf1ad]
http://openpne3.com/wiki/OpenPNE3%E3%83%8E%E3%82%A6%E3%83...
OpenPNE3.6から
openpne:install --redo
で出来るようになりました
$ ./symfony openpne:install
----
>> file+ /usr/local/www/apache22/data/OP36B/data/fi...
>> doctrine Dropping "doctrine" database
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_73175.yml
Bus error (core dumped)
----
http://himaphp.blog.fc2.com/blog-entry-8.html
Parse error: syntax error, unexpected ';' in /usr/home/O...
----
root@g7:/root # portinstall devel/pear-channel-symfony
[Gathering depends for devel/pear-channel-symfony ........
---> Installing 'pear-channel-symfony-20110701' from a ...
---> Building '/usr/ports/devel/pear-channel-symfony'
===> Cleaning for pear-channel-symfony-20110701
===> Extracting for pear-channel-symfony-20110701
===> Patching for pear-channel-symfony-20110701
===> pear-channel-symfony-20110701 depends on file: /u...
===> Configuring for pear-channel-symfony-20110701
---> Installing the new version via the port
===> Installing for pear-channel-symfony-20110701
===> pear-channel-symfony-20110701 depends on file: /u...
===> Generating temporary packing list
===> Registering installation for pear-channel-symfony...
===> Cleaning for pear-channel-symfony-20110701
root@g7:/root #
----
Warning: ob_start(): function '' not found or invalid fu...
/usr/local/www/apache22/data/OP3/lib/vendor/symfony/lib/...
----
なんか、やたらApacheが落ちまくってダメ。
root@g7:/usr/home/OpenPNE3-OpenPNE-3.4.21 # ll
total 55329
-rw------- 1 www www 56541184 Mar 12 14:07 php.core
root@g7:/usr/home/OpenPNE3-OpenPNE-3.4.21 # gdb /usr/loc...
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public ...
welcome to change it and/or distribute copies of it unde...
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show war...
This GDB was configured as "amd64-marcel-freebsd"...(no ...
warning: exec file is newer than core file.
Core was generated by `php'.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/libcrypt.so.5...(no debugging ...
Loaded symbols for /lib/libcrypt.so.5
Loaded symbols for /libexec/ld-elf.so.1
#0 0x00000000005813d2 in zend_hash_get_current_key_type...
[New Thread 802007400 (LWP 100724/php)]
(gdb)
(gdb)
(gdb) where
#0 0x00000000005813d2 in zend_hash_get_current_key_type...
#1 0x00000000004624ae in zif_spl_autoload_call ()
#2 0x00000000005681f8 in zend_call_function ()
#3 0x00000000005687ae in zend_lookup_class_ex ()
#4 0x0000000000586ee3 in zif_class_exists ()
#5 0x00000000005a3326 in zend_do_fcall_common_helper_SP...
#6 0x00000000005a919d in execute ()
#7 0x0000000000574457 in zend_execute_scripts ()
#8 0x0000000000514ef7 in php_execute_script ()
#9 0x000000000061d33c in do_cli ()
*FreeBSDにPHPフレームワーク Zend Frameworkをインストール...
http://kaworu.jpn.org/kaworu/2009-01-11-1.php
但し、古いOpenPne3だとインストールエラーするよ
http://trac.openpne.jp/ticket/4183
/usr/local/share/ZendFramework/library
にインストールされます。
**PHPの設定 [#e835b37c]
php.iniなどのPHPの設定ファイルのinclude_pathにZendFramewo...
include_path = ".:/usr/local/share/ZendFramework/library"
**サンプルコード [#la08b655]
Zend Frameworkのバージョンを表示するだけのサンプルコード。
<?php
require 'Zend/Version.php';
echo Zend_Version::VERSION;
?>
********************************************************...
Now you need to adjust PHP's include_path to contain
`/usr/local/share/ZendFramework/library'
For example, insert:
include_path = ".:/usr/local/share/ZendFramework...
into `/usr/local/etc/php.ini'.
Zend Framework includes the Zend_Tool class and wrapper ...
for automating many common framework-related tasks. To u...
zf wrapper script, set the following environment variable:
Bourne shell:
export ZEND_TOOL_INCLUDE_PATH_PREPEND= \
/usr/local/share/ZendFramework/library
C-shell:
setenv ZEND_TOOL_INCLUDE_PATH_PREPEND \
/usr/local/share/ZendFramework/library
Documentation for the Zend_Tool class is found at:
http://framework.zend.com/manual/1.12/en/zend.tool.frame...
For more general information about the Zend Framework, p...
visit: http://framework.zend.com/
********************************************************...
===> Registering installation for ZendFramework-1.12.0_1
===> Cleaning for php5-pdo_mysql-5.4.12
===> Cleaning for ZendFramework-1.12.0_1
----
SQLSTATE[HY000]: General error: 1364 Field 'height' doesn...
http://12net.jp/blog/b20110208_01.html
----
>> doctrine Dropping "doctrine" database
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_85868.yml
Segmentation fault (core dumped)
----
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045...
>
----
*新規登録 で、エラー [#w5eb0e42]
http://d.hatena.ne.jp/hydrangeas/20121017/1350473032
*OpnePNE3 FreeBSD 9.1R [#q0658dca]
2013-03-07 (木) 15:50:54
githubで最新を追いかけるのは、この次にw
取り敢えず2013/03/07の時点での最新版、OpenPNE3.6.8をDL。
で、サーバのzpool事情もあって、/usr/home/以下において解凍...
root@g7:/usr/home # unzip OpenPNE3-OpenPNE-3.6.8.zip
セットアップ手順
https://raw.github.com/openpne/OpenPNE3/OpenPNE-3.6.8/doc...
手順書に曰く
Webサーバ
Apache
* mod_rewrite を使用可能
PHP
PHP5.2.3 以降
* PHP の mbstring 拡張モジュールを使用可能
* PHP の XML 拡張モジュールを使用可能
* PHP の PCRE 拡張モジュールを使用可能 (UTF-8 サポート)
* PHP の PDO 拡張モジュールを使用可能 (利用する DBMS ...
* PHP の JSON 拡張モジュールを使用可能
* PHP から GD ライブラリを使用可能 (JPEG/GIF/PNG サポ...
* PHP の mcrypt 拡張モジュールの使用を推奨
* PHP の APC 拡張モジュールの使用を推奨
データベースサーバ
MySQL4.1以降(5.1 以降を推奨)
PostgreSQL, SQLite は現時点で未サポート(将来的にサポー...
とのことであるので、
portinstall lang/php5-extensions
する。
**Couldn't locate driver named mysql [#g4f3f44c]
と言うエラーがでる。
portinstall databases/php5-pdo_mysql
root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 # ./symfony ope...
>> file+ /tmp/doctrine_schema_57917.yml
Segmentation fault (core dumped)
>> file+ /usr/local/www/apache22/data/OpenPNE3-OpenP...
012_010_default_api_configuration_84ee96bc5607b297400a10...
>> doctrine Dropping "doctrine" database
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_71958.yml
Fatal error: Cannot call overloaded function for non-obj...
3.6.8/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
lib/vendor/doctrine/Doctrine/Import/Builder.php on line ...
root@g7:/usr/local/www/apache22/data/OpenPNE3-OpenPNE-3....
関係無いとは思うが、
MySQLを56にUPして環境を整え、さらに
root@g7:/usr/ports/lang/php5-extensions # portinstall te...
してからインストールを繰り返す。
結果、phpMyAdminで予め全権ユーザと同名DBをつくって、再イ...
>> plugin Configuring plugin - sfProtoculousPlugin
>> link+ /usr/home/OpenPNE3-OpenPNE-3.6.8/web/sfProt...
>> plugin Configuring plugin - sfSymfonyTemplatingVie...
>> installer installation is completed!
root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 #
無事通りました。( ´▽`)ノ
ということだが、また、別のPNE3をインストールすると、
>> file+ /usr/local/www/apache22/data/OP3/data/fixtu...
>> file+ /usr/local/www/apache22/data/OP3/data/fixtu...
>> file+ /usr/local/www/apache22/data/OP3/data/fixtu...
>> doctrine Dropping "doctrine" database
>> doctrine Creating "prod" environment "doctrine" data...
>> doctrine generating model classes
>> file+ /tmp/doctrine_schema_99811.yml
いつも大抵ここで
Bus error (core dumped)
とか、
Segmentation fault (core dumped)
になって落ちる(ーー;)
>> tokens /usr/local/www/apache22/data/OP3/lib/model/...
>> tokens /usr/local/www/apache22/data/OP3/lib/model/...
と言うことを繰り返す。が、何度もやると、鬼門を通り抜けて...
root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 # ./symfony pro...
さて、現在、/usr/home/OpenPNE3-OpenPNE-3.6.8 にあるwebを
http://g7.kuji-clinic.net/SNS
で表示することにする。
http://mpweb.mobi/server/mod_rewrite.php
/usr/local/etc/apache22/Includes/sns.conf
#OpnePNE 3
<Directory "/usr/home/OpenPNE3-OpenPNE-3.6.8">
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/www/apache22/data/SNS">
Options FollowSymLinks ExecCGI
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/SNS/(.*)$ /usr/home/OpenPNE3-OpenPNE-3.6...
</IfModule>
RewriteLogLevel 9
RewriteLog /var/log/httpd-rewrite.log
/usr/home/OpenPNE3-OpenPNE-3.6.8/web/.htaccess
オリジナルのまま
http://g7.kuji-clinic.net/SNS/pc_backend.php/
----
*OpenPNE3 が、php.core を吐く件 [#k7a7397a]
k222# chown -R www:www OpenPNE3
SNS毎のデイリーニュースを送信したあとcore吐いて落ちる。デ...
k222# cd /usr/local/www/apache22/data/OpenPNE3
k222# ll
total 11440
drwxr-xr-x 8 www www 512 Aug 17 2010 .git
-rw-r--r-- 1 www www 483 Aug 17 2010 .gitignore
-rw-r--r-- 1 www www 11358 Aug 17 2010 LICENSE
-rw-r--r-- 1 www www 1413 Aug 17 2010 NOTICE
-rw-r--r-- 1 www www 164 Aug 17 2010 README
drwxr-xr-x 7 www www 512 Aug 17 2010 apps
drwxr-xr-x 2 www www 512 Aug 17 2010 bin
drwxrwxrwx 6 www www 512 Sep 24 2010 cache
drwxr-xr-x 4 www www 512 Aug 17 2010 config
drwxr-xr-x 8 www www 512 Aug 17 2010 data
drwxr-xr-x 4 www www 512 Aug 17 2010 doc
drwxr-xr-x 2 www www 512 Aug 17 2010 i18n
drwxr-xr-x 29 www www 512 Aug 17 2010 lib
drwxrwxrwx 2 www www 512 Aug 30 2010 log
-rw------- 1 root www 11644928 Mar 22 12:00 php.core...
drwxr-xr-x 25 www www 1024 Sep 24 2010 plugins
-rwxrwxrwx 1 www www 825 Aug 17 2010 symfony
drwxr-xr-x 2 www www 512 Aug 17 2010 templates
drwxr-xr-x 6 www www 512 Aug 17 2010 test
drwxr-xr-x 10 www www 1024 Sep 26 11:55 web
k222# which php
/usr/local/bin/php
k222#
k222#
k222#
k222# gdb /usr/local/bin/php -c php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public ...
welcome to change it and/or distribute copies of it unde...
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show war...
This GDB was configured as "amd64-marcel-freebsd"...(no ...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...(no debugging ...
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /usr/local/lib/libpcre.so.1...(no d...
Loaded symbols for /usr/local/lib/libpcre.so.1
Reading symbols from /lib/libm.so.5...(no debugging symb...
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...(no d...
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.4...(no debugging symb...
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libiconv.so.3...(no ...
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...(no debugging symb...
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debuggin...
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000802357770 in ?? ()
(gdb) where
#0 0x0000000802357770 in ?? ()
#1 0x0000000800d06975 in xmlFreeMutex () from /usr/loca...
#2 0x0000000800d063b5 in xmlCleanupGlobals () from /usr...
#3 0x0000000800c9ee8a in xmlCleanupParser () from /usr/...
#4 0x000000000044b9f8 in php_libxml_shutdown ()
#5 0x000000000044ba53 in zm_shutdown_libxml ()
#6 0x0000000000575e73 in module_destructor ()
#7 0x000000000057dd32 in zend_hash_apply_deleter ()
#8 0x000000000057dfa8 in zend_hash_graceful_reverse_des...
#9 0x00000000005718b0 in zend_shutdown ()
#10 0x00000000005116d5 in php_module_shutdown ()
#11 0x0000000000619935 in main ()
#12 0x000000000041a0ce in _start ()
#13 0x00000008007c7000 in ?? ()
#14 0x0000000000000000 in ?? ()
#15 0x0000000000000004 in ?? ()
:
: 中略
:
#598 0x247c8d48002454ff in ?? ()
#599 0x01a1c0c748006a10 in ?? ()
#600 0x66fdebf4050f0000 in ?? ()
#601 0x9066669066669066 in ?? ()
#602 0x00007fffffffed90 in ?? ()
#603 0x0000000000000004 in ?? ()
#604 0x00007fffffffedb8 in ?? ()
#605 0x0000000000000007 in ?? ()
Cannot access memory at address 0x800000000000
(gdb)
ページ名: