cv and civix blank output

CiviCRM 4.6.4, Vagrant


Running cv vars:show outputs nothing
including adding -vvv
and civix civicrm:ping -vvv output is

[Bootstrap] Options: {
    "dynamicSettingsFile": "phar:///usr/local/bin/civix/vendor/civicrm/cv/settings_location.php",
    "env": "CIVICRM_SETTINGS",
    "prefetch": false,
    "settingsFile": null,
    "search": true,
    "cmsType": null,
    "httpHost": "",
    "output": {

    }
}
[Bootstrap] Find settings file
[Bootstrap] Load supplemental configuration for "/vagrant/mysite/wp-content/plugins/civicrm/civicrm.settings.php"
[Bootstrap] Load settings file "/vagrant/mysite/wp-content/plugins/civicrm/civicrm.settings.php"

Turns out that if my civicrm.settings.php has variables, wont work!

Example:

$wordpress_root = '/vagrant/mysite/';
$website_address = 'http://www.my.site/';

define( 'CIVICRM_UF_BASEURL'      , $website_address );

global $civicrm_setting;

// Temporary Files (System Settings > Directories)
$civicrm_setting['Directory Preferences']['uploadDir'] = $wordpress_root . 'wp-content/plugins/files/civicrm/upload' ;

// Images (System Settings > Directories)
$civicrm_setting['Directory Preferences']['imageUploadDir'] = $wordpress_root . 'wp-content/plugins/files/civicrm/persist/contribute' ;

CiviCRM Dashboard Redirects

CiviCRM 4.6.4 in vagrant with apache.

Opening the CiviCRM dashboard auto redirects to an ISP page. Turns out the site cannot call itself. Vagrantfile has
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.ssh.forward_agent = true
config.vm.network "private_network", ip: "29.29.29.29"

To solve, edit the vm’s /etc/hosts and in addition to the 127.0.0.1 localhost, add the Vagrantfile’s private_network ip:

echo '
29.29.29.29 www.donate.site
29.29.29.29 donate.site
' | sudo tee /etc/hosts > /dev/null