I guess I forgot the sudo part on the shell_exec() and I have to enter my pass when I run this. As bad as it is the company setup http to have sudo access (im told). There is a python script that does this but there is some issues with it and no one at the office knows python or shell scripting. In short this is my poor attempt to port that code into PHP (Im also a n00b on shell scripting).