Jump to content

[SOLVED] Aapche DISPLAY access x11 for php exec()


jammesz

Recommended Posts

Hi im running ubuntu jaunty with lamp setup.

 

Basically i want to be able to use php's exec() function to open firefox (so i can get my ubuntu comp to play youtube videos after commanding it to from my mobile connected to the comps intranet).

 

this is what i've done so far:

* tried exec("firefox") and apache logs say no display set.

* tried exec("firefox --display=:0");

    added all my comps ip addresses, localhost and :local to xhost

    and apache logs say Error: cannot open display: :0

* set apache to use my username to run in httpd.conf and apache log says

  (firefox:7390): GnomeUI-WARNING **: While connecting to session manager:

    None of the authentication protocols specified are supported.

 

Btw running xauth list tells me that my display is :0

 

Any ideas on how to fix this? I've searched long and hard to find a solution and only came up with bits and pieces that get me to where i am now with this.

Just an update....

 

I've edited /ect/gdm/gdm.conf and set disallowTCP=true to false and restarted my comp

and i now get this error in the apache log:

(firefox:11592): GnomeUI-WARNING **: While connecting to session manager:

Could not open network socket.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.