>> file+ /usr/local/www/apache22/data/OpenPNE3/data/fixtures_tmp/011_010_navigation_91afda04df59191a09a89c35dc28d5b3.yml >> file+ /usr/local/www/apache22/data/OpenPNE3/data/fixtures_tmp/011_020_gadget_25cbeed9bd27e49383e6d155cfa4870f.yml >> file+ /usr/local/www/apache22/data/OpenPNE3/data/fixtures_tmp/012_navigation_a096d2917ac186bd2a4876de486d9dad.yml >> doctrine Dropping "doctrine" database >> doctrine PDO Connection Error: SQLSTATE[HY000] [1045] Access denied for user 'pne3'@'localhost' (using password: YES) >> doctrine Creating "prod" environment "doctrine" database >> doctrine PDO Connection Error: SQLSTATE[HY000] [1045] Access denied for user 'pne3'@'localhost' (using password: YES) >> doctrine generating model classes >> file+ /var/tmp/doctrine_schema_95573.yml
というエラーなので、phpMyAdmin で DBとuserを作成して --redo
>> file+ /usr/local/www/apache22/data/OpenPNE3/data/fixtures_tmp/012_010_default_api_configuration_0e7485e9c6b7f61825381029f61da560.yml >> doctrine Dropping "doctrine" database >> doctrine Creating "prod" environment "doctrine" database >> doctrine generating model classes >> file+ /var/tmp/doctrine_schema_66394.yml Segmentation fault (core dumped) root@blackcube2:/usr/local/www/apache22/data/OpenPNE3 # ./symfony openpne:install --redo
>> 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/opSkinBasicPlugin >> plugin Configuring plugin - opSkinClassicPlugin >> link+ /usr/local/www/apache22/data/OpenPNE3/web/opSkinClassicPlugin >> plugin Configuring plugin - opWebAPIPlugin >> plugin Configuring plugin - sfDoctrinePlugin >> link+ /usr/local/www/apache22/data/OpenPNE3/web/sfDoctrinePlugin >> plugin Configuring plugin - sfFormExtraPlugin >> link+ /usr/local/www/apache22/data/OpenPNE3/web/sfFormExtraPlugin >> plugin Configuring plugin - sfImageHandlerPlugin >> plugin Configuring plugin - sfProtoculousPlugin >> link+ /usr/local/www/apache22/data/OpenPNE3/web/sfProtoculousPlugin >> plugin Configuring plugin - sfSymfonyTemplatingViewPlugin >> installer installation is completed! root@blackcube2:/usr/local/www/apache22/data/OpenPNE3 #
あっさりOK ( ´▽`)ノ
# uncomment the following line, if you are having trouble # getting no_script_name to work RewriteBase /OpenPNE3
<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
openpne:install --redo
で出来るようになりました
$ ./symfony openpne:install
>> file+ /usr/local/www/apache22/data/OP36B/data/fixtures_tmp/008_020_gadget_0347f9728968379729fd3ae0fe9ca6b6.yml >> doctrine Dropping "doctrine" database >> doctrine PDO Connection Error: SQLSTATE[HY000] [1045] Access denied for user 'op36b'@'localhost' (using password: YES) >> doctrine Creating "prod" environment "doctrine" database >> doctrine PDO Connection Error: SQLSTATE[HY000] [1045] Access denied for user 'op36b'@'localhost' (using password: YES) >> 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/OpenPNE3/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 470
root@g7:/root # portinstall devel/pear-channel-symfony [Gathering depends for devel/pear-channel-symfony .................................................... done] ---> Installing 'pear-channel-symfony-20110701' from a port (devel/pear-channel-symfony) ---> 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: /usr/local/bin/pear - found ===> 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: /usr/local/bin/pear - found ===> Generating temporary packing list ===> Registering installation for pear-channel-symfony-20110701 ===> Cleaning for pear-channel-symfony-20110701 root@g7:/root #
Warning: ob_start(): function '' not found or invalid function name in /usr/local/www/apache22/data/OP3/lib/vendor/symfony/lib/config/sfApplicationConfiguration.class.php on line 155
なんか、やたら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/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 License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... 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 symbols found)...done. Loaded symbols for /lib/libcrypt.so.5 Loaded symbols for /libexec/ld-elf.so.1 #0 0x00000000005813d2 in zend_hash_get_current_key_type_ex () [New Thread 802007400 (LWP 100724/php)] (gdb) (gdb)
(gdb) where #0 0x00000000005813d2 in zend_hash_get_current_key_type_ex () #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_SPEC () #6 0x00000000005a919d in execute () #7 0x0000000000574457 in zend_execute_scripts () #8 0x0000000000514ef7 in php_execute_script () #9 0x000000000061d33c in do_cli ()
http://kaworu.jpn.org/kaworu/2009-01-11-1.php
但し、古いOpenPne3だとインストールエラーするよ
http://trac.openpne.jp/ticket/4183
/usr/local/share/ZendFramework/library
にインストールされます。
php.iniなどのPHPの設定ファイルのinclude_pathにZendFrameworkのパスを追加します。
include_path = ".:/usr/local/share/ZendFramework/library"
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/library" into `/usr/local/etc/php.ini'. Zend Framework includes the Zend_Tool class and wrapper script for automating many common framework-related tasks. To use the 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.framework.introduction.html For more general information about the Zend Framework, please 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't have a default valu
http://12net.jp/blog/b20110208_01.html
>> doctrine Dropping "doctrine" database >> doctrine Creating "prod" environment "doctrine" database >> doctrine generating model classes >> file+ /tmp/doctrine_schema_85868.yml Segmentation fault (core dumped)
>> doctrine PDO Connection Error: SQLSTATE[HY000] [1045] Access denied for user 'pne34'@'localhost' (using password: YES) >> doctrine Creating "prod" environment "doctrine" database >> doctrine PDO Connection Error: SQLSTATE[HY000] [1045] Access denied for user 'pne34'@'localhost' (using password: YES) >
http://d.hatena.ne.jp/hydrangeas/20121017/1350473032
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/ja/OpenPNE3_Setup_Guide.txt
手順書に曰く
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
する。
と言うエラーがでる。
portinstall databases/php5-pdo_mysql
root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 # ./symfony openpne:install >> file+ /tmp/doctrine_schema_57917.yml Segmentation fault (core dumped)
>> file+ /usr/local/www/apache22/data/OpenPNE3-OpenPNE-3.6.8/data/fixtures_tmp/ 012_010_default_api_configuration_84ee96bc5607b297400a105f78586824.yml >> doctrine Dropping "doctrine" database >> doctrine Creating "prod" environment "doctrine" database >> doctrine generating model classes >> file+ /tmp/doctrine_schema_71958.yml Fatal error: Cannot call overloaded function for non-object in /usr/local/www/apache22/data/OpenPNE3-OpenPNE- 3.6.8/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ lib/vendor/doctrine/Doctrine/Import/Builder.php on line 714 root@g7:/usr/local/www/apache22/data/OpenPNE3-OpenPNE-3.6.8 #
関係無いとは思うが、
MySQLを56にUPして環境を整え、さらに root@g7:/usr/ports/lang/php5-extensions # portinstall textproc/php5-xsl
してからインストールを繰り返す。
結果、phpMyAdminで予め全権ユーザと同名DBをつくって、再インストールしたら、
>> plugin Configuring plugin - sfProtoculousPlugin >> link+ /usr/home/OpenPNE3-OpenPNE-3.6.8/web/sfProtoculousPlugin >> plugin Configuring plugin - sfSymfonyTemplatingViewPlugin >> installer installation is completed! root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 #
無事通りました。( ´▽`)ノ
ということだが、また、別のPNE3をインストールすると、
>> file+ /usr/local/www/apache22/data/OP3/data/fixtures_tmp/010_100_paypal_85214cc6c9c93d94c91da6fea3de9aeb.yml >> file+ /usr/local/www/apache22/data/OP3/data/fixtures_tmp/011_navigation_180b42ce78b1fd7e03a36ca4ca9a45f6.yml >> file+ /usr/local/www/apache22/data/OP3/data/fixtures_tmp/012_010_default_api_configuration_a79bae3aa9e1f2f0ce716a59c861df9f.yml >> doctrine Dropping "doctrine" database >> doctrine Creating "prod" environment "doctrine" database >> 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/doctrine/opMessagePlugin/base/BaseMessageType.class.php >> tokens /usr/local/www/apache22/data/OP3/lib/model/doctrine/opMessagePlugin/base/BaseDeletedMessage.class.php
と言うことを繰り返す。が、何度もやると、鬼門を通り抜けてインストール出来る・・・こともある。┐(´д`)┌
root@g7:/usr/home/OpenPNE3-OpenPNE-3.6.8 # ./symfony project:clear-controllers
さて、現在、/usr/home/OpenPNE3-OpenPNE-3.6.8 にあるwebを
で表示することにする。
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.8/web/$1 </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/
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 License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... Core was generated by `php'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libcrypt.so.4...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.4 Reading symbols from /usr/local/lib/libpcre.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libpcre.so.1 Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libxml2.so.5 Reading symbols from /lib/libz.so.4...(no debugging symbols found)...done. Loaded symbols for /lib/libz.so.4 Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x0000000802357770 in ?? () (gdb) where #0 0x0000000802357770 in ?? () #1 0x0000000800d06975 in xmlFreeMutex () from /usr/local/lib/libxml2.so.5 #2 0x0000000800d063b5 in xmlCleanupGlobals () from /usr/local/lib/libxml2.so.5 #3 0x0000000800c9ee8a in xmlCleanupParser () from /usr/local/lib/libxml2.so.5 #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_destroy () #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)