ECcubeã¨ããPHPã§å®è£
ãããå½ç£Eã³ãã¼ã¹ã®ããã°ã©ã ããã£ã¦ããããã¤ã³ã¹ãã¼ã«ãã¦è¨å®ãã¦ã¿ãã
ECcubeã¯ãPC以å¤ã«ãã¢ãã¤ã«3ãã£ãªã¢å¯¾å¿ã«ãªã£ã¦ãã¦ãããå½ç£ã ã¨æããããããªã¼ãã³ã½ã¼ã¹ã§æä¾ããã¦ããã®ã§ãããããã°ãããã§ãã
http://www.ec-cube.net/
ã§ããã®ææ°çã®EC-CUBE Ver2ããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã
ãã®ã½ããã®è¯ãã¨ããã¯ããµã¼ãã«PHPãã¡ã¤ã«ãã¢ãããã¦ã¢ã¯ã»ã¹ããã¨ãã¤ã³ã¹ãã¼ã©ã®ç»é¢ã表示ãããããã«ãããã£ã¦æ
å ±ãå
¥åãã¦ããã¨ECãµã¤ãããã£ã¨ããéã«åºæ¥ä¸ãããDBã®ãã¼ãã«ä½æããã¼ã¿æå
¥ã¾ã§ãã£ã¦ãããã
ã¾ãã¯äºåæºåã¨ãã¦ãMySQLã§ãã¼ã¿ãã¼ã¹ãä½æ
create database ecsample GRANT ALL PRIVILEGES ON ecsample.* TO eccube@localhost IDENTIFIED BY 'hogehoge'; ã¦ã¼ã¶ID eccube, ãã¹ã¯ã¼ãhogehogeã§ecsampleã®DBã«ã¢ã¯ã»ã¹ããã¨ããè¨å®ã FLUSH PRIVILEGES;
ããã ãã
ECcubeã®Ver2ç³»åã¯ãã¹ã¦UTF8ã§ç®¡çãã¦ããã®ã§ãDBã®ãã¼ã¿ããã¹ã¦UTF8ã¨ãªãã
ã¨ããããmy.cnfãä¸è¨ã®ããã«å¤æ´ãã¦MySQLãèµ·å
[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql old_passwords=1 default-character-set=utf8 set-variable = wait_timeout=3153600 set-variable = interactive_timeout=3153600 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid default-character-set=utf8 [mysql.server] default-character-set=utf8 [mysqldump] default-character-set=utf8 [mysql] default-character-set=utf8 [client] default-character-set=utf8
ããã¾ã§ãã£ã¦ãEccubeãè¨ç½®ããURLã«ãã©ã¦ã¶ã§ã¢ã¯ã»ã¹ããã¨ãã¤ã³ã¹ãã¼ã©ã表示ãããã®ã§ãã¨ã¯ãã®ã¾ã¾å ¥åãéä¸ãã£ã¬ã¯ããªãã¼ããã·ã§ã³ã®ã¨ã©ã¼ãªã©ãç¾ããããé©å®ãã¼ããã·ã§ã³ãå¤ãã¦ããã
åºæ¬ã¯ããã ãããæ軽ã
ããã§ååç»é²ãã¦ããã°ãPCã§ãã¢ãã¤ã«ã§ãåä¸ã®ååãã¿ãããã
ã¢ãã¤ã«ã®ç»é¢ã¯ãUTF8ã®ãã¼ã¿ã端æ«ã«è¿ãç´åã§SJISã«å¤æãã¦ã端æ«ããéä¿¡ãããSJISãã¼ã¿ãUTF8ã«å¤æãã¦DBã«ç»é²ãã¦ããã