ErrorException (E_WARNING)
include_once(/var/www/html/template/cashroll.in/index.php): Failed to open stream: No such file or directory ErrorException thrown with message "include_once(/var/www/html/template/cashroll.in/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 77t2pgp9rmqp5bbg7r7kdjmgnm
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 47742
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 3.147.68.39
SERVER_PORT 80
SERVER_ADDR 192.168.128.110
SERVER_NAME cashroll.in
SERVER_SOFTWARE Apache/2.4.62 (Debian)
SERVER_SIGNATURE <address>Apache/2.4.62 (Debian) Server at cashroll.in 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; loops=1
HTTP_CF_CONNECTING_IP 3.147.68.39
HTTP_COOKIE PHPSESSID=77t2pgp9rmqp5bbg7r7kdjmgnm
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 8e5be4502c66eabc-BOM
HTTP_ACCEPT_ENCODING gzip, br
HTTP_HOST cashroll.in
proxy-nokeepalive 1
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1732141904.0707
REQUEST_TIME 1732141904
empty
0. Whoops\Handler\PrettyPageHandler