编译安装php-7.1.17及部分扩展
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | . / configure - - prefix = / usr / local / php - 7.1 . 17 - - disable - debug - - enable - shmop - - with - gd - - with - jpeg - dir = / usr / lib64 - - with - png - dir = / usr / lib64 - - with - libxml - dir = / usr / lib64 - - with - zlib - dir = / usr / lib64 - - with - mysqli = mysqlnd - - with - mysql = mysqlnd - - with - pdo - mysql = mysqlnd - - enable - sockets - - enable - mbstring - - enable - mbregex - - enable - ftp - - enable - gd - native - ttf - - enable - fpm - - enable - pcntl - - enable - sysvmsg - - enable - sysvsem - - enable - sysvshm - - enable - zip - - with - curl = / usr / local / curl - - with - iconv = / usr / local / libiconv - - with - freetype - dir = / usr / local / freetype Install php - 7.1 . 17 / ext / pdo_dblib . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config - - with - pdo - dblib = / usr / local / freetds wget http: / / www.unixodbc.org / unixODBC - 2.3 . 4.tar .gz tar zxvf unixODBC - 2.3 . 4.tar .gz . / configure - - prefix = / usr / local / unixODBC - 2.3 . 4 - - enable - threads - - enable - drivers - - enable - driver - conf - - enable - gui = no - - enable - ltdl - install ln - s / usr / local / unixODBC - 2.3 . 4 / usr / local / unixODBC Install php - 7.1 . 17 / ext / pdo_odbc . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config - - with - pdo - odbc = unixODBC, / usr / local / unixODBC Install php - 7.1 . 17.17 / ext / exif . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install php - 7.1 . 17.17 / ext / gettext . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install php - 7.1 . 17.17 / ext / bcmath . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install php - 7.1 . 17.17 / ext / ldap cp - frp / usr / lib64 / libldap * / usr / lib / . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install php - 7.1 . 17.17 / ext / soap . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install php - 7.1 . 17.17 / ext / openssl . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install mongodb - 1.4 . 3 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config yum install boost boost - devel gperf libuuid - devel libuuid Install gearmand - 1.1 . 14 . / configure make && make install Install gearman - 1.1 . 2 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config cp php_gearman.loT php_gearman.lo make && make install Install phpunit - 5.7 . 4 mv phpunit / usr / local / bin / phpunit Install zookeeper - 0.4 . 0 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config - - with - libzookeeper - dir = / usr / local / zookeeper Install imagick - 3.4 . 3 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config - - with - imagick = / usr / local / ImageMagick Install redis - 4.0 . 1 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install mcrypt - 1.0 . 1 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install xdebug - 2.7 . 0alpha1 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install gmagick - 2.0 . 5RC1 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config - - with - gmagick = / usr / local / GraphicsMagick Install pecl - memcache - NON_BLOCKING_IO_php7 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install memcached - 3.0 . 4 https: / / launchpad.net / libmemcached / 1.0 / 1.0 . 18 / + download / libmemcached - 1.0 . 18.tar .gz . / configure - - prefix = / usr / local / libmemcached - 1.0 . 18 make && make install memcached - 3.0 . 4 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config - - with - libmemcached - dir = / usr / local / libmemcached Install phpng - xhprof - master . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install apcu - 5.1 . 11 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config Install yaf - 3.0 . 7 . / configure - - with - php - config = / usr / local / php - 7.1 . 17 / bin / php - config |
php.ini新增
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | extension=apcu.so ;extension=ipquery.so extension=mcrypt.so extension=bcmath.so extension=redis.so extension=memcache.so extension=memcached.so ;extension=apc.so extension=openssl.so ;extension=dba.so ;extension=mongo.so ;extension=memcached.so ;extension=phpwkhtmltox.so extension=pdo_sqlsrv.so extension=sqlsrv.so |
分类:
php相关
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端