Results 1 to 3 of 3
  1. #1

    Scripts not working after using EasyApache

    I have many clients with installations of the script Cutenews, which were working fine previously.

    But after using EasyApache (I wanted to install Zend for ClientExec), I am unable to login to cutenews.

    The error is:

    Code:
    Sorry but your access to this page was denied !
    
    try to logout and then login again
    To turn off this security check, change $config_check_referer in index.php to FALSE
    I've looked in index.php to see what the security check is actually doing, and the php code is:

    Code:
    //----------------------------------
    // Check Referer
    //----------------------------------
    if($config_check_referer == TRUE){
       $self = $_SERVER["SCRIPT_NAME"];
       if($self == ""){ $self = $_SERVER["REDIRECT_URL"]; }
       if($self == ""){ $self = "index.php"; }
    
       if(!eregi("$self",$HTTP_REFERER) and $HTTP_REFERER != ""){
           die("<h2>Sorry but your access to this page was denied !</h2><br>try to <a href=\"?action=logout\">logout</a> and then login again<br>To turn off this security check, change \$config_check_referer in index.php to FALSE");
       }
    }
    I don't understand php, so what could it need that I forgot to include when compiling apache and PHP?

    Thanks for your help.

  2. #2
    Join Date
    Jan 2008
    Location
    St. John's, NL
    Posts
    2,114
    Quote Originally Posted by jumpinjack View Post
    I have many clients with installations of the script Cutenews, which were working fine previously.

    But after using EasyApache (I wanted to install Zend for ClientExec), I am unable to login to cutenews.

    The error is:

    Code:
    Sorry but your access to this page was denied !
    
    try to logout and then login again
    To turn off this security check, change $config_check_referer in index.php to FALSE
    I've looked in index.php to see what the security check is actually doing, and the php code is:

    Code:
    //----------------------------------
    // Check Referer
    //----------------------------------
    if($config_check_referer == TRUE){
       $self = $_SERVER["SCRIPT_NAME"];
       if($self == ""){ $self = $_SERVER["REDIRECT_URL"]; }
       if($self == ""){ $self = "index.php"; }
    
       if(!eregi("$self",$HTTP_REFERER) and $HTTP_REFERER != ""){
           die("<h2>Sorry but your access to this page was denied !</h2><br>try to <a href=\"?action=logout\">logout</a> and then login again<br>To turn off this security check, change \$config_check_referer in index.php to FALSE");
       }
    }
    I don't understand php, so what could it need that I forgot to include when compiling apache and PHP?

    Thanks for your help.
    Assuming you are using WHM, use "PHP Configuration Editor" and try setting "register_globals" to "On" and see if that helps. If I recall correctly, $HTTP_REFERER itself is only set in this case.

    Note: You have to switch to "Advanced Mode" to see this option, I believe.
    Cpanel/WHM PHP Perl Ruby Full Time Support
    LCWSoft - Canada web hosting (based in Newfoundland) since 2007
    Servers based in the US and Canada (Uptime Report)

  3. #3
    Thank you very much larwilliams!

    You are the man. You rock!!!


Posting Permissions

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