title: Install PHP 7.2 on Centos 7
body: <p>I following this <a href="https://www.rosehosting.com/blog/how-to-install-php-7-2-on-centos-7/" rel="nofollow noreferrer">link</a> to upgrade my php from 5.6 to 7.2
  and its successfully installed</p>
  
  <pre><code>PHP 7.2.14 (cli) (built: Jan  8 2019 12:06:12) ( NTS )
  Copyright (c) 1997-2018 The PHP Group
  Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
      with Zend OPcache v7.2.14, Copyright (c) 1999-2018, by Zend Technologies
  </code></pre>
  
  <p>here my httpd </p>
  
  <pre><code>Server version: Apache/2.4.6 (CentOS)
  Server built:   Nov  5 2018 01:47:09
  </code></pre>
  
  <p>after trying to phpinfo() I got apache doesn't works. <strong>Its produce php code rather than compiling.</strong> </p>
  
  <p>I check my httpd.conf, there are no LoadModule for php7Module. So I add LoadModule as bellow</p>
  
  <pre><code>LoadModule php7_module modules/libphp7.so
  &lt;FilesMatch \.php$&gt;
      SetHandler application/x-httpd-php
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>and checking libphp7.so and guess what, there are no <code>libphp7.so</code> at modules directory. </p>
  
  <p>However, I still figuring out what I miss. I install bellow dependencies</p>
  
  <blockquote>
    <p>php72 php72-php-fpm php72-php-mysqlnd php72-php-opcache php72-php-xml
    php72-php-xmlrpc php72-php-gd php72-php-mbstring php72-php-json</p>
  </blockquote>
  
  <p>Ps. I running <code>CentOS Linux release 7.6.1810 (Core)</code></p>
  
  <p><strong>Update 1</strong></p>
  
  <pre><code>getsebool -a | egrep 'cgi|builtin_scriptin'
  httpd_builtin_scripting --&gt; on
  httpd_enable_cgi --&gt; on
  </code></pre>
  
  <p>I think that <em>PHP isn't enabled in Apache.</em> How to make it works?</p>