php7编译后没有libphp7.so?

编译参数 ./configure --prefix=/usr/local/php7 --enable-fpm --with-mysqli --with…
关注者
7
被浏览
38,617

4 个回答

1.检查configure是不是缺少一个 --with-apxs2 ,添加一下

2.然后确认apache2配置文件:apache2.conf或者httpd.conf,配置文件一般在/etc/apache2/...下,中是否含有以下配置:

<FilesMatch \.php$>

SetHandler application/x-httpd-php

</FilesMatch>

如果有,则进行第3不,不然添加一下

3.重新 ./configure + 参数 make make install 重新安装安装一下,记得加--with-apxs2.