Include file won't load ??? PHP - Apache2 AH00035 error

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
pizzipie
New php-forum User
New php-forum User
Posts: 19
Joined: Sun Aug 04, 2019 4:10 pm

Sun Dec 15, 2019 12:45 pm

Hi,

I don't know what happened because my program was running fine and then I started getting this error. I don't have a clue as to how to fix it . I think it has something to do with Apache2 and PHP interface???? The code (partial) that this happened on is as follows:

Code: Select all

<?php
error_reporting (E_ALL ^ E_NOTICE);
//set_include_path('/home/rick/DB-sql/include' );
//include('myPhpFunctions.inc');  
include('/home/rick/DB-sql/myPhpFunctions.inc');          // contains check_input())

$rows=array();

   class MyDB extends SQLite3 {
      function __construct() {
         $this->open('linuxQuest.db');
      }
   }
   $db = new MyDB();
   if(!$db) {
      echo $db->lastErrorMsg();
   } else {
      echo "Opened database successfully\n";  
}

   $sql =<<<EOF
      SELECT * from query4;    // Costs is a view Table in the database   
EOF;

?>
[Sun Dec 15 13:29:24.261040 2019] [core:error] [pid 1346] (13)Permission denied: [client 127.0.0.1:37806] AH00035: access to /include/index.htm denied (filesystem path '/var/www/html/DB-sql/include/index.htm') because search permissions are missing on a component of the path
Post Reply