Symfony2 Slow Initialization Time

I had 5-30 sec responses from Symfony2 by default. Now it’s ~500ms in dev environment. Then I modified the following things in php.ini: set realpath_cache_size = 4M (or more) disabled XDebug completely (test with phpinfo) realpath_cache_ttl=7200 enabled and set OPcache (or APC) correctly restarted Apache in order to have php.ini reloaded And voilá, responses went … Read more

Virtualbox “port forward” from Guest to Host [closed]

Network communication Host -> Guest Connect to the Guest and find out the ip address: ifconfig example of result (ip address is 10.0.2.15): eth0 Link encap:Ethernet HWaddr 08:00:27:AE:36:99 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 Go to Vbox instance window -> Menu -> Network adapters: adapter should be NAT click on “port forwarding” insert new record (+ icon) … Read more

Git error “fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree”

As others pointed out, this message is coming from your shell prompt. The problem is that in a freshly created repository HEAD (.git/HEAD) points to a ref that doesn’t exist yet. % git init test Initialized empty shared Git repository in /Users/jhelwig/tmp/test/.git/ % cd test % cat .git/HEAD ref: refs/heads/master % ls -l .git/refs/heads total … Read more

How to change Vagrant ‘default’ machine name?

I found the multiple options confusing, so I decided to test all of them to see exactly what they do. I’m using VirtualBox 4.2.16-r86992 and Vagrant 1.3.3. I created a directory called nametest and ran vagrant init precise64 http://files.vagrantup.com/precise64.box to generate a default Vagrantfile. Then I opened the VirtualBox GUI so I could see what … Read more

Vagrant error : Failed to mount folders in Linux guest

The plugin vagrant-vbguest solved my problem: $ vagrant plugin install vagrant-vbguest Output: $ vagrant reload ==> default: Attempting graceful shutdown of VM… … ==> default: Machine booted and ready! GuestAdditions 4.3.12 running — OK. ==> default: Checking for guest additions in VM… ==> default: Configuring and enabling network interfaces… ==> default: Exporting NFS shared folders… … Read more