AHHH!
ifconfig only makes temporary change to IP address. When the box is rebooted it reverts back to the old ip address.
I give up....
Any OS X or Unix experts have any advice.
Thanks.
I did
chmod 440 /etc/sudoers
Now the ifconfig will work by the command line, but it still doesn't work through php. I think I am on the right track now.
Thanks for your help!
I have tried the:
$command = "sudo ifconfig en0 $newip";
however it fails. When I attempt that command directly on the command line it requires you to enter a password. However, in my sudoers file I placed:
www ALL=(root) NOPASSWD: /sbin/ifconfig
Shouldn't this allow Apache to run...
I tried to modify the sudoers file to allow the "www" to access the ifconfig, but I still am getting a "permission denied". Do I have to use chmod on the directory or ifconfig file? I am new at OS X so I don't know how to properly set the permissions or the ramifications of setting those...
I am running apache with php5 on mac OS X. My application requires the ability to enable a user to change the IP address of the server through a web interface. Is there a slick method that can use PHP to shell_exec to the OS X system to modifiy the IP address?
I tried using IFCONFIG, but it...
foada,
I checked my development system and it is using IE v5.5. The target machine is using IE v6.0. It was actually using v5.5, but they upgraded to v6.0 after installing my software. The shdocvw.dll that is in the system directory was a newer version. I need to check to determine what...
I have an application that uses the Microsoft WebBrowser control for Visual Basic 6. I have one user that has Windows ME OS and the webbrowser control only works when she opens the Internet Explorer. I know that the webbrowser control is dependant on the Explorer dll's, but I can not figure...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.