Skip to content

Instantly share code, notes, and snippets.

@mirzu
Created June 17, 2015 23:32
Show Gist options
  • Save mirzu/76baeeb3ae966b2d43a4 to your computer and use it in GitHub Desktop.
Save mirzu/76baeeb3ae966b2d43a4 to your computer and use it in GitHub Desktop.
Config to use xdebug locally
---
# Vagrant configuration.
# `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
# geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc.
vagrant_box: geerlingguy/ubuntu1404
vagrant_hostname: drupalvm.dev
vagrant_ip: 192.168.88.88
vagrant_user: vagrant
# A list of synced folders, with the keys 'local_path', 'destination', 'id', and
# a 'type' of [nfs|rsync|smb] (leave empty for slow native shares). See
# https://github.com/geerlingguy/drupal-vm/wiki/Syncing-Folders for more info.
vagrant_synced_folders:
# The first synced folder will be used for the default Drupal installation, if
# build_from_makefile is 'true'.
- local_path: ~/debug
destination: /var/www/debug
id: drupal
type: nfs
create: true
# Memory and CPU to use for this VM.
vagrant_memory: 1024
vagrant_cpus: 2
# Set this to false if you are using a different site deployment strategy and
# would like to configure 'vagrant_synced_folders' and 'apache_vhosts' manually.
build_makefile: true
drush_makefile_path: /vagrant/drupal.make.yml
# Set this to false if you don't need to install drupal (using the drupal_*
# settings below), but instead copy down a database (e.g. using drush sql-sync).
install_site: true
# Settings for building a Drupal site from a makefile (if 'build_from_makefile'
# is 'true').
drupal_major_version: 7
drupal_core_path: "/var/www/debug"
drupal_domain: "drupalvm.dev"
drupal_site_name: "Drupal"
drupal_install_profile: standard
drupal_enable_modules: [ 'devel' ]
drupal_account_name: admin
drupal_account_pass: admin
drupal_mysql_user: drupal
drupal_mysql_password: drupal
drupal_mysql_database: drupal
# Drupal VM automatically creates a drush alias file in your ~/.drush folder if
# this variable is 'true'.
configure_local_drush_aliases: true
# Apache VirtualHosts. Add one for each site you are running inside the VM. For
# multisite deployments, you can point multiple servernames at one documentroot.
apache_vhosts:
- {servername: "{{ drupal_domain }}", documentroot: "{{ drupal_core_path }}"}
- {servername: "xhprof.{{ vagrant_hostname }}", documentroot: "/usr/share/php/xhprof_html"}
- {servername: "pimpmylog.{{ vagrant_hostname }}", documentroot: "/usr/share/php/pimpmylog"}
# MySQL Databases and users. If build_from_makefile is true, first database will
# be used for the makefile-built site.
mysql_databases:
- name: "{{ drupal_mysql_database }}"
encoding: utf8
collation: utf8_general_ci
mysql_users:
- name: "{{ drupal_mysql_user }}"
host: "%"
password: "{{ drupal_mysql_password }}"
priv: "{{ drupal_mysql_database }}.*:ALL"
# Comment out any extra utilities you don't want to install.
installed_extras:
- adminer
- mailhog
- memcached
- pimpmylog
# - solr
- varnish
- xdebug
- xhprof
# Add any extra packages you'd like to install.
extra_packages: []
# You can configure almost anything else on the server in the rest of this file.
mysql_root_password: root
extra_security_enabled: false
drush_version: master
drush_keep_updated: true
firewall_allowed_tcp_ports:
- "22"
- "25"
- "80"
- "81"
- "443"
- "8025"
- "8080"
- "8443"
- "8983"
firewall_log_dropped_packets: false
# PHP Configuration. Currently-supported versions: 5.5, 5.6, 7.0 (experimental).
php_version: "5.5"
php_memory_limit: "192M"
php_display_errors: "On"
php_display_startup_errors: "On"
php_realpath_cache_size: "1024K"
php_sendmail_path: "/usr/sbin/ssmtp -t"
php_opcache_enabled_in_ini: true
php_opcache_memory_consumption: "192"
php_opcache_max_accelerated_files: 4096
php_max_input_vars: "4000"
# MySQL Configuration.
mysql_slow_query_log_enabled: true
mysql_slow_query_time: 2
adminer_add_apache_config: true
# Varnish Configuration.
varnish_listen_port: "81"
varnish_default_vcl_template_path: templates/drupalvm.vcl.j2
varnish_default_backend_host: "127.0.0.1"
varnish_default_backend_port: "80"
# Pimp my Log settings.
pimpmylog_install_dir: /usr/share/php/pimpmylog
pimpmylog_grant_all_privs: true
# Disable main XDebug components unless needed.
php_xdebug_coverage_enable: 1
php_xdebug_default_enable: 1
php_xdebug_remote_connect_back: 1
php_xdebug_remote_enable: 1
# Solr Configuration (if enabled above).
solr_version: "4.10.4"
solr_xms: "64M"
solr_xmx: "128M"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment