Linux (CentOS 7) + Apache + MariaDB + PHP 7.2
Run locally or deploy to Digital Ocean
- Vagrant
- Vagrant-digitalocean:
vagrant plugin install vagrant-digitalocean
- Vagrant-digitalocean:
- Virtualbox
Initialize using vagrant up
.
Connect using SFTP to put files on the server:
- Username:
developer
- Password: check config.yml or
./share
You can easily create a new database using ./scripts/create-database.sh
.
Drupal installation can be done automatically using ./scripts/install-drupal.sh
.
name: 'LAMP Stack' # Virtual machine name
cpus: 2 # CPU cores
memory: 1024 # RAM in MB
update: false # Run yum update
hostname: 'lamp-stack' # Hostname for virtual machine
ip-address: 172.16.16.16 # IP address
auth: # If blank, will generate passwords to ./share folder
db_root: 'db_root_passwd' # MariaDB root password
ssh: 'ssh_passwd' # SSH password for user developer
folders: # Folder settings
provision: './provision'
share: './share'
# DigitalOcean settings
digitalocean: # Refer to vagrant-digitalocean docs
api_key: ''
ssh_username: 'vagrant'
ssh_key_path: 'key'
ssh_key_name: 'vagrant'
region: 'ams3'
size: '1gb'
- Make sure
vagrant-digitalocean
is installed. - Generate ssh key using
./scripts/generate-ssh-key.sh
. - Enter the required configuration in
config.yml
:api_key
: Your DigitalOcean API key.region
: Desired region, checkvagrant-digitalocean-list regions
.size
: Desired size, checkvagrant-digitalocean-list sizes
.
- Deploy by running
vagrant up --provider=digital_ocean
.