viewdy / phantomjs2

Automatically exported from code.google.com/p/phantomjs
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

phantomjs: cannot connect to X server #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From a php file I have tried something like:

exec("phantomjs /path/rasterize.js http://google.com screenshot.png")

My paths are fine, php config and permissions as well.

But my apache log says: phantomjs: cannot connect to X server

Any idea? Thanks in advance for your wonderful work! 

Original issue reported on code.google.com by danielga...@gmail.com on 29 Jan 2011 at 8:49

GoogleCodeExporter commented 9 years ago
PhantomJS is not "pure headless" yet. On Unix, it still needs X Server for font 
stuff, etc.

Original comment by ariya.hi...@gmail.com on 30 Jan 2011 at 2:10

GoogleCodeExporter commented 9 years ago
I see, I just run it using xvfb and worked fine. Perhaps could be useful to 
specify it in the docs.

Original comment by danielga...@gmail.com on 30 Jan 2011 at 11:49

GoogleCodeExporter commented 9 years ago
Good point, I add the info to the wiki. Thanks!

Original comment by ariya.hi...@gmail.com on 30 Jan 2011 at 6:40

GoogleCodeExporter commented 9 years ago

Original comment by ariya.hi...@gmail.com on 30 Jan 2011 at 6:40

GoogleCodeExporter commented 9 years ago
Issue 37 has been merged into this issue.

Original comment by ariya.hi...@gmail.com on 2 Feb 2011 at 2:35

GoogleCodeExporter commented 9 years ago
hi,
i am able to run phantomjs through commandline properly,but when i try to run 
phantomjs using php i get the error [WARNING] phantomjs: cannot connect to X 
server.
I had also followed steps for xvfb installation and xvfb installed correctly.
Any idea?

Original comment by chirag.e...@gmail.com on 14 Dec 2011 at 4:29

GoogleCodeExporter commented 9 years ago
This issue has been moved to GitHub: 
https://github.com/ariya/phantomjs/issues/10033

Original comment by james.m....@gmail.com on 16 Mar 2013 at 12:17