Results 1 to 7 of 7
  1. #1

    open(), fsockopen() not working?

    I have troubles using php functions like fopen(), fsockopen().. to open an external file.

    When I use these functions to open a file in my home directory it works fine, but if I try to fopen("site.com", "rb") it doesnt work.

    Code:
    <?php
                function escapeURL($info)
    {
        $ret = "";
        $i=0;
        while (strlen($info) > $i)
        {
            $ret .= "%".$info[$i].$info[$i + 1];
            $i+=2;
        }
        return $ret;
    }
    $hash = "a012f977ac254967e53f869727556e34aa89b7db";
    
    $newh =  escapeURL($hash);
    $addr = "http :// tracker.domain.net:6800/scrape?info_hash=".$newh;
    
    echo "This script will try to open: <a href='".$addr."'>".$addr."</a><br>As you can see if you try to open it with explorer, the page opens without any problem, but php functions cant open it.<br>(Please wait until the page loads to 100% to see the error message!)<br><br>";
    
        $fd= fopen($addr, "r") or die ("cant open this page");
        // echo "<h2>The file was successfuly opened!</h2><br><br><br>";
         if ($ff = fread($fd, 1024))
         {
         echo "SUCCESS!!!<br>";
         echo $ff;
         }
     // $fg=file_get_contents($addr);
     // echo $fg;
    
    ?>


    Using...
    PHP 4.4.4.
    phpsuexec
    cpanel

    "sockets" has always been compiled in apache as well

  2. #2
    Do you have a firewall, maybe like "apf" installed?

    Some have restrictions on outgoing (egress) connections.


    What's the error message, or what happens when you run the script? Does is say anything in error_log? There should be an error_log file I'm guessing if you have phpsuexec set up.

  3. #3
    I have apf

    # Egress filtering [0 = Disabled / 1 = Enabled]
    EGF="1"

    # Common egress (outbound) TCP ports
    EG_TCP_CPORTS="21,25,37,43,53,80,113,465,873,2089,3306"

    # Common egress (outbound) UDP ports
    EG_UDP_CPORTS="20,21,53,465,873"

    # Common ICMP (outbound) types
    # 'internals/icmp.types' for type definition; 'all' is wildcard for any
    EG_ICMP_TYPES="all"


    This script will try to open: http: //tracker.externaldomain.net:6800/scrape?info_hash=%a0%12%f9%77%ac%25%49%67%e5%3f%86%97%27%55%6e%34%aa%89%b7%db
    As you can see if you try to open it with explorer, the page opens without any problem, but php functions cant open it.
    (Please wait until the page loads to 100% to see the error message!)


    Warning: fopen(http: //tracker.externaldomain.net:6800/scrape?info_hash=%a0%12%f9%77%ac%25%49%67%e5%3f%86%97%27%55%6e%34%aa%89%b7%db) [function.fopen] failed to open stream: Connection timed out in /home/username/public_html/test1.php on line 20
    cant open this page

  4. #4
    write a small php script that users the above functions and then run

    strace php yourscript.php

    on the console

    then ltrace

    you can find exactly what is happening on the background when php tries to run your script.

    Check out this guide it will open your eyes on how to trobleshoot linux problems.



    http://www.linuxtroubleshooting.com/...Main_Page#find

  5. #5
    Its giving alot of output.

    Here is a portion

    Code:
    [email protected] [/home/user/public_html]# strace php test1.php
    execve("/usr/local/bin/php", ["php", "test1.php"], [/* 23 vars */]) = 0
    uname({sys="Linux", node="server.localhost.com", ...}) = 0
    brk(0)                                  = 0x8639000
    access("/etc/ld.so.preload", R_OK)      = 0
    open("/etc/ld.so.preload", O_RDONLY)    = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=18, ...}) = 0
    old_mmap(NULL, 18, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0xb7f07000
    close(3)                                = 0
    open("/lib/libsafe.so.2", O_RDONLY)     = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\17\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=21303, ...}) = 0
    old_mmap(NULL, 19032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x9b6000
    old_mmap(0x9ba000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x9ba000
    mprotect(0xbfef7000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
    close(3)                                = 0
    munmap(0xb7f07000, 18)                  = 0
    open("/usr/kerberos/lib/tls/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/kerberos/lib/tls/i686/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/kerberos/lib/tls/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/kerberos/lib/tls/i686", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/kerberos/lib/tls/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/kerberos/lib/tls/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/kerberos/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/kerberos/lib/tls", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/kerberos/lib/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/kerberos/lib/i686/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/kerberos/lib/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/kerberos/lib/i686", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/kerberos/lib/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/kerberos/lib/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/kerberos/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/kerberos/lib", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/tls/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/X11R6/lib/tls/i686/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/tls/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/X11R6/lib/tls/i686", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/tls/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/X11R6/lib/tls/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/X11R6/lib/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    open("/usr/X11R6/lib/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/X11R6/lib/i686/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/X11R6/lib/i686", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/X11R6/lib/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/X11R6/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    open("/usr/local/imap-2004g/lib/tls/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/imap-2004g/lib/tls/i686/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/tls/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/imap-2004g/lib/tls/i686", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/tls/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/imap-2004g/lib/tls/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/imap-2004g/lib/tls", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/imap-2004g/lib/i686/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/imap-2004g/lib/i686", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/imap-2004g/lib/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/imap-2004g/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    open("/usr/local/lib/tls/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/lib/tls/i686/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/tls/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/lib/tls/i686", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/tls/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/lib/tls/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/tls/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/lib/tls", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/i686/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/lib/i686/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/i686/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/lib/i686", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/sse2/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/lib/sse2", 0xbfef6700) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libstdc++.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    open("/etc/ld.so.cache", O_RDONLY)      = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=32119, ...}) = 0
    old_mmap(NULL, 32119, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f00000
    close(3)                                = 0
    open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\265"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=792728, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eff000
    old_mmap(NULL, 818792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xc51000
    old_mmap(0xd0f000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbd000) = 0xd0f000
    old_mmap(0xd14000, 20072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd14000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libcrypt.so.1", O_RDONLY)    = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\7\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=26844, ...}) = 0
    old_mmap(NULL, 184636, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x937000
    old_mmap(0x93c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x93c000
    old_mmap(0x93e000, 155964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x93e000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libaspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libaspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libaspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libaspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libaspell.so.15", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\262"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=627720, ...}) = 0
    old_mmap(0x402000, 631956, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x402000
    old_mmap(0x498000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x95000) = 0x498000
    old_mmap(0x49c000, 1172, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x49c000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libpspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libpspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libpspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libpspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libpspell.so.15", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0D\4\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=2784, ...}) = 0
    old_mmap(NULL, 5756, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x22d000
    old_mmap(0x22e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x22e000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libpq.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libpq.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libpq.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libpq.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libpq.so.4", O_RDONLY)   = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320U\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=422096, ...}) = 0
    old_mmap(NULL, 109956, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xd1e000
    old_mmap(0xd38000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0xd38000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libpdf.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libpdf.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libpdf.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libpdf.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libpdf.so.2", O_RDONLY)  = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\364h\1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0644, st_size=2204631, ...}) = 0
    old_mmap(NULL, 745300, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x711000
    old_mmap(0x7b0000, 94208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9e000) = 0x7b0000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/tls/libm.so.6", O_RDONLY)    = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0003\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=212168, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efe000
    old_mmap(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x88f000
    old_mmap(0x8b0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x8b0000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libz.so.1", O_RDONLY)    = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\225"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=63624, ...}) = 0
    old_mmap(0x388000, 65124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x388000
    old_mmap(0x397000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x397000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libpng12.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libpng12.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libpng12.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libpng12.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libpng12.so.0", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\332"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=144044, ...}) = 0
    old_mmap(0x848000, 141476, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x848000
    old_mmap(0x86a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x86a000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libmysqlclient.so.14", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libmysqlclient.so.14", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libmysqlclient.so.14", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libmysqlclient.so.14", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libmysqlclient.so.14", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\25\1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1954332, ...}) = 0
    old_mmap(NULL, 1272864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x22f000
    old_mmap(0x272000, 991232, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x42000) = 0x272000
    old_mmap(0x364000, 7200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x364000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libmcrypt.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libmcrypt.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libmcrypt.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libmcrypt.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libmcrypt.so.4", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\24x\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=382919, ...}) = 0
    old_mmap(NULL, 196352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x111000
    old_mmap(0x138000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x138000
    old_mmap(0x13c000, 20224, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x13c000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libltdl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libltdl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libltdl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libltdl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libltdl.so.3", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\21"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=23220, ...}) = 0
    old_mmap(NULL, 26200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x57b000
    old_mmap(0x581000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x581000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libdl.so.2", O_RDONLY)       = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\v\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=15100, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efd000
    old_mmap(NULL, 12388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xe87000
    old_mmap(0xe89000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xe89000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libpam.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libpam.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libpam.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libpam.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libpam.so.0", O_RDONLY)      = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\26"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=30584, ...}) = 0
    old_mmap(NULL, 29364, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4b5000
    old_mmap(0x4bc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x4bc000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libfreetype.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\352\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=439080, ...}) = 0
    old_mmap(NULL, 437856, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xac5000
    old_mmap(0xb29000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x64000) = 0xb29000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libX11.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\25\1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=911656, ...}) = 0
    old_mmap(NULL, 911768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x141000
    old_mmap(0x21c000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xdb000) = 0x21c000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libXpm.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libXpm.so.4", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000#\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=59328, ...}) = 0
    old_mmap(NULL, 58244, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x366000
    old_mmap(0x374000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x374000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libjpeg.so.62", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\23a"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=119320, ...}) = 0
    old_mmap(0x60f000, 120820, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x60f000
    old_mmap(0x62c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x62c000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libexslt.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libexslt.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libexslt.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libexslt.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libexslt.so.0", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0,&\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=195559, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efc000
    old_mmap(NULL, 59892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x375000
    old_mmap(0x383000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x383000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libxslt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libxslt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libxslt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libxslt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libxslt.so.1", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30q\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=613842, ...}) = 0
    old_mmap(NULL, 187436, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x9f9000
    old_mmap(0xa26000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2c000) = 0xa26000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libssl.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libssl.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libssl.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libssl.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libssl.so.4", O_RDONLY)      = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\226"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=211948, ...}) = 0
    old_mmap(NULL, 212692, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x398000
    old_mmap(0x3c9000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x31000) = 0x3c9000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libcrypto.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libcrypto.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libcrypto.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libcrypto.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libcrypto.so.4", O_RDONLY)   = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\253"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=939304, ...}) = 0
    old_mmap(NULL, 953144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xd39000
    old_mmap(0xe0d000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd4000) = 0xe0d000
    old_mmap(0xe1f000, 11064, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xe1f000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libgssapi_krb5.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libgssapi_krb5.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libgssapi_krb5.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libgssapi_krb5.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libgssapi_krb5.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360J\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=80948, ...}) = 0
    old_mmap(NULL, 79792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3cc000
    old_mmap(0x3df000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x3df000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libkrb5.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libkrb5.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libkrb5.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libkrb5.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libkrb5.so.3", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\370\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=413704, ...}) = 0
    old_mmap(NULL, 413000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4bd000
    old_mmap(0x520000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x63000) = 0x520000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libcom_err.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libcom_err.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libcom_err.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libcom_err.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libcom_err.so.2", O_RDONLY)  = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\354\10"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=5668, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efb000
    old_mmap(NULL, 8636, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x220000
    old_mmap(0x222000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x222000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libk5crypto.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libk5crypto.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libk5crypto.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libk5crypto.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libk5crypto.so.3", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`2\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=134640, ...}) = 0
    old_mmap(NULL, 134560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa3b000
    old_mmap(0xa5b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0xa5b000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libresolv.so.2", O_RDONLY)   = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360#\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=79440, ...}) = 0
    old_mmap(NULL, 75944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3e0000
    old_mmap(0x3ef000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x3ef000
    old_mmap(0x3f1000, 6312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3f1000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libnsl.so.1", O_RDONLY)      = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3007\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=95444, ...}) = 0
    old_mmap(NULL, 88072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x49d000
    old_mmap(0x4af000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x4af000
    old_mmap(0x4b1000, 6152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4b1000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libcurl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libcurl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libcurl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libcurl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libcurl.so.3", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240o\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1293401, ...}) = 0
    old_mmap(NULL, 196028, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x522000
    old_mmap(0x551000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2f000) = 0x551000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\214\241"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=3056621, ...}) = 0
    old_mmap(NULL, 1036052, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xe8b000
    old_mmap(0xf7f000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf3000) = 0xf7f000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/tls/libc.so.6", O_RDONLY)    = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320N\1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1521908, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efa000
    old_mmap(NULL, 1223900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf88000
    old_mmap(0x10ad000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x124000) = 0x10ad000
    old_mmap(0x10b1000, 7388, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x10b1000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0x\25\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=30420, ...}) = 0
    old_mmap(NULL, 29136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x223000
    old_mmap(0x22a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x22a000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libaudit.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libaudit.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libaudit.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libaudit.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/tls/libaudit.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libaudit.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libaudit.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libaudit.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/lib/libaudit.so.0", O_RDONLY)    = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\30\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=58748, ...}) = 0
    old_mmap(NULL, 61696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xc24000
    old_mmap(0xc32000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0xc32000
    close(3)                                = 0
    open("/usr/X11R6/lib/tls/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libXext.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220&\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=52116, ...}) = 0
    old_mmap(NULL, 55444, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3f3000
    old_mmap(0x400000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x400000
    close(3)                                = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef9000
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef8000
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef7000
    mprotect(0x10ad000, 8192, PROT_READ)    = 0
    mprotect(0x4af000, 4096, PROT_READ)     = 0
    mprotect(0x3ef000, 4096, PROT_READ)     = 0
    mprotect(0xe89000, 4096, PROT_READ)     = 0
    mprotect(0x8b0000, 4096, PROT_READ)     = 0
    mprotect(0x93c000, 4096, PROT_READ)     = 0
    mprotect(0xb87000, 4096, PROT_READ)     = 0
    set_thread_area({entry_number:-1 -> 6, base_addr:0xb7ef76c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    munmap(0xb7f00000, 32119)               = 0
    brk(0)                                  = 0x8639000
    brk(0x865a000)                          = 0x865a000
    readlink("/proc/self/exe", "/usr/local/bin/php", 4094) = 18
    open("/etc/libsafe.exclude", O_RDONLY)  = -1 ENOENT (No such file or directory)
    rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
    open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=48528848, ...}) = 0
    mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7cf7000
    mmap2(NULL, 212992, PROT_READ, MAP_PRIVATE, 3, 0x3e1) = 0xb7cc3000
    mmap2(NULL, 888832, PROT_READ, MAP_PRIVATE, 3, 0x525) = 0xb7bea000
    mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0x600) = 0xb7be9000
    close(3)                                = 0
    open("/etc/localtime", O_RDONLY)        = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=1279, ...}) = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=1279, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7be8000
    read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0\0\0\5\0"..., 4096) = 1279
    close(3)                                = 0
    munmap(0xb7be8000, 4096)                = 0
    open("php/php-cli.ini", O_RDONLY)       = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("php/php.ini", O_RDONLY)           = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/php.ini", O_RDONLY) = 3
    getcwd("/home/user/public_html", 4096) = 27
    lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/local/lib/php.ini", {st_mode=S_IFLNK|0777, st_size=27, ...}) = 0
    readlink("/usr/local/lib/php.ini", "/usr/local/Zend/etc/php.ini", 4096) = 27
    lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/local/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/local/Zend/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("/usr/local/Zend/etc/php.ini", {st_mode=S_IFREG|0644, st_size=23304, ...}) = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=23304, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7be8000
    read(3, "[PHP]\n\n;;;;;;;;;;;;;;;;;;;\n; Abo"..., 8192) = 8192
    read(3, "on web sites.\ntrack_errors\t=\tOff"..., 8192) = 8192
    read(3, " limit\npgsql.max_links\t\t\t=\t-1\t; "..., 8192) = 6920
    read(3, "", 4096)                       = 0
    read(3, "", 8192)                       = 0
    close(3)                                = 0
    munmap(0xb7be8000, 4096)                = 0
    brk(0x867b000)                          = 0x867b000
    open("/etc/nsswitch.conf", O_RDONLY)    = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=1686, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7be8000
    read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1686
    read(3, "", 4096)                       = 0
    close(3)                                = 0
    munmap(0xb7be8000, 4096)                = 0
    open("/usr/X11R6/lib/tls/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY)      = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=32119, ...}) = 0
    old_mmap(NULL, 32119, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7be1000
    close(3)                                = 0
    open("/lib/libnss_files.so.2", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\33\0"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=47468, ...}) = 0
    old_mmap(NULL, 41608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xc13000
    old_mmap(0xc1c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0xc1c000
    close(3)                                = 0
    mprotect(0xc1c000, 4096, PROT_READ)     = 0
    munmap(0xb7be1000, 32119)               = 0
    open("/etc/protocols", O_RDONLY)        = 3
    fcntl64(3, F_GETFD)                     = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=5834, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7be8000
    read(3, "# /etc/protocols:\n# $Id: protoco"..., 4096) = 4096
    close(3)                                = 0
    munmap(0xb7be8000, 4096)                = 0
    open("/etc/protocols", O_RDONLY)        = 3
    fcntl64(3, F_GETFD)                     = 0
    fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
    fstat64(3, {st_mode=S_IFREG|0644, st_size=5834, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7be8000
    read(3, "# /etc/protocols:\n# $Id: protoco"..., 4096) = 4096
    close(3)                                = 0
    munmap(0xb7be8000, 4096)                = 0
    stat64("/etc/cram-md5.pwd", 0xbfef6d1c) = -1 ENOENT (No such file or directory)
    brk(0x869c000)                          = 0x869c000
    brk(0x86bd000)                          = 0x86bd000
    getpid()                                = 18179
    open("/usr/local/Zend/lib/ZendExtensionManager.so", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\n\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=9524, ...}) = 0
    old_mmap(NULL, 12284, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x9d3000
    old_mmap(0x9d5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x9d5000
    close(3)                                = 0
    stat64("/usr/local/Zend/lib/Optimizer-2_6_2/php-4.4.x/ZendOptimizer.so", {st_mode=S_IFREG|0755, st_size=586316, ...}) = 0
    open("/usr/local/Zend/lib/Optimizer-2_6_2/php-4.4.x/ZendOptimizer.so", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\31\1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=586316, ...}) = 0
    old_mmap(NULL, 597224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x62d000
    old_mmap(0x6b2000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x84000) = 0x6b2000
    old_mmap(0x6bd000, 7400, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x6bd000
    close(3)                                = 0
    mprotect(0x62d000, 544768, PROT_READ|PROT_WRITE) = 0
    mprotect(0x62d000, 544768, PROT_READ|PROT_EXEC) = 0
    brk(0x86de000)                          = 0x86de000
    brk(0x86ff000)                          = 0x86ff000
    brk(0x8724000)                          = 0x8724000
    brk(0x874f000)                          = 0x874f000
    brk(0x8770000)                          = 0x8770000
    open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=21544, ...}) = 0
    mmap2(NULL, 21544, PROT_READ, MAP_SHARED, 3, 0) = 0xb7be3000
    close(3)                                = 0
    shmget(IPC_PRIVATE, 524288, 0600)       = 5865474
    shmat(5865474, 0, 0)                    = 0xb7b63000
    shmctl(5865474, IPC_RMID, 0xbfef6990)   = 0
    gettimeofday({1158260148, 251301}, NULL) = 0
    open("/tmp/ZCUDYipwxJ", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
    fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
    fstat64(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b62000
    _llseek(3, 0, [0], SEEK_CUR)            = 0
    unlink("/tmp/ZCUDYipwxJ")               = 0
    setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
    setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
    rt_sigaction(SIGPROF, {0x81bc150, [PROF], SA_RESTORER|SA_RESTART, 0xfaf898}, {SIG_DFL}, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
    open("test1.php", O_RDONLY)             = 4
    fstat64(4, {st_mode=S_IFREG|0644, st_size=1153, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b61000
    read(4, "   <?php\n            function es"..., 4096) = 1153
    _llseek(4, 0, [0], SEEK_SET)            = 0
    setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
    rt_sigaction(SIGPROF, {0x81bc150, [PROF], SA_RESTORER|SA_RESTART, 0xfaf898}, {0x81bc150, [PROF], SA_RESTORER|SA_RESTART, 0xfaf898}, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
    gettimeofday({1158260148, 254344}, NULL) = 0
    dup(0)                                  = 5
    fstat64(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
    lseek(5, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
    dup(1)                                  = 6
    fstat64(6, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
    lseek(6, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
    dup(2)                                  = 7
    fstat64(7, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
    lseek(7, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
    getcwd("/home/user/public_html", 4096) = 27
    lstat64("/home/user/public_html/test1.php", {st_mode=S_IFREG|0644, st_size=1153, ...}) = 0
    setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
    rt_sigaction(SIGPROF, {0x81bc150, [PROF], SA_RESTORER|SA_RESTART, 0xfaf898}, {0x81bc150, [PROF], SA_RESTORER|SA_RESTART, 0xfaf898}, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
    _llseek(4, 0, [0], SEEK_SET)            = 0
    read(4, "   <?php\n            function es"..., 4096) = 1153
    _llseek(4, 1153, [1153], SEEK_SET)      = 0
    read(4, "", 4096)                       = 0
    read(4, "", 8192)                       = 0
    close(4)                                = 0
    munmap(0xb7b61000, 4096)                = 0
    fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b61000
    write(1, "   ", 3   )                      = 3
    write(1, "This script will try to open: <a"..., 474This script will try to open: <a href='http://tracker.sladinki007.net:6800/scrape?info_hash=%a0%12%f9%77%ac%25%49%67%e5%3f%86%97%27%55%6e%34%aa%89%b7%db'>http://tracker.sladinki007.net:6800/scrape?info_hash=%a0%12%f9%77%ac%25%49%67%e5%3f%86%97%27%55%6e%34%aa%89%b7%db</a><br>As you can see if you try to open it with explorer, the page opens without any problem, but php functions cant open it.<br>(Please wait until the page loads to 100% to see the error message!)<br><br>) = 474
    socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 4
    close(4)                                = 0
    socket(PF_FILE, SOCK_STREAM, 0)         = 4
    fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(4)                                = 0
    socket(PF_FILE, SOCK_STREAM, 0)         = 4
    fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
    close(4)                                = 0
    gettimeofday({1158260148, 259526}, NULL) = 0
    open("/etc/resolv.conf", O_RDONLY)      = 4
    fstat64(4, {st_mode=S_IFREG|0644, st_size=49, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b60000
    read(4, "nameserver 192.104.107.1\nnameser"..., 4096) = 49
    read(4, "", 4096)                       = 0
    close(4)                                = 0
    munmap(0xb7b60000, 4096)                = 0
    uname({sys="Linux", node="server.localhost.com", ...}) = 0
    open("/etc/hosts", O_RDONLY)            = 4
    fcntl64(4, F_GETFD)                     = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b60000
    read(4, "# Do not remove the following li"..., 4096) = 184
    read(4, "", 4096)                       = 0
    close(4)                                = 0
    munmap(0xb7b60000, 4096)                = 0
    open("/etc/hosts", O_RDONLY)            = 4
    fcntl64(4, F_GETFD)                     = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b60000
    read(4, "# Do not remove the following li"..., 4096) = 184
    read(4, "", 4096)                       = 0
    close(4)                                = 0
    munmap(0xb7b60000, 4096)                = 0
    open("/usr/X11R6/lib/tls/libnss_dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/X11R6/lib/libnss_dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/imap-2004g/lib/libnss_dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/local/lib/libnss_dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY)      = 4
    fstat64(4, {st_mode=S_IFREG|0644, st_size=32119, ...}) = 0
    old_mmap(NULL, 32119, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7b59000
    close(4)                                = 0
    open("/lib/libnss_dns.so.2", O_RDONLY)  = 4
    read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\r\0"..., 512) = 512
    fstat64(4, {st_mode=S_IFREG|0755, st_size=22584, ...}) = 0
    old_mmap(NULL, 20612, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x552000
    old_mmap(0x556000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x3000) = 0x556000
    close(4)                                = 0
    mprotect(0x556000, 4096, PROT_READ)     = 0
    munmap(0xb7b59000, 32119)               = 0
    socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
    connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.104.107.1")}, 28) = 0
    fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    gettimeofday({1158260148, 264812}, NULL) = 0
    poll([{fd=4, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
    send(4, "\27q\1\0\0\1\0\0\0\0\0\0\7tracker\vsladinki007"..., 41, MSG_NOSIGNAL) = 41
    poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
    ioctl(4, FIONREAD, [103])               = 0
    recvfrom(4, "\27q\201\200\0\1\0\0\0\1\0\0\7tracker\vsladinki007"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.104.107.1")}, [16]) = 103
    close(4)                                = 0
    socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
    connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.104.107.1")}, 28) = 0
    fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    gettimeofday({1158260148, 267900}, NULL) = 0
    poll([{fd=4, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
    send(4, "\0250\1\0\0\1\0\0\0\0\0\0\7tracker\vsladinki007"..., 66, MSG_NOSIGNAL) = 66
    poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
    ioctl(4, FIONREAD, [125])               = 0
    recvfrom(4, "\0250\201\203\0\1\0\0\0\1\0\0\7tracker\vsladinki007"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.104.107.1")}, [16]) = 125
    close(4)                                = 0
    socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
    connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.104.107.1")}, 28) = 0
    fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
    gettimeofday({1158260148, 273714}, NULL) = 0
    poll([{fd=4, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
    send(4, "\254/\1\0\0\1\0\0\0\0\0\0\7tracker\vsladinki007"..., 41, MSG_NOSIGNAL) = 41
    poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
    ioctl(4, FIONREAD, [179])               = 0
    recvfrom(4, "\254/\201\200\0\1\0\1\0\3\0\3\7tracker\vsladinki007"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.104.107.1")}, [16]) = 179
    close(4)                                = 0
    socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
    connect(4, {sa_family=AF_INET, sin_port=htons(6800), sin_addr=inet_addr("83.149.90.84")}, 16
     <unfinished ...>
    
    
    [email protected] [/home/user/public_html]# ltrace php test1.php

  6. #6
    Hello again.

    The problem is that the port you are trying to connect to isn't listed in the egress rules of APF:

    EG_TCP_CPORTS="21,25,37,43,53,80,113,465,873,2089,3306"

    I would change that to:

    EG_TCP_CPORTS="21,25,37,43,53,80,113,465,873,6800,2089,3306"

    It's trying to connect to 6800 for "http://tracker.domain.net:6800/scrape?info_hash="

    Once you have added it, you will need to restart APF

    service apf restart

    or

    apf --restart

    or

    /etc/init.d/apf restart


    or a few other ways I'm sure!

  7. #7
    That works, thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •