Vagrant miscellaneous

to sync the /var/www folder with the host computer
1. edit Vagrantfile and add this line config.vm.synced_folder “www/”, “/var/www/”
2. create a folder called www where the Vagrantfile is located
3. read up on some resources if need be

enable symlink on a shared/sync folder
1. follow these instructions
2. ran these command in windows cmd
– cd C:\Program Files\Oracle\VirtualBox
– VBoxManage.exe setextradata local.puphpet17 VBoxInternal2/SharedFoldersEnableSymlinksCreate/node 1
– VBoxManage getextradata local.puphpet17 enumerate
should see ‘Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/node, Value: 1’
3. Run vagrant as windows administrator


iptables is a unix firewall.  The name is not self descriptive.  Below are some notes I gathered.

Allow node.js port 3000 to be accessed outside the machine.  Vagrant (the inside) and windows (the outside).  The 1st one is to add a rule to the beginning and the 2nd is to append at the end of all the rules.  Ultimately they are the same.  Be careful with the second one because rules before will take preference.
$ sudo iptables -I INPUT -p tcp --dport 3000 -j ACCEPT
$ sudo iptables -A INPUT -p tcp --dport 3000 -j ACCEPT

Using Iptables on Linux

PuPHPet troubleshooting

You may avoid issues by using the MINGW32 terminal instead of something else.


Installed a new puphpet and the web page won’t show up.

  1. vagrant ssh
    • inside the puphpet folder
  2. $ telnet locahost 80
    • verify a successful response
  3. $ sudo service apache2 restart
    • if apache2: Configuration error: More than one MPM loaded.
      1. $ sudo a2dismod worker
      2. $ sudo service apache2 restart

If php file is being read as plain text.  This was a phpmyadmin issue

  1. run $ sudo apt-get install libapache2-mod-php5
  2.  restart apache

You may get an phpmyadmin error ‘phpmyadmin.pma_table_uiprefs doesn’t exist’ when you attempt to open database tables
run this command
$ sudo dpkg-reconfigure phpmyadmin

Vagrant: Fix VT-x/AMD-V hardware acceleration

Operating System: Windows 7
Motherboard: asus z-97-ar
Intel CPU: Intel Core i7-4790K

Does your CPU support virtualization?

Download software

You must enable Virtualization in BIOS
Advvance -> CPU Configurations -> Intel Virtualization Technology -> enable

The reasons I had to enable VT-x was because when I “vagrant up” I received these error

1. In the command like it got stuck on “default: Warning: Connection timeout. Retrying…”

2. in Oracle Virtualbox:
“VT-x/AMD-V hardware acceleration is not available on your system. Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.”

So to resolve that I need to enable VT-x and in my Vagrant file add

config.vm.provider :virtualbox do |vb|
  vb.customize ["modifyvm", :id, "--hwvirtex", "on"]


homestead laravel