Stopping httpd: [ OK ]
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
[FAILED]
I actually installed PHP 7 so the file /etc/httpd/modules in php.conf should be:
libphp5.so
Apache still won't start:
Stopping httpd: [ OK ]
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: Can't locate API module structure `php5_module' in file /etc/httpd/modules/libphp7.so: /etc/httpd/modules/libphp7.so: undefined symbol: php5_module
[FAILED]
Solution
Look carefully at the whole "Load" line to make sure it makes sense.
LoadModule php5_module modules/libphp7.so
Although I updated the line to say libphp7.so I didn't notice the "Load Module php5_module" so you have to update it the final solution is this:
LoadModule php7_module modules/libphp7.so
syntax, etc, httpd, conf, php, modules, libphp, server, directstopping, ok, directory, installed, apache, locate, api, module, _module, undefined, quot, loadmodule, updated, didn, update,