質問 > その他 > インストール時、データベースの初期化が失敗する |
その他
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
cut |
投稿日時: 2007/10/29 17:59
対応状況: −−−
|
新米 ![]() ![]() 登録日: 2007/10/29 居住地: 投稿: 1 |
インストール時、データベースの初期化が失敗する はじめまして。
ec-cube1.3.4インストールで途方にくれております。 半月前からのべ1週間ほどかけて、やれることはすべてやってみましたが、インストールの「データベースの初期化」で、 ×:初期データの作成に失敗しました。 >> DB Error: unknown error [nativecode=ERROR: invalid byte sequence for encoding "SJIS": 0xe831 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] と出てしまいます。 ムシのいい話ですが、アドバイスをお願いします! 現状、以下のとおりです。 ■OS FreeBSD 6.2-RELEASE-p4 ■postgesql8.2.5 initdb --encoding=EUC_JP --no-locale createuser --createdb --no-adduser --pwprompt eccube_db_user createdb -U eccube_db_user eccube_db ※以下、アクセス許可IP設定 ・postgresql.conf listen_addresses = '*' ・pg_hba.conf host all all 192.168.1.1/16 trust ■apache2.0.61 バーチャルドメインは普通に動作。phpも、問題なく動作。 .htaccessによる変更許可のため、 AllowOverride All もつけました。 ■php5.2.4 デフォルトのphp.iniにマニュアルどおり [mbstring] mbstring.language = Japanese mbstring.http_input = EUC-JP mbstring.http_output = EUC-JP auto_detect_line_endings = on output_handler = mb_output_handler default_charset = EUC-JP mbstring.internal_encoding = EUC-JP mbstring.encoding_translation = on mbstring.detect_order = auto mbstring.substitute_character = none magic_quotes_gpc = off を追加。 ▽phpinfoの情報 ・Configure Command ./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-pgsql=/usr/local/pgsql' '--without-mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--enable-mbstring' '--enable-mbregex' '--with-gettext=/usr/local/bin/gettext' '--enable-zend-multibyte' '--with-gd' '--with-jpeg-dir=shared' '--with-zlib-dir=shared' ・mbstring Multibyte Support enabled Multibyte string engine libmbfl HTTP input encoding translation enabled Multibyte (japanese) regex support enabled Multibyte regex (oniguruma) version 4.4.4 Multibyte regex (oniguruma) backtrack check On Directive Local Value Master Value mbstring.detect_order auto auto mbstring.encoding_translation On On mbstring.func_overload 0 0 mbstring.http_input EUC-JP EUC-JP mbstring.http_output EUC-JP EUC-JP mbstring.internal_encoding EUC-JP EUC-JP mbstring.language Japanese Japanese mbstring.script_encoding no value no value mbstring.strict_detection Off Off mbstring.substitute_character no value no value ※mbstring.script_encodingについては、「no value」、「EUC-JP」の両パターン試しました。マニュアルには、「no value」になる設定しかなかったので、そのようにしてあります。 ■.htaccess(そのままです。さわっていません) #基本はphp_ini.incで設定するが、ini_setで反映されないものはここで設定する php_value mbstring.language Japanese php_value output_handler mb_output_handler php_flag mbstring.encoding_translation 1 php_flag magic_quotes_gpc 0 #php_flag session.use_cookies 0 #php_flag session.use_trans_sid 1s28:/usr/htdoc ■ec-cubeインストール 「必要なファイルのコピー」はすべて成功しました。 ▽データベースの初期化 ×:初期データの作成に失敗しました。 >> DB Error: unknown error [nativecode=ERROR: invalid byte sequence for encoding "SJIS": 0xe831 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".] これはSJISで書き込もうとしたという意味ですよね? ■DB確認 DBをみてみると、一応、テーブルと日本語意外のデータは書き込めているようです。 dtb_classcategoryテーブルなどをみると、classcategory_id=1のnameが文字化けしてます。 ■対策 マニュアル(http://wiki.ec-cube.net/)のインストール部分のとおりやったつもりで、自分の知っていることは、1週間かけてすべて試してみましたが同じエラーが起き続けています。 基本に戻り、何度かOSインストールから、DB、php、apacheなどすべてマニュアルどおりにやってみても、同じ場所でコケます・・・。 なにか、根本的でマヌケなミスをしているような気がするのですが・・・。 ここまできて解決の気配もないため、質問させていただきました。 どうか、アドバイスよろしくお願いいたします! |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |