Jump to content


Photo

Launching Xwindow application problem


  • Please log in to reply
3 replies to this topic

#1 pedrosimoes

pedrosimoes
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 13 December 2005 - 02:39 PM

Hello,
I want to launch Xwindow application through a PHP script. I use the shell_exec, exec functions. My apache2 runs with user and group www-data. I'm running Debian Linux (testing). I extracted the MIT-MAGIC-COOKIE from the user that launched Xserver to the .Xauthority of www-data user. When I "su" to www-data (su - www-data) and launch a xterm it will start. Doing this in a PHP script it won't start. I tried things like shell_exec("export DISPLAY=:0; xterm &), shell_exec("source ~/.bash_profile; xterm &"), but nothing...
This is something related with the apache environment?

Any help?

Thanks

#2 web.dork

web.dork
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 08 September 2008 - 04:05 PM

I have this same problem and would VERY much appreciate some insight!

#3 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 08 September 2008 - 09:28 PM

Does the Apache user have execute permissions on those files?
Why doesn't anyone ever say hi, hey, or whad up world?

#4 web.dork

web.dork
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 09 September 2008 - 01:27 AM

Yep




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users