Cronjob mit PHP

  • Hallo Leute,

    mich plagt seit 2 Tagen folgendes Problem:
    Ich bin Kunde bei Hosteurope, Webpack Pro L, habe mir über das KIS einen Cronjob angelegt der im 15 Minutentakt eine php Datei ausführen soll. Die Pfade im KIS auf die Phpdatei sind richtig gesetzt, ein Automailer der mir über Erfolg oder Misserfolg des Cronjob berichtet ist eingerichtet. Ausserdem ist in dieser php die sogenannte "SheBang" Zeile in der ersten Zeile eingefügt. Folgendes steht in der Mail:

    #!/usr/local/bin/php

    Warning: fopen(temp/cam.s): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/system.s): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/anzahl.lst): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/kategorie-0.xml): failed to open stream: No such file or
    directory in /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/kategorie-0.s): failed to open stream: No such file or directory
    in /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/liste-0.s): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/neuliste.s): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/anzahl.lst): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/liste-1.s): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/kategorie-1.xml): failed to open stream: No such file or
    directory in /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/kategorie-1.s): failed to open stream: No such file or directory
    in /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/anzahl.lst): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/liste-2.s): failed to open stream: No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/kategorie-2.xml): failed to open stream: No such file or
    directory in /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387

    Warning: fputs(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 388

    Warning: fclose(): supplied argument is not a valid stream resource in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 389

    Warning: chmod(): No such file or directory in
    /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 390

    Warning: fopen(temp/kategorie-2.s): failed to open stream: No such file or directory
    in /is/htdocs/wp1088750_I68ZFTYDKO/sexprison/fetch.php on line 387


    Das ist ca 1/8 der ganzen Fehlermeldung, bei Bedarf poste ich auch die ganze. Google sagt mir zu diesen Problem das eventuell serverseitig das

    allow_url_fopen

    verboten ist, in meiner phpinfo datei ist das aber mit "1" versehen also erlaubt. Auch die Schreibrechte für den ordner temp habe ich schon von 755-777 durchprobiert.

    eine htaccess datei liegt im hauptordner des scriptes.Folgender Inhalt:


    <FilesMatch "\.inc" >
    deny from all
    </FilesMatch>
    <FilesMatch "^\." >
    deny from all
    </FilesMatch>

    RewriteEngine on
    RewriteBase /

    RewriteRule ^sitemap(.*)$ /google/sitemap$1
    RewriteRule ^urllist(.*)$ /google/urllist$1
    RewriteCond %{REQUEST_URI} !\.css$
    RewriteCond %{REQUEST_URI} !\.gif$
    RewriteCond %{REQUEST_URI} !\.js$
    RewriteCond %{REQUEST_URI} !\.jpg$
    RewriteCond %{REQUEST_URI} !\.png$
    RewriteCond %{REQUEST_URI} !\.ico$
    RewriteCond %{REQUEST_URI} !\.swf$
    RewriteCond %{REQUEST_URI} !\.xml$
    RewriteCond %{REQUEST_URI} !\.xsl$
    RewriteCond %{REQUEST_URI} !\.txt$
    RewriteCond %{REQUEST_URI} !\.gz$
    RewriteCond %{REQUEST_URI} !fetch\.php$
    RewriteCond %{REQUEST_URI} !\.tool\.php$
    RewriteCond %{REQUEST_URI} !/info/
    RewriteCond %{REQUEST_URI} !/temp/
    RewriteCond %{REQUEST_URI} !/campics/
    RewriteRule (.+) index.php [QSA,L]


    Kann mir BITTE irgendwer weiterhelfen??

  • die datei nach der gefragt wird, also die cam.s befindet sicher aber im temp ordner,genauso die system.s usw.

  • der scriptpfad laut KIS ist folgender:

    /is/htdocs/wp1088750_I68ZFTYDKO/

    danach sind für 4 domains, 4 verzeichnisse angelegt.

    das script um das es geht liegt im verzeichniss "sexprison"

    in diesen sind unter anderen die fetch.php die ausgeführt werden soll sowie index.php usw usw, ein paar ordner u.a "temp" in den die oben genannten dateien liegen wie cam.s system.s usw

  • meinst du in die fetch.php eintragen? wenn ja wo?

    falls das weiterhilft,hier mal ein auszug aus der fetch.php, Zeile 384 bis 407


    // $dir als Assoziativer Wert für Config
    if ($CONFIG[$dir]!="") {
    @unlink($CONFIG[$dir].$file);
    $fp = fopen($CONFIG[$dir].$file,"a");
    fputs($fp,$content);
    fclose($fp);
    chmod($CONFIG[$dir].$file,0666);
    return true;
    }
    else {
    return false;
    }
    }

    function saveanzahl($wieviel,$welche) {
    global $CONFIG;
    if (!file_exists($CONFIG['TEMPDIR']."anzahl.lst")) {
    $inhalt = array_fill(0,12,"0\n");
    }
    else {
    $inhalt = file($CONFIG['TEMPDIR']."anzahl.lst");
    }
    $inhalt[$welche] = $wieviel."\n";
    savefile("anzahl.lst","TEMPDIR",implode("",$inhalt));

  • Damit kann man nichts anfangen, durchsuche mal alle Dateien nach der Stelle, wo $CONFIG gesetzt wird, irgendwo dort wird der Pfad eingetragen.