Thursday, 8 August 2013

xOpenDisplay fails inside my cgi with apache2 [on hold]

xOpenDisplay fails inside my cgi with apache2 [on hold]

I am trying to make graphics with xlib (X11) inside a cgi written in C.
Apache2 disables the DISPLAY environment variable, I solved this problem
with setenv. But I still cannot get the Display
*display=xOpenDisplay(getenv("DISPLAY")) [xOpenDisplay(NULL),
xOpenDisplay(":0"), etc.] and therefore I cannot use xLib. I have also
modified the permissions of www-data inside /etc/group in similar way to
an ordinary user

No comments:

Post a Comment