ネットショップ構築でかなりのシェアを占めていると思われる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 -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';
$ 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