I know some program like as kloxo run their php program as root with a lighttpd that is seperate from main apache web server. but when i google it to have a php script for firewall management and run it as root, some people say you should not run web server with root privilege.
i want to know, how kloxo use that without any problem?
and what is the best solution to manage iptables with a php script ( how to run commands in php exec() with root privilege) ?
also some php function like as fopen
to edit files.