Jump to content

execute a shell command PHP Script


davetechfreak

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/226964-execute-a-shell-command-php-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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