ErrorException (E_WARNING)
include_once(/var/www/html/template/fatafat.cash/index.php): Failed to open stream: No such file or directory ErrorException thrown with message "include_once(/var/www/html/template/fatafat.cash/index.php): Failed to open stream: No such file or directory" Stacktrace: #2 ErrorException in /var/www/html/index.php:36 #1 include_once in /var/www/html/index.php:36 #0 checkAndRenderFile in /var/www/html/index.php:145
Stack frames (3)
2
ErrorException
/var/www/html/index.php36
1
include_once
/var/www/html/index.php36
0
checkAndRenderFile
/var/www/html/index.php145
/var/www/html/index.php
                echo $content;
            } elseif (in_array('.well-known', explode('/', $url), true) !== false) {
                header('Content-type: ' . util\File::get_mime_type($filename));
                ob_start();
                include $filename;
                $content = ob_get_clean();
                echo $content;
            } else if(str_contains($url, "app-ads.txt")){
                header("Content-type: text/plain");
                ob_start();
                include $filename;
                $content = ob_get_clean();
                echo $content;
            } else {
                $uri = explode('?', $_SERVER['REQUEST_URI'] ?? '')[0];
                $fk_filename = __DIR__ . '/template/' . $_SERVER['HTTP_HOST'];
                if (rtrim($filename, '/') == $fk_filename) {
                    $fk_filename .= '/index.php';
                    ob_start();
                    include_once $fk_filename;
                    $content = ob_get_clean();
                    echo $content;
                    exit();
                }
//                header("Content-type: ".mime_content_type($filename));
                header('Location: /template/' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
//                echo "found {$fk_filename} = {$filename}";
                exit();
            }
            return true;
        }
        return false;
    }
}
if (!function_exists('getScriptName')) {
    function getScriptName()
    {
        $uri = explode('?', $_SERVER['REQUEST_URI'] ?? '')[0];
        return (!empty($uri)) ? $uri : '/index.php';
    }
/var/www/html/index.php
                echo $content;
            } elseif (in_array('.well-known', explode('/', $url), true) !== false) {
                header('Content-type: ' . util\File::get_mime_type($filename));
                ob_start();
                include $filename;
                $content = ob_get_clean();
                echo $content;
            } else if(str_contains($url, "app-ads.txt")){
                header("Content-type: text/plain");
                ob_start();
                include $filename;
                $content = ob_get_clean();
                echo $content;
            } else {
                $uri = explode('?', $_SERVER['REQUEST_URI'] ?? '')[0];
                $fk_filename = __DIR__ . '/template/' . $_SERVER['HTTP_HOST'];
                if (rtrim($filename, '/') == $fk_filename) {
                    $fk_filename .= '/index.php';
                    ob_start();
                    include_once $fk_filename;
                    $content = ob_get_clean();
                    echo $content;
                    exit();
                }
//                header("Content-type: ".mime_content_type($filename));
                header('Location: /template/' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
//                echo "found {$fk_filename} = {$filename}";
                exit();
            }
            return true;
        }
        return false;
    }
}
if (!function_exists('getScriptName')) {
    function getScriptName()
    {
        $uri = explode('?', $_SERVER['REQUEST_URI'] ?? '')[0];
        return (!empty($uri)) ? $uri : '/index.php';
    }
/var/www/html/index.php
    include $filename;
    exit();
}
$url = $_SERVER['HTTP_HOST'] . '/' . getScriptName();
if (LOCALHOST) {
    $url = $allowed_hosts[0] . str_replace(BASE_DIR, '/', getScriptName());
}
 
//Check files in template directory for custom domains
$filename = __DIR__ . '/template/' . $url;
$found = false;
 
$filenames = [
    $filename,
    "{$filename}.php",
    __DIR__ . '/template/' . $_SERVER['HTTP_HOST'] . '/' . CleanUrl::getPartAtIndex(0) . '.php'
];
 
foreach ($filenames as $filename) {
    if (checkAndRenderFile($filename)) {
        $found = true;
        exit();
    }
}
$filename = trim(getScriptName(), '/') . '.php';
if (file_exists($filename)) {
    include $filename;
    exit();
}
if (file_exists(CleanUrl::getPartAtIndex(0) . '.php')) {
    $file = CleanUrl::getPartAtIndex(0);
    $filename = __DIR__ . "/$file.php";
 
    include $filename;
    exit();
}
if (!$found) {
//    header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
    $default404File = __DIR__ . '/data/pages/404.php';
    $domain404File = __DIR__ . '/template/' . $_SERVER['HTTP_HOST'] . '/404.php';

Environment & details:

empty
empty
empty
Key Value
PHPSESSID 69nk7aq8s574hv2f2htooglps1
Key Value
lang en
Key Value
USER www-data
HOME /var/www
SCRIPT_NAME /index.php
REQUEST_URI /
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 49608
SCRIPT_FILENAME /var/www/html/index.php
SERVER_ADMIN webmaster@localhost
CONTEXT_DOCUMENT_ROOT /var/www/html
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /var/www/html
REMOTE_ADDR 18.118.137.78
SERVER_PORT 80
SERVER_ADDR 192.168.128.110
SERVER_NAME fatafat.cash
SERVER_SOFTWARE Apache/2.4.61 (Debian)
SERVER_SIGNATURE <address>Apache/2.4.61 (Debian) Server at fatafat.cash Port 80</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_CONNECTION close
HTTP_X_FORWARDED_PROTO http
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 18.118.137.78
HTTP_COOKIE PHPSESSID=69nk7aq8s574hv2f2htooglps1
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_ACCEPT */*
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_CF_RAY 8a9b6e4778bd10ba-BOM
HTTP_ACCEPT_ENCODING gzip, br
HTTP_HOST fatafat.cash
proxy-nokeepalive 1
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1722070740.1188
REQUEST_TIME 1722070740
empty
0. Whoops\Handler\PrettyPageHandler