近日在ubuntu11.04server版上编译php的时候出现了错误,错误截图如下:
You've configured multiple SAPIs to be build.You can build only oneSAPI module and CLI binary at the sametime.(你已经配置了多个SAPIs,在同意世纪爱你,你只可以建立一个SAPI模块和一个CLI binary。)
![关于php编译时SAPI错误 关于php编译时SAPI错误](https://i-blog.csdnimg.cn/blog_migrate/107387d40a96d9397db87d0d38f320f2.jpeg)
You've configured multiple SAPIs to be build.You can build only oneSAPI module and CLI binary at the sametime.(你已经配置了多个SAPIs,在同意世纪爱你,你只可以建立一个SAPI模块和一个CLI binary。)
导致的原因是我的配置参数中同时使用了--enable-fpm 与--with-apxs2=,因此编译的时候出错了,去掉其中的任意一个参数编译成功。
这是我的解决方法,如果其他人有同样的问题,不一样的解决方法,麻烦贴出来。