1

We have changed our parked server and before parked at new server script was working fine. but now script producing error

Server : ubuntu PHP Framework : CI

Error is :

Could not run command '/usr/bin/wkhtmltopdf' --margin-top '4' --margin-right '4' --margin-bottom '4' --margin-left '4' --page-size 'A4' /tmp/tmp_WkHtmlToPdf_hGfaVM.html /tmp/tmp_WkHtmlToPdf_wAkzvA: wkhtmltopdf: cannot connect to X server

mic
  • 1,251
  • 2
  • 15
  • 33
Sunny S.M
  • 5,768
  • 1
  • 38
  • 38
  • possible duplicate, check http://stackoverflow.com/questions/9604625/wkhtmltopdf-cannot-connect-to-x-server – mic Jan 05 '16 at 12:26

1 Answers1

0

This is not really related to Codeigniter, but to the configuration of your server. (It might help to ask this question on Server Fault instead of Stackoverflow.)

1.) You should make sure that xserver is installed and running (it seems it's not.)

2.) As suggested by mic - Take a look at this question too.

Hope this helps. Good luck!

Community
  • 1
  • 1
Steven M
  • 574
  • 4
  • 20