Re: Using PHP to change Linux IP address

From: Date: Tue, 30 Nov 2004 21:54:18 +0000
Subject: Re: Using PHP to change Linux IP address
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-203186@lists.php.net to get a copy of this message
John Nichel wrote:
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. Thanks I will look in to this. Seems like a sound enough idea.


« previous php.general (#203186) next »