Jump to content

PHP Exec, System, Shell_Exec [Urgent]


pugboy

Recommended Posts

I have a dedicated server running Apache and OpenVZ, and would like to run a simple start/stop VPS script through exec, system, or whatever.

 

I have tried ALL of the commands, putting the actual start command inside of a SH file, and CHMODing the files to 777. No luck.

 

How do you execute a command like VZCtl through the PHP functions?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/162677-php-exec-system-shell_exec-urgent/
Share on other sites

Rules

2. Users will not mark their post as being "URGENT" by either making the post ALL CAPS or adding any hint that they need it done Quick or ASAP. All posts are treated equal, your post is no more important than any other user's post on this forum. If it is "URGENT" pay someone to do it.

 

17. Users should not "bump" topics that are still on the first page of the forums. If you bump, you must provide additional information. If you resort to bumping, chances are your question needs to be re-thought and re-described (see Eric Raymond's "How To Ask Questions The Smart Way").

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.