PHP не работает CentOS 8
go to /etc/httpd/conf/httpd.conf
then locate:
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
change it to:
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
and restart apache http server with
sudo systemctl restart httpd
Vonor22