I'm using wamp, and the only solution was the followings:
At Control Panel / Administrative tools / Services, search for wampapache64, httpd, or something like that. On the Log On tab tick the 'allow service to interact with desktop'
Hope this helps!