Apache don't read php files. I got:
Not Found
The requested URL /index.php was not found on this server.
The file exist, permissions are ok. Server read from user directiories, html files works ok.
PS. Default instalation don't set right ports for apache...
/etc/httpd/logs/error_log
[Thu Jul 11 19:36:36.826031 2019] [mpm_prefork:notice] [pid 5158] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Thu Jul 11 19:36:36.826045 2019] [core:notice] [pid 5158] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Jul 11 19:40:58.587454 2019] [autoindex:error] [pid 5159] [client 127.0.0.1:38370] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
[Thu Jul 11 19:41:49.077536 2019] [autoindex:error] [pid 5161] [client 127.0.0.1:38386] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
I don't know, why it want generate server directory index, but i have index.php at user directory, which I want set up. when i put index.html all works ok, but I can't run any php no matter that it is index or other file