近来大家对php环境一键装备装置包 php环境一键装置包方面的知识比较关注,今天小编超人快宣我在网络上收集了一些这相关方面的知识来分享给大家,希望能帮到大家哦!
1、进入php源程序目录中的ext目录中,这儿存放着各个扩展模块的源代码,挑选你需要的模块。
2、比方curl模块:cd curl 履行phpize生成编译文件,phpize在PHP装置目录的bin目录下 /usr/local/php5/bin/phpize 运行时,可能会报错:Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.。
3、需要装置autoconf: yum install autoconf RedHat或许CentOS、apt-get install autoconf Ubuntu Linux /usr/local/php5/bin/php -v 履行这个指令时,php会去查看装备文件是否正确,如果有装备过错。
4、这儿会报错,可以依据过错信息去排查!。
以上知识分享完毕,希望对您能有所帮助哦!