497
个编辑
更改
无编辑摘要
# 进入/usr/src/php目录下,编译php
[root@localhost php] ./configure --prefix=/usr/local/php82 \
# 如发生报错:WERE NOT MET: NO PACKAGE ‘SQLITE3’ FOUND
则运行:yum install sqlite-devel
# make && make install
[root@localhost php] make && make install
# 复制移动配置文件:
[root@localhost php] cp /usr/src/php/php.ini-development /usr/local/php7/lib/php.ini