Local install won’t work without internet

Try define(‘WP_HTTP_BLOCK_EXTERNAL’, true); in your wp-config.php. This will mean updates and downloading themes and plugins will fail, although you can still add plugins by dragging them to your plugin folder.

WordPress Multisite with VVV

You need the VVV Custom site template to enable multisite. And you have to let the main Vagrant instance load it automatically. Open the vvv-config.yml in the main directory, under sites: add the following entry: msvagrant: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template hosts: – msvagrant.dev – en.msvagrant.dev – de.msvagrant.dev custom: wp_type: subdomain Then run vagrant up, and it should … Read more

Symlink a directory to wp-content/themes

You can add this to your VagrantFile for “shared folders:” config.vm.synced_folder “/path/to/your/host/projectfolder/theme”, “/path/to/your/vagrant/wp-content/theme”, owner: ‘www-data’, group: ‘www-data’, mount_options: [“dmode=775”, “fmode=664”] http://docs.vagrantup.com/v2/synced-folders/basic_usage.html

Vagrant script to setup all the common PHP / WordPress version combinations

On the WordPress side of things, Basic WordPress Vagrant Environment is ready to work with any WordPress version (with a little help). You would still need to find a way to configure the PHP but there is a hint in https://github.com/ideasonpurpose/basic-wordpress-box/blob/master/ansible/roles/php/tasks/php.yml. To use it out of the box; Download or clone the project to wplatest-php55.dev/ … Read more

SSH to Vagrant box in Windows?

I use PuTTY to connect to my Vagrant boxes on Windows7. Make sure you convert the %USERPROFILE%\.vagrant.d\insecure_private_key to .ppk using PuTTYGen use the .ppk key in your PuTTY session – configured in Connection > SSH > Auth > Private key file use host 127.0.0.1 use port 2222 instead of 22 you can set the default … Read more

Psql could not connect to server: No such file or directory, 5432 error?

I’ve had this same issue, related to the configuration of my pg_hba.conf file (located in /etc/postgresql/9.6/main). Please note that 9.6 is the postgresql version I am using. The error itself is related to a misconfiguration of postgresql, which causes the server to crash before it starts. I would suggest following these instructions: Certify that postgresql service … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)