![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
w-serendipity
这个作者很懒,什么都没留下…
展开
-
php项目打开提示“服务器不支持 PHP 的 Curl 模块”
php5.6.40项目环境配置完成后,浏览器打开提示如下信息经过查找后发现编译的时候缺少了curl模块。1、执行wget https://curl.se/download/curl-7.49.1.tar.bz2拉取curl压缩包2、执行tar jxvf curl-7.49.1.tar.bz2解压,解压完成后cd curl-7.49.1/进入可以看到如下内容3、然后进行编译,./configure --prefix=/opt/curl/,make,sudo make install,prefix后的原创 2022-02-11 14:23:09 · 775 阅读 · 0 评论 -
PHP通过更改配置文件输出错误日志
首先找到php.ini配置文件,通过apt安装的在/etc/php/7.2/cli/php.ini找到display_errors(显示错误信息)的配置项,默认为On打开状态,此处关闭设为Off即可。此时页面程序出错页面不会出现报错信息,即关闭了调试模式找到log_errors(在日志文件记录错误)的配置,默认为Off关闭状态,将此值设为On开启状态然后再找到error_log配置,这里用于指定日志存储路径,默认是注释掉的,解除后将其值filename改为/var/log/php..原创 2022-01-18 18:20:12 · 553 阅读 · 0 评论 -
ubuntu源码安装php5.6.40
配置环境下载源码包: wget https://www.php.net/distributions/php-5.6.40.tar.gz解压缩: sudo tar zxvf php-5.6.40.tar.gz编译:./configure --prefix=/php --with-mysql=mysqlnd --enable-mbstring --enable-fpm --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql-原创 2021-10-27 17:17:13 · 1813 阅读 · 0 评论