Apache缺lessphp模块

我通过yum安装了httpd v2.2.15php v5.5.13 。 当我尝试访问我的网站时,我首先注意到了这个问题,并显示了PHP代码。 然后我发现/etc/httpd/modules没有php模块,所以LoadModule失败。

我怎样才能将php模块添加到Apache? PHP的网站是指从源头上构build它。 不过,我需要通过RPMpipe理这个。 有没有其他方法可以做到这一点?

这里是我安装的httpd RPMs:

 httpd-tools-2.2.15-30.el6.centos.x86_64 httpd-2.2.15-30.el6.centos.x86_64 httpd-devel-2.2.15-30.el6.centos.x86_64 

这里是我安装的PHP RPMs:

 php-xml-5.5.13-2.el6.remi.x86_64 php-pecl-jsonc-1.3.5-1.el6.remi.5.5.x86_64 php-gd-5.5.13-2.el6.remi.x86_64 php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64 php-mbstring-5.5.13-2.el6.remi.x86_64 php-process-5.5.13-2.el6.remi.x86_64 php-cli-5.5.13-2.el6.remi.x86_64 php-common-5.5.13-2.el6.remi.x86_64 php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64 php-pecl-msgpack-0.5.5-4.el6.remi.1.x86_64 php-pgsql-5.5.13-2.el6.remi.x86_64 php-pecl-sqlite-2.0.0-0.4.svn332053.el6.remi.5.5.x86_64 php-mysqlnd-5.5.13-2.el6.remi.x86_64 php-pecl-apcu-4.0.4-1.el6.remi.5.5.x86_64 php-pecl-memcache-3.0.8-2.el6.remi.5.5.x86_64 php-pear-1.9.4-27.el6.remi.noarch php-pdo-5.5.13-2.el6.remi.x86_64 php-pecl-igbinary-1.1.2-0.5.git3b8ab7e.el6.remi.1.x86_64 php-mcrypt-5.5.13-2.el6.remi.x86_64 php-pecl-mongo-1.5.2-1.el6.remi.5.5.x86_64 

如果你只是安装mod_php你会得到正确的包。 记得在之后重启 Apache。