Jump to content

exec or system as root


benphelps

Recommended Posts

I need to run a system call from PHP as root.  I need to use "vzctl, vzyum, vzrpm, vzquota", the openVZ tool set.

 

I have tried to chown the file "root:root" but that didn't work.  I tried to "sudo <command>", doesnt work.

 

If anyone knows how to exec in PHP as root, please help me.

Link to comment
https://forums.phpfreaks.com/topic/150578-exec-or-system-as-root/
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.