Re: Using PHP to change Linux IP address
| From: | John Nichel | Date: | Tue, 30 Nov 2004 21:50:27 +0000 |
| Subject: | Re: Using PHP to change Linux IP address | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203185@lists.php.net to get a copy of this message | ||
AndyO wrote:
I'm working on a project where an engineer/user has to be able to log in to a device locally and change the IP address. The OS is Linux. We want to make the interface simple and so we thought of using a webpage that allows the engineer/user to change the address without having to use the Linux tools netconfig or ifconfig. Is it possible to use a PHP script to change the IP address?PHP (the webserver) would have to have permission to edit the ifcfg-eth0 (eth1, eth2, etc) file, and have permission to restart the network. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com