通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
[TOC] > [window-php-所有版本下载](https://windows.php.net/downloads/releases/archives/) > [window-pecl 所有包的下载列表](https://windows.php.net/downloads/pecl/releases/) ## 安装 ubuntu ``` apt-get install software-properties-common add-apt-repository ppa:ondrej/php apt-get update apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-gd php7.4-mbstring service php7.4-fpm start php -v ``` ## 快速查看 ini 所指向文件 方法一: 在 `phpinfo();`中查看 `Configuration File (php.ini) Path | /etc` 方法二: 在 `php --ini` 中查看 ## 查看已经编译版本编译信息 `./php -i | grep Configure` ## 查看 with-config-file-scan-dir 的位置 ``` > php --ini | grep Scan | cut -d" " -f7 ``` ## 进入 php 命令行 执行 `php -a` ## 开启端口 ``` > php -S 127.0.0.1:8000 > php -S 127.0.0.1:8000 -t foo/ ``` ## 如何判断php的版本位数 去`phpinfo()` 找 `Architecture` ## 如何判断PHP 是ts还是nts版的 `phpinfo(`)的 `Thread Safety` 项,`enabled`,一般来说应该是`ts`版,否则是`nts`版。 >`Non Thread Safe`就是非线程安全,在执行时不进行线程(Thread)安全检查; `Non Thread Safe` 是线程安全,执行时会进行线程(Thread)安全检查,以防止有新要求就启动新线程的 CGI 执行方式而耗尽系统资源; ## php 命令行能加载 curl,apche 不行 **调试** 如果确定缺少什么文件通过 git 的命令命令行 ldd ``` ldd php_curl.dll | grep /d/ php_curl.dll => /d/r/php/ext/php_curl.dll (0x7ffef8940000) libssh2.dll => /d/Program Files (x86)/php-8.2.9-Win32-vs16-x64/libssh2.dll (0x7ffeeef90000) nghttp2.dll => /d/Program Files (x86)/php-8.2.9-Win32-vs16-x64/nghttp2.dll (0x7fff109a0000) ``` 即可直接该模块的依赖 方式一: 在 httpd.conf 中添加 ``` LoadFile "../php/libcrypto-1_1-x64.dll" LoadFile "../php/libssh2.dll " ``` 方式二: 直接把文件拖入 `httpd/bin/` 下