I've installed PHP 7.2.11
on my CentOS 7 VPS along with Apache; however, I can't seem to load the PHP module into Apache so that my server can serve PHP content.
Right now, if I go to a URL that should serve PHP content, it's just displays the plain PHP code.
My httpd.conf
looks for modules under /etc/httpd/conf.modules.d
. In that directory, 15-php.conf
has the following statement to load the required PHP module for Apache:
LoadModule php7_module modules/libphp7.so
Naturally, I restarted httpd
to have it acknowledge the changes but with no luck.
What am I seem to be missing?
httpd.conf
or into the php module file? @RuiFRibeiro