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

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
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


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

error_reporting (E_ALL ^ E_NOTICE);
//set_include_path('/home/rick/DB-sql/include' );
include('/home/rick/DB-sql/');          // contains check_input())


   class MyDB extends SQLite3 {
      function __construct() {
   $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   

[Sun Dec 15 13:29:24.261040 2019] [core:error] [pid 1346] (13)Permission denied: [client] 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