I've installed PHP with yum install php, after that I've added the following lines in httpd.conf
LoadModule php5_module modules/libphp5.so
....
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
And after that I've copied libphp5.so to /var/apache2/modules. Then I said /etc/apache2/bin/apachectl -k stop and got the following error.
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
Installed PHP version is 5.4.41. OS is CentOS Linux release 7.1.1503.
Can someone tell me where the problem is?
UPD Apache version is 2.4.6 (64-bit), line 57 of httpd.conf is LoadModule php5_module modules/libphp5.so