LoginSignup
1
1

More than 5 years have passed since last update.

scotch-box にeccube2.13.5系

Last updated at Posted at 2017-06-30

個人の備忘録として記載
前提
virtualbox,vagrantのインストール

git clone https://github.com/scotch-io/scotch-box hogehoge

でboxを取得
cd hogehoge

virtualとローカルのディレクトリマッピングの変更。
デフォルトだとboxの中が/var/www としてリンクされるので、実際のeccubeを解凍したディレクトリを設定

vi Vagrantfile

    #config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
    config.vm.synced_folder "ここが実際eccubeがあるパス", "/var/www", :mount_options => ["dmode=777", "fmode=666"]

vagrant up
vagrant ssh

ここからvirtualの中
sudo vi /etc/apache2/sites-available/000-default.conf
sudo vi /etc/apache2/sites-available/scotchbox.local.conf
(どっちかだけで良さげですが、apache起動時に警告がでるので両方修正)

        #DocumentRoot /var/www/public
        DocumentRoot /var/www/eccube-2.13.5/html

sudo service apache2 restart
eccubeはパスワードなしでDB設定ができないようなので適当に設定
mysqladmin -u root password 'password'

ローカルのブラウザから以下でインストール画面がでるはず。
http://192.168.33.10
DB名はsctochbox
ユーザroot
パスワードは上記で設定 ここではpassword

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1