а что в логах?
я ставил для интереса Virtualmin. в большинстве случаев все можно сделать через интерфейс.
P.S без знания любая панель опасна, как и все прочее...
как в продакшне работает незнаю.., ставил давно для себя. сейчас наверно многое изменилось. кстати у webmin есть модуль для хостинга Virtualmin.
http://www.webmin.com/virtualmin.html
ISPConfig
а здесь про него расписано много http://howtoforge.com/
SeoNizator, обращайтесь :)
Это ?
#!/usr/bin/perl use strict; use Net::DNS; use Net::IP; # Check our arguments are valid and if not then bail out. my $network = $ARGV[0]; if($network !~ /^\d+\.\d+\.\d+\.\d+\/\d+$/) { print "Usage: $0 x.x.x.x/x\n"; print "Where x.x.x.x/x is the network to list\n"; exit; } # Create a resolver for resolving our reverse DNS lookups. my $res = Net::DNS::Resolver->new; # Create an IP object to save us from having to write some complex code to work out IPs. my $IP= new Net::IP($network) or die("Unable to create network object for $network\n"); # Loop through each IP in the range do { # create the reverse lookup DNS name (note that the octets in the IP address need to be reversed). my $target_IP = join('.', reverse split(/\./, $IP->ip())).".in-addr.arpa"; # Perform a query on the produced name. (note we want the PTR records for the name). my $q = $res->query("$target_IP", "PTR"); if($q) { # If the query was valid then get the answer. my $r = ($q->answer)[0]; # If the query produces something other than a PTR record there is something wrong so die. if($r->type ne "PTR") { die "not PTR"; } # If we get here then everthing is fine and we can display our answer. print $r->rdatastr."\n"; } } while (++$IP); # Keep looping though IPs until we have tried them all.
нужны libnet-ip-perl и libnet-dns-perl
да нет, но это не догма просто
сам пхп файлы читать не может, скрипт запускается с помощью сервера c его же правами,etc... и если юзер запускающий вебсервер не может читать какой либо файл, то никакой пхп сам его не прочитает.
PS не надо к моим словам придираться
<оффтоп>я привел пример. ладно проехали... </оффтоп>
config.php в любому закрывать надо. и вызывается он почти всегда только через инклюд. в вашем примере апач и овнер должны быть в одной группе в противном случае вебсервер не сможет прочитать файл.