2009/01/17

エックスサーバーにEC CUBE

まずはファイルをゲットhttp://www.ec-cube.net/

環境はエックスサーバーなのでいわゆるLAMP環境です
EC CUBEは2.3.3(UTF-8)
MySqlは5.022(UTF-8)
PHPは4.3.9
Apacheは2.0.52 (Red Hat)


mobile用にphp.iniを作成(一行記述のみ)
session.use_trans_sid = 1

これをmobileの各ディレクトリにコピー

UTF-8版なのでDB作成時にもUTF-8を指定。
php.iniにてマルチバイト関数を指定。
とりあえず問題のない記述を記録。
register_globals = on
safe_mode = off
max_input_time = 60
output_buffering = Off
output_handler = mb_output_handler
safe_mode_exec_dir = none
upload_max_filesize = 10M
variables_order = EGPCS
dbx.colnames_case = lowercase
HTTP input encoding translation = on
mbstring.detect_order = auto
mbstring.encoding_translation = on
mbstring.http_input = auto
mbstring.http_output = EUC-JP
mbstring.internal_encoding = EUC-JP
mbstring.language = Japanese
mbstring.detect_order = auto
mbstring.substitute_character = none
session.save_path = /var/lib/php/session
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
cgi.fix_pathinfo=1
$pathinfo_index = isset($_SERVER['ORIG_PATH_INFO']) ? 'ORIG_PATH_INFO' : 'PATH_INFO';
print $_SERVER[$pathinfo_index];
AcceptPathInfo On

config的なファイルの在処は
../ec_cube/data/install.php