Error VT-x not available for Vagrant machine inside Virtualbox

You can only use one virtual CPU without VT-x. Thus, the error message stating that VT-x isn’t enabled is caused by the following line: vb.customize [“modifyvm”, :id, “–cpus”, “2”] Replacing it with the following works (Vagrant has a shorthand for setting the CPU count): vb.cpus = 1 NOTE: You can only run 32-bit VMs inside … Read more

Laravel Homestead hangs at SSH auth method: private key on mac

I had the same problem on macOS 10.12 today, and lost 6 hours trying to find a fix. Finally, after several reinstallations, reboots, and trial and error, I somehow got it to work by following these steps… Completely uninstall and reinstall Vagrant, VirtualBox, and Homestead. Ensure the homestead-7 box is shut down within the VirtualBox … Read more

JS and CSS files in vagrant not properly encoded when saved outside of the VM

I had this problem this morning. Set EnableSendfile to off in your httpd.conf. If you look at your httpd.conf it says “turn this off if you serve from NFS-mounted filesystems.” In http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile it explains that “By default, when the handling of a request requires no access to the data within a file — for example, … Read more

How to access Vagrant Box in public network

Uncomment the line in Vagrantfile config.vm.network :public_network The file will look like below VAGRANTFILE_API_VERSION = “2” Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = “box_name” config.vm.network :public_network end Save it, restart the VM by using vagrant reload. For VirtualBox, it’ll use Bridged mode for networking. Which means the VM will acquire an IP address from the DHCP server … Read more

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