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
|