Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Warning: virtual() [function.virtual]: Unable to include 'cgi-bin/in.cgi'

Discussion in 'General Discussion' started by its_joe, Sep 10, 2008.

  1. its_joe

    its_joe Well-Known Member

    Joined:
    Feb 15, 2007
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    166
    Hello,

    We have CentOS release 4.6 and WHM 11 on server. Along with it we have Apache/2.0.63 on server.

    For one of our website, on the index page we get following error:

    Warning: virtual() [function.virtual]: Unable to include 'cgi-bin/in.cgi' - request execution failed in /home/abc/public_html/index.php on line 6

    and the content of the index.php page is as follows:
    ===============================
    <?php
    $url[1]="1.php";
    $url[2]="2.php";
    $rx=sizeof($url);if(isset($sdr)){if(($sdr<=0)or($sdr>=$rx)){$sdr=$rx;}$x=$sdr;}else{$x=$rx;}$x++;if($x>$rx){$x=1;}setcookie("sdr", $x,time()+100000, "/");
    if(isset($dmr)){$dmr=addslashes($dmr);$inw= "cgi-bin/in.cgi?dm=".$dmr;}else{$inw="cgi-bin/in.cgi";}
    virtual($inw);
    include($url[$x]);
    ?>
    =====================================
    We have not disable virtual function in php.ini

    Please tell us how to resolve this error.

    waiting for reply.

    its_joe
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You may wish to refer to the documentation for this function, especially the user-contributed comments:

    http://php.net/virtual

    From a server-troubleshooting perspective, is PHP running as a module, SuPHP, CGI... etc?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice