• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 497
  • Last Modified:

Need assistance running PHP EXEC as local user on Ubuntu

I know there are a number of ways to do this, but looking for something very simple to do.

I need to launch the following vlc script via PHP & EXEC, as a local user. I currently can run it as www-data, but I need to launch it with a user that has a home directory.

vlc -I dummy dvb:// :dvb-adapter=0 --sout '#standard{access=http,mux=ogg,dst=10.10.1.83:8181}'
0
tamray_tech
Asked:
tamray_tech
  • 3
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
That requires 'suEXEC' except that I think that only works when you are using 'per user' sites in 'public_html'.  That places the files you want to run in a web directory in that user's home directory.  More info here: http://httpd.apache.org/docs/2.2/suexec.html
0
 
tamray_techAuthor Commented:
I spotted this in my research. From what I see, I would need to recompile Apache for this. Is that correct? if so, i would rather find a different option.
0
 
Dave BaldwinFixer of ProblemsCommented:
I don't believe there is another option.  Apache runs under a very limited user on purpose.  suEXEC is the way to change that.
0
 
tamray_techAuthor Commented:
I implemented Suexec-common on Ubuntu and achieved the results I was looking for. No need to recompile, just configure and activate.

Thanks
0
 
Dave BaldwinFixer of ProblemsCommented:
You're welcome, glad to help, and thanks for the points.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now