I'm attempting to launch Microsoft Office through WINE utilizing a Perl script located by apache

and and triggered by other application. I get the next error message in

log files "Application trying to produce a window but no driver couldn't be loaded. Make certain that the X server is running which $DISPLAY is placed properly".

Basically run the script on spend prompt using root user then WINE begins

XServer correctly and execute MS MSoffice additionally to that particular basically set xhost +local:apache on spend prompt then plus it works fine.

How do i start the XServer from apache user?

It's an exceedingly bad idea to begin a X server per httpd worker. Should you insist upon carrying this out though, use Xvfb.

My recommendation is always to possess a separate daemon handle the document conversion/creation, and employ a note queue to pass through it jobs.