Jump to content

pedrosimoes

New Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

pedrosimoes's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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
×
×
  • 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.