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}'
tamray_techAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.