title: Installing PHP on Linux: Cannot load /etc/apache2/modules/libphp5.so into server
body: <p>I've installed PHP with <code>yum install php</code>, after that I've added the following lines in <code>httpd.conf</code></p>
  
  <pre><code>LoadModule php5_module modules/libphp5.so
  ....
  &lt;FilesMatch \.php$&gt;
      SetHandler application/x-httpd-php
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>And after that I've copied <code>libphp5.so</code> to <code>/var/apache2/modules</code>. Then I said <code>/etc/apache2/bin/apachectl -k stop</code> and got the following error.</p>
  
  <blockquote>
    <p>httpd: Syntax error on line 57 of /etc/apache2/conf/httpd.conf: Cannot
    load /etc/apache2/modules/libphp5.so into server:
    /etc/apache2/modules/libphp5.so: undefined symbol: ap_unixd_config</p>
  </blockquote>
  
  <p>Installed PHP version is <code>5.4.41</code>. OS is <code>CentOS Linux release 7.1.1503</code>.</p>
  
  <p>Can someone tell me where the problem is?</p>
  
  <p><strong>UPD</strong> Apache version is 2.4.6 (64-bit), line 57 of httpd.conf is <code>LoadModule php5_module modules/libphp5.so</code></p>