CentOS_7.2编译安装PHP_5.6.20添加扩展模块
成都创新互联专注于网站建设,为客户提供成都网站设计、做网站、成都外贸网站建设公司、网页设计开发服务,多年建网站服务经验,各类网站都可以开发,品牌网站制作,公司官网,公司展示网站,网站设计,建网站费用,建网站多少钱,价格优惠,收费合理。添加ZendGuardLoader扩展:
# 解压ZendGuardLoader.so到"/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/"目录内
chmod a+x /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/ZendGuardLoader.so vim /etc/php.ini
# 添加 [ZendGuardLoader] extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/ZendGuardLoader.so"zend_loader.enable = 1zend_loader.disable_licensing = 0zend_loader.obfuscation_level_support = 3
service php-fpm restart
添加Redis扩展:
tar zxvf phpredis-2.2.7.tgz rm -rvf package.xml mv redis-2.2.7/ /usr/local/php/include/php/ext/redis/cd /usr/local/php/include/php/ext/redis/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make make install
vim /etc/php.ini
=
service php-fpm restart
添加MemCache扩展:
tar zxvf phpmemcache-3.0.8.tgz rm -rvf package.xml mv memcache-3.0.8/ /usr/local/php/include/php/ext/memcache/cd /usr/local/php/include/php/ext/memcache/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make make install
vim /etc/php.ini
=
service php-fpm restart
添加MemCached扩展:
tar zxvf phpmemcached-2.2.0.tgz rm -rvf package.xml mv memcached-2.2.0/ /usr/local/php/include/php/ext/memcached/cd /usr/local/php/include/php/ext/memcached/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-libmemcached-dir=/usr/local/libmemcached/ --enable-memcached make make install
vim /etc/php.ini
# 添加 [MemCached] extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/memcached.so"
service php-fpm restart
添加Imagick扩展:
tar zxvf phpimagick-3.4.0.tgz rm -rvf package.xml mv imagick-3.4.0/ /usr/local/php/include/php/ext/imagick/cd /usr/local/php/include/php/ext/imagick/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local/p_w_picpathmagick make make install
vim /etc/php.ini
# 添加 [Imagick] extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/imagick.so"
service php-fpm restart
添加Xcache扩展:
tar zxvf phpxcache-3.2.0.tar.gz mv xcache-3.2.0/ /usr/local/php/include/php/ext/xcache cd /usr/local/php/include/php/ext/xcache/usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --enable-xcache --enable-xcache-coverager --enable-xcache-optimizer make make install
mkdir -p /home/xcache touch /home/xcache/xcache chmod 777 /home/xcache/xcache echo -n "xcache-Passw0rd!" | md5sum cp -r /usr/local/php/include/php/ext/xcache/htdocs/ /home/www/html/xcache chown www:www -R /home/www/html/xcache/
vim /etc/php.ini
# 添加 [Xcache] extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/xcache.so"xcache.shm_scheme = "mmap"xcache.size = 26M xcache.count = 5 xcache.slots = 8K xcache.ttl = 3600xcache.gc_interval = 300xcache.var_size = 4M xcache.var_count = 5 xcache.var_slots = 8K xcache.var_ttl = 0xcache.var_maxttl = 0xcache.var_gc_interval = 300xcache.test = Off xcache.readonly_protection = Off xcache.mmap_path = "/home/xcache/xcache"xcache.coredump_directory = ""xcache.cacher = On xcache.stat = On xcache.optimizer = Off [xcache.admin] xcache.admin.enable_auth = On xcache.admin.user = "admin"xcache.admin.pass = "42ddb5e3f0dc3c4807a2b0c62b8d4d87"[xcache.coverager] xcache.coverager = Off xcache.coverager_autostart = On xcache.coveragedump_directory = ""
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
售后响应及时
7×24小时客服热线数据备份
更安全、更高效、更稳定价格公道精准
项目经理精准报价不弄虚作假合作无风险
重合同讲信誉,无效全额退款