(12-22-2009 09:54 PM)mattyribbo Wrote: Hi, installed ispCP on Debian 5.0 64bit edition, works fine (ish).
I'm getting errors on the IP's section (Settings > Manage IP's)
Quote:File /proc/net/dev does not exists or cannot be reached!Error while trying to obtain list of network cards!Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
Return value: 1
Kernel is 2.6.31.5-grsec-xxxx-grs-ipv4-64 (SMP)
OVH Dedi Server
Quick search on the web showed me this: http://isp-control.net/ispcp/ticket/1911 but is frankly useless.
Any suggestions?
-Matt
hello,
As i have the same issue with a grsec kernel I found a work around :
First, the issue was when adding a new IP, so :
as root in ssh I created a mirror of /proc/net/dev/ and of the ifconfig output :
cp /proc/net/dev /var/www/ispcp/gui/proc.net.dev.mirror
ifconfig > /var/www/ispcp/gui/ifconfig.mirror
Next we have to modify the sources :
in /var/www/ispcp/gui/include/class.networkCard.php
in function network()
replace
$file = $this->read('/proc/net/dev');
by
$file = $this->read('/var/www/ispcp/gui/proc.net.dev.mirror');
in function _populateInterfaces()
replace
$message = $this->executeExternal(config::Get('CMD_IFCONFIG'), $err);
by
$message = $this->read('/var/www/ispcp/gui/ifconfig.mirror');
That it !
Honnestly I didn't yet tested this deeply, but it works for me and I can add IPs. I use ispcp 1.0.5.
For the next releases of ispcp, I think that either the ispcp deamon should produce the mirrors files or basically thanks to a cron.
Red
http://bzctoons.net