Task: 2026-05-01-fm-diagnose-002.txt
Status: success
Time: 2026-05-01T11:45:31Z
Summary: The web server is responding but returning 404 File Not Found. This is because /var/www/html/ is completely empty. The PHP web application 'Finance Manager' does not exist in the document root. Furthermore, writing test files to the directory and reading the Apache error log fail due to insufficient permissions (Permission denied) for the current user.

## Step 1 — PHP handler
bash: line 1: /var/www/html/test_php.php: Permission denied
Body:
File not found.

Status:
404

## Step 2 — db.php probe
bash: line 1: /var/www/html/db_test.php: Permission denied
Body:
File not found.

Status:
404

## Step 3 — PHP extensions


Core
PDO
Phar
Reflection
SPL
SimpleXML
Zend OPcache
Zend OPcache
[PHP Modules]
[Zend Modules]
bz2
calendar
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
pdo_mysql
pdo_sqlite
random
readline
session
sockets
sodium
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
zlib


## Step 4 — Apache error log
tail: cannot open '/var/log/apache2/error.log' for reading: No such file or directory
tail: cannot open '/var/log/httpd/error_log' for reading: Permission denied
NO LOG FOUND


## Step 5 — Finance Manager curl
* Host localhost:80 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying [::1]:80...
* Connected to localhost (::1) port 80
* using HTTP/1.x
> GET /index.php HTTP/1.1
> Host: localhost
> User-Agent: curl/8.15.0
> Accept: */*
> 
* Request completely sent off
< HTTP/1.1 404 Not Found
< Date: Fri, 01 May 2026 11:45:31 GMT
< Server: Apache/2.4.66 (Fedora Linux)
< X-Powered-By: PHP/8.4.20
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
< 
{ [27 bytes data]
100    16    0    16    0     0   3832      0 --:--:-- --:--:-- --:--:--  4000
* Connection #0 to host localhost left intact
File not found.


## Step 6 — File listing
total 8
drwxr-xr-x. 2 root root 4096 Dec  9 00:00 .
drwxr-xr-x. 4 root root 4096 Apr 15 15:40 ..


