How can I start XServer in Linux through apache user triggered by Perl script running in background?

Posted by Nikhil on Stack Overflow See other posts from Stack Overflow or by Nikhil
Published on 2010-03-18T11:04:21Z Indexed on 2010/03/18 11:11 UTC
Read the original article Hit count: 147

Filed under:
|
|

I am trying to launch MS Office through WINE using a PERL script hosted by apache

and and triggered by other application. I am getting the following error message in

log files "Application trying to create a window but no driver could not be loaded. Make sure that your X server is running and that $DISPLAY is set correctly".

If I run the script directly on shell prompt using root user then WINE starts

XServer properly and execute MS MSoffice in addition to that if I set xhost +local:apache on shell prompt then also it works fine.

How can I start the XServer from apache user?

© Stack Overflow or respective owner

Related posts about perl

Related posts about apache