davetechfreak
-
Posts
1 -
Joined
-
Last visited
Never
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.
execute a shell command PHP Script
in PHP Coding Help
Posted
Hi guys,
I am new here, and I am a bit stuck with doing something unusual.
I want to create a script that can turn on a program (dynamips and dynagen). So far, I have tried 'exec' and 'shell_exec'. Soon I realized that apache runs the commands as 'www-data' user (apache2 in ubuntu) and it's very limited on what you can execute.
Is there any way to do that at all? What would be the best practice? I am not concerned about security as this is not a production environment...
Thanks