ネットショップ構築でかなりのシェアを占めていると思われるEC-CUBEを使ってみます。

EC-CUBEのインストール

バージョン2.13系はMySQLへの接続にはPHPが --with-mysql オプションを指定してコンパイルされている必要があります。

ソースのダウンロードと設置

無料の会員登録をしてソースをダウンロード
https://www.ec-cube.net/

$ tar xvzfpP eccube-2.13.5.tar.gz
$ mv eccube-2.13.5/html/ public_html
$ mv eccube-2.13.5/data/ ./
$ rm -fr eccube-2.13.5
$ rm -f eccube-2.13.5.tar.gz

データベースの準備 MySQL

$ mysql -u root
mysql> create database eccube_db default character set utf8;
mysql> create user 'eccube_db_user'@'localhost' indentified by 'eccube_db_password';
mysql> grant all on eccube_db.* to 'eccube_db_user'@'localhost';

データベースの準備 PostgreSQL

$ createuser eccube_db_user
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
$ createdb -U eccube_db_user -E UTF-8 -T template0 eccube_db
$ psql -U eccube_db_user eccube_db
=> ALTER USER eccube_db_user PASSWORD 'password';

ブラウザでアクセスしセットアップ

ブラウザでアクセスして説明に従ってセットアップします。

セットアップ完了後は install フォルダを削除します。

$ rm -fr public_html/install

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS