Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: cannot open shared object file: No such file or directory
This is basically caused by the PHP module specified in php.conf being non existent. The error tells us it couldn't fnd /etc/httpd/modules/libphp5.so
OK let's see what PHP module we do have:
ls /etc/httpd/modules/libphp*
/etc/httpd/modules/libphp7-zts.so /etc/httpd/modules/libphp7.so
If you have one there that works for you then just update php.conf to match.
sed -i s/"libphp5.so"/"libphp7.so"/g /etc/httpd/conf.d/php.conf
sed -i s/"php5_module"/"php7_module"/g /etc/httpd/conf.d/php.conf
httpd, syntax, etc, conf, php, modules, libphp, server, directory, module, specified, existent, couldn, fnd, ok, ls, zts, update, sed, quot, _module,