Silex Generation of PDF Pitfall with Snappy

I ran into a problem while generating pdf files from a silex app. I had all setup but was getting www-data user unable to find things and mainly finding an X server. I troubleshoot several hours and found this hint from a drupal entry:
http://drupal.org/node/870058 . The guys rock for their verbosity in solving problems. I don’t personally use drupal but their docu is helping me deal with my issues.
In addition to this my silex generated pdf needed some concatenation afterwards so I relied on this other post here for merging single pdf pages to put my presentation up on this app.