Skocz do zawartości

Bazix

Użytkownicy
  • Zawartość

    5
  • Rejestracja

  • Ostatnio

Wszystko napisane przez Bazix

  1. Zainstalowalem sobie panel ventrilo ( od marczaka wszytko ladnie pozlo ) Tylko mam 1 blad i nie wiem o co w nim chodzi znaczy sie o jakie chmody . Pid to chyba numer do killowania procesow ale jak to dziala to nie wiem jakieś sugestie ? From root@xxx.localdomain Sat Mar 3 10:37:05 2012 Return-Path: <root@xxx.localdomain> X-Original-To: root Delivered-To: root@xxx.localdomain Received: by xxx.localdomain (Postfix, from userid 0) id 5D4252D668E9; Sat, 3 Mar 2012 10:37:05 +0000 (UTC) From: root@xxx.localdomain (Cron Daemon) To: root@xxx.localdomain Subject: Cron <root@bustedga> /var/www/panel/files/sprawdz.sh Content-Type: text/plain; charset=ANSI_X3.4-1968 X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> Message-Id: <20120303103705.5D4252D668E9@xxx.localdomain> Date: Sat, 3 Mar 2012 10:37:03 +0000 (UTC) chmod: cannot access `/home/ventrilo/8006/ventrilo_srv.pid': No such file or directory chmod: cannot access `/home/ventrilo/8050/ventrilo_srv.pid': No such file or directory
  2. Nie ma .pida no nie róbmy z sibie głupków że tak brzydko powiem ; ) przecież " No such file or directory" Katalogi istnieją jeddnak tego .pid nie ma w necie wiec to jakis plik tymczasowy musi być generowany przez aplikacje ventrilo ... Tak mi sie wydaje jednak ten proceses jest bardzo wazny bo przez to mi caly palel nie działa ... a wiem, że działał bo już kiedyś dawno temu go instalowałem nie ukryje że z pomocą kolegi ale tym razem zgubiłem do niego kontakt i musze polegać na siebie, i na dobrych ludziach z forum Plik sprawdz.php wydaje byc się poprawny: <?php include('/var/www/panel/config.php'); function date_diff($date1, $date2) { $d1 = explode("-", $date1); $y1 = $d1[0]; $m1 = $d1[1]; $d1 = $d1[2]; $d2 = explode("-", $date2); $y2 = $d2[0]; $m2 = $d2[1]; $d2 = $d2[2]; $date1_set = mktime(0,0,0, $m1, $d1, $y1); $date2_set = mktime(0,0,0, $m2, $d2, $y2); return(round(($date2_set-$date1_set)/(60*60*24))); } $sql = "select `port`,`data` from `vt_users`"; $zapytanie = mysql_query($sql); while($row = mysql_fetch_array($zapytanie)){ $data=date_diff(date("Y-m-d"), $row['data']); if(!eregi($row['port'],@file_get_contents('/tmp/ventrilo_stop')) and ($data<0 or $data==0) and file_exists('/home/ventrilo/'.$row['port'].'/ventrilo_srv.pid')){ $pid = @file_get_contents('/home/ventrilo/'.$row['port'].'/ventrilo_srv.pid'); $f = fopen('/tmp/ventrilo_stop','a'); fwrite($f, $pid.';'.$row['port']."\n"); fclose($f); echo $row['port'].'<br/>'; } } ?>
  3. Strona WWW - Początkujący .

    Tylko Nie czytaj bez sensu tylko rób od razu coś ; ) .
  4. Po dodaniu crontab -e ( poprawnie ) wyskakuje mi taki blad jak w temacie. Dodany crontab: */1 * * * * /var/www/panel/files/sprawdz.sh * */1 * * * php-f /var/www/panel/sprawdz.php ctrl + x + y + enter ; ) Zapisany. I wyskakuje taki blad jak powyzej czyli nie ma takiej cmd Co musze doinstalowac ? Probowalem szukac tego w innych folderach zeby zastosować skrót l -s /as/as/ /asa/as/ass Ale bez skutku ... Przekopałem google i nic nie znalazłem w jezyku polskim ani angielskim. A tutaj błedy z maila root: From root@xxx.localdomain Sat Mar 3 03:56:01 2012 Return-Path: <root@xxx.localdomain> X-Original-To: root Delivered-To: root@xxx.localdomain Received: by xxx.localdomain (Postfix, from userid 0) id CFEE52BD851B; Sat, 3 Mar 2012 03:56:01 +0000 (UTC) From: root@xxx.localdomain (Cron Daemon) To: root@xxx.localdomain Subject: Cron <root@xxx> php-f /var/www/panel/sprawdz.php Content-Type: text/plain; charset=ANSI_X3.4-1968 X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> Message-Id: <20120303035601.CFEE52BD851B@bustedga.localdomain> Date: Sat, 3 Mar 2012 03:56:01 +0000 (UTC) /bin/sh: php-f: command not found From root@xxx.localdomain Sat Mar 3 03:56:09 2012 Return-Path: <root@xxx.localdomain> X-Original-To: root Delivered-To: root@xxx.localdomain Received: by xxx.localdomain (Postfix, from userid 0) id C2DCC2BD851B; Sat, 3 Mar 2012 03:56:09 +0000 (UTC) From: root@xxx.localdomain (Cron Daemon) To: root@xxx.localdomain Subject: Cron <root@xxx> /var/www/panel/files/sprawdz.sh Content-Type: text/plain; charset=ANSI_X3.4-1968 X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> Message-Id: <20120303035609.C2DCC2BD851B@xxx.localdomain> Date: Sat, 3 Mar 2012 03:56:03 +0000 (UTC) chmod: cannot access `/home/ventrilo/2503/ventrilo_srv.pid': No such file or directory chmod: cannot access `/home/ventrilo/8006/ventrilo_srv.pid': No such file or directory chmod: cannot access `/home/ventrilo/8009/ventrilo_srv.pid': No such file or directory chmod: cannot access `/home/ventrilo/8012/ventrilo_srv.pid': No such file or directory
  5. Nie mialem bibliotek .. Not able to check PHP version: -bash: php: command not found If you get the error message "-bash: php: command not found", first ensure whether you have installed PHP in the server. If you have installed PHP and if you get the error message, then you have to install php-cli. CentOS: === yum install php-cli === Ubuntu: === apt-get install php4-cli or apt-get install php5-cli ===
×