Skip to content

Instantly share code, notes, and snippets.

@spences10
Created April 26, 2018 09:18
Show Gist options
  • Save spences10/829551628640ca682789d5bde8ef9ce7 to your computer and use it in GitHub Desktop.
Save spences10/829551628640ca682789d5bde8ef9ce7 to your computer and use it in GitHub Desktop.
Set up CentOS on Vagrant for CrafterCMS

Install dependencies on CentOS

For Crafter > Java, Git

use root:

sudo -i
# switch back with 'su - vagrant' when needed

Get latest version of Java:

yum -y install java

To install latest version of git

Install WANDisco repo package:

yum -y install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
# - or -
yum -y install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
# - or -
yum -y install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm

Then install latest verison of git:

yum -y install git

Install lsof:

yum -y install lsof

If you need to create additional sudo users see this DO post

# switch user
su - vagrant

Download CrafterCMS authoring or delivery bundle

wget https://s3.amazonaws.com/downloads.craftercms.org/3.0.10/crafter-cms-authoring.tar.gz
# unzip it
tar -xzf crafter-cms-authoring.tar.gz
# move into the bin dir
cd crafter/bin/
# run the startup 
bash startup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment