CodeCodeStudy's recent timeline updates
CodeCodeStudy

CodeCodeStudy

V2EX member #460762, joined on 2019-12-23 09:33:41 +08:00
Today's activity rank 1420
CodeCodeStudy's recent replies
上面的 php -i | grep Configure 写错了,应该是 php -i | grep Configuration
不知道能不能抵御漏洞,反正重新编译后的 PHP 5.4 能正常运行
./configure 的时候配置到其他目录,比如 --prefix=/www/server/php/54-patch ,那么日志等会写入到这个目录里,启动的时候会报错,会写入到 /www/server/php/54-patch/var/log/slow.log ,中间目录不存在。
而且通过 phpinfo 看到
extension_dir /www/server/php/54-patch/lib/php/extensions/no-debug-non-zts-20100525
include_path .:/www/server/php/54-patch/lib/php

所以还是直接 --prefix=/www/server/php/54 即可,在 make install 直接备份原目录并停止旧的 PHP-FPM 进程
第 3 步的 php -i | grep Configure 的输出是 Configure Command => './configure' '--prefix=/www/server/php/54' '--with-config-file-path=/www/server/php/54/etc' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-iconv-dir' '--with-freetype-dir=/usr/local/freetype' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl=/usr/local/curl' '--enable-mbregex' '--enable-mbstring' '--with-mcrypt' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl=/usr/local/openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--with-gettext' '--disable-fileinfo' '--enable-intl' '--build=arm-linux'

带有引号的,复制到 AI 对话框里,让 AI 处理一下就好
5h 30m ago
Replied to a topic by loserc6 › PHP › PHP 最新零日漏洞怎么没人讨论
7.3 及以下版本怎么办,项目里还有大量是 5.X 的版本
7 days ago
Replied to a topic by v2er119 › 程序员 › DeepSeek 服务器暂时不可用
阿里千问经常要拖动滑块验证
是不是钱多没处花?搞一个开源版的 sublime text ,界面要高度一致
没挣到钱,做那么多有什么用
支持哪些编程语言?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5234 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 69a29122 · 36ms · UTC 09:28 · PVG 17:28 · LAX 02:28 · JFK 05:28
♥ Do have faith in what you're doing.