 |
|
CodeCodeStudy
V2EX member #460762, joined on 2019-12-23 09:33:41 +08:00Today'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 处理一下就好
7.3 及以下版本怎么办,项目里还有大量是 5.X 的版本
是不是钱多没处花?搞一个开源版的 sublime text ,界面要高度一致