$ cd /usr/src/ $ wget http://cn2.php.net/distributions/php-7.0.2.tar.gz $ tar -xzxvf php-7.0.2.tar.gz $ cd php-7.0.2
报错 Cannot find OpenSSL's <evp.h> 执行 yum install openssl openssl-devel 报错 Please reinstall the libcurl distribution 执行 yum -y install curl-devel 错误 jpeglib.h not found 执行 yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y 和执行 yum install libjpeg-devel 错误:checking for BZip2 in default path... not found configure: error: Please reinstall the BZip2 distribution 这是bzip2软件包没有安装 执行 yum install bzip2-devel.x86_64 -y 错误:configure: error: xpm.h not found. 执行 yum install libXpm-devel 错误: Unable to locate gmp.h 执行 yum install gmp-devel 错误:Unable to detect ICU prefix or /usr//bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works 执行 yum install -y icu libicu libicu-devel 错误:mcrypt.h not found. Please reinstall libmcrypt. 执行 yum install php-mcrypt libmcrypt libmcrypt-devel 错误: configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path 执行 yum install postgresql-devel 错误: configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution 执行 yum install libxslt-devel
make clean && make && make install
cp php.ini-development /usr/local/php/lib/php.ini
PATH=$PATH:/usr/local/php/bin export PATH
source /etc/profile
php -v
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf cp /usr/src/php-7.0.2/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm chmod +x /etc/init.d/php-fpm
/etc/init.d/php-fpm start
groupadd www-data useradd -g www-data www-data
/etc/init.d/php-fpm restart
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有