The website’s configuration prevents you from accessing this page

Username (nuengsell.epizy.com) or Website URL

(please specify the website or account you are asking about)

Error Message

(The website’s configuration prevents you from accessing this page)

Other Information

(other information and details relevant to your question)

Which page?

2 Likes

I think his problem is if he clicks on the website he will redirected to an error page, after logging-in.

Try correcting this line of code and this php file links, and by changing the php file permission into 644.

1 Like

i dont see my file on url http://nuengmamipoko.epizy.com/modules/service/Service/

Make sure you’ve uploaded your website files and folders in the htdocs folder.

I see file on file manager

Oh your file exists but it isn’t accessible to the public which should be recommended:
http://nuengmamipoko.epizy.com/modules/service/Service/service.php

The Error 403 is normal, that just means that the public is not allowed to access your service.php file but will be accessible just to you and your site only.

2 Likes

All php files must be set the permission/chmod to 644.

how i can do I need access to the public

Rename it to something that doesn’t contain service as name?

All file set the permission to 644 but it not work

You also need to check the 2 boxes at the bottom for the public.

No because name

Sorry but What you are trying to do?

You should make/create a index.php to hide that directory listing.

i make index.php on driectory is work
if i make product.php is not work
how i can do ?

Then rename the product.php to index.php. But make sure that there is a html open and close tags inside your product.php, you know.

I think I know what you’ve done wrong. The index.php is working because you typed

/index.php

at the end whereas on the other one you didn’t type up /myscript.php at the end.

my dont have html tag

 <?php
 include_once '../../../../conn.php';
 $columns = array('cus_id', 'cus_fname','cus_lname','cus_phone','cus_address');
 //$sql = "SELECT * FROM tbl_sample ORDER BY id DESC OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY ";
 $sql = "SELECT * FROM tb_customer ";

 


 if(isset($_POST["search"]["value"]))
 {
   
    
    
    $sql .= ' WHERE cus_fname LIKE "%'.$_POST["search"]["value"].'%" 
    OR cus_lname LIKE "%'.$_POST["search"]["value"].'%"
    OR cus_car_number LIKE "%'.$_POST["search"]["value"].'%"
    OR cus_id LIKE "%'.$_POST["search"]["value"].'%"
    
    ';

 }

 if(isset($_POST["order"]))
{
 $sql .= 'ORDER BY '.$columns[$_POST['order']['0']['column']].' '.$_POST['order']['0']['dir'].' 
 ';
}
else
{
 $sql .= 'ORDER BY cus_id DESC ';
}



$qry =" ";
 if($_POST["length"] != -1)
{
 $qry = 'LIMIT ' . $_POST['start'] . ', ' . $_POST['length'];
 //$qry = ' OFFSET '. $_POST['start'].' ROWS FETCH NEXT ' . $_POST['length'].' ROWS ONLY';
}

$total_count = 0;
$total_count = mysqli_num_rows(mysqli_query($connect, $sql));


 
 $result = mysqli_query($connect, $sql . $qry);
 $data = array();
if ($total_count > 0){
    
    while( $row =  mysqli_fetch_array($result)) {
    
        $sub_array = array();
        $sub_array[] = $row["cus_id"];
        $sub_array[] = $row["cus_fname"].' '.$row["cus_lname"];
        $sub_array[] = $row["cus_car_number"];

        $sub_array[] = '
                        <a href="#" data-code="'.$row["cus_id"].'"  data-Name="'.$row["cus_fname"].' '.$row["cus_lname"].'" class="btn btn-pill btn-primary select_customer" data-toggle="tooltip" title="Select"><i class="fas fa-hand-point-up"></i></a> 
                       ';
       
        $data[] = $sub_array;
    
    }
}
else{

        $sub_array = array();
        $sub_array[] = " ";
        $sub_array[] = " ";
        $sub_array[] = " ";
        $sub_array[] = " ";
       
      
       
        $data[] = $sub_array;


}




$output = array(
    "draw"    => intval($_POST["draw"]),
    "recordsTotal"  =>  $total_count,
    "recordsFiltered" => $total_count,
    "data"    => $data
   );

echo json_encode($output);

?>