joel fernandes wrote: > hi !, > i'm developing a web based firewall on linux a platform.i'm using the > netfilter module in linux.also im using php as the scripting > language.my problem is that im not able to run iptables command > through php using shell_exec() or bactick operator.simple commands > such as ls ,ifconfig work but not iptables. > can anyone help to get over my problem. > is that ineed to run my apache server to run as root ,if yes how do i > do it. > is there any other way to get around this problem. > your help will be appreciated. > thanx.
hi running apache as root will be a security risk. run it as another user, you can set it in httpd.conf. iptables need root user to run. greetings -- Anu Bhaskar Linux Administrator Spectrum Softtech Solutions Ph: 91 484 2345 922 www.spectrum.net.in
