This is instructions for populating the webroot of a new Bombplates site hosting server
See also: Creating a Band Site Hosting Server
Webroot:
$ cd /var/www/html
$ git clone git@devmcn.com:platforms/bombplates/webroot .
$ mkdir sites
$ cd sites
$ mkdir all
$ cd all
$ git clone git@devmcn.com:platforms/bombplates/themes
$ git clone git@devmcn.com:platforms/bombplates/modules
$ git clone git@devmcn.com:platforms/bombplates/libraries
Includes directory:
$ mkdir /var/www/include
$ cd /var/www/include
$ git clone git@devmcn.com:platforms/bombplates/includes .
Check permissions
# cd /var/www/html
# chown -R root:users ./*
# cd /var/www/include
# chown -R root:users ./*
Configure the sites/default folder (where bandsY is a previous bandsX server)
$ cd /var/www/html/sites
$ mkdir default
$ cd default
$ rsync -avz SOMEACCOUNT@bandsY.bombplates.com:/var/www/html/sites/default/* ./
$ vi settings.php
$ vi manual_db.php
Update the mysql credentials in both of those files to match those you set as the default earlier.
$ mysql -u USER -pPASSWORD DB < /user/bandsXtools/bombplates.sql
Enable the pre-build theme on the default site
- go to http://bandsX.bombplates.com/user
- login as administrator
- http://bandsX.bombplates.com/admin/build/themes
- Enable "Site Not Found" and set it as default