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

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

by
pizzipie
from LinuxQuestions.org on (#4WMZ6)
Hi,

I don't know what happened because my program was running fine multiple times over several days 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:
<?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;

?>When this runs the RESULT is this ERROR.

Quote:

[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
latest?d=yIl2AUoC8zA latest?i=I74gVVzN0xQ:5yOSnmUX2eY:F7zBnMy latest?i=I74gVVzN0xQ:5yOSnmUX2eY:V_sGLiP latest?d=qj6IDK7rITs latest?i=I74gVVzN0xQ:5yOSnmUX2eY:gIN9vFwI74gVVzN0xQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments