一、问题描述 接手一个项目,使用ThinkPhp3.2.3,在线上环境( Centos7.4 + Nginx1.14 + MySQL5.7 + PHP7.2.4 )运行没有问题,在本地环境( phpStudy 集成开发环境 Windows7 (64位) + Apache + MySQL5.7.17 ...
分类:
其他好文 时间:
2018-12-12 11:19:48
阅读次数:
411
1、安装ApacheWeb服务器终端:sudoapt-getinstallapache2apache2-doc测试:浏览器地址栏输入,http://localhost/2、安装PHP7.0和Apache的php模块终端:sudoapt-getinstallphp7.0libapache2-mod-php7.0重启apache2服务使php模块生效:sudoserviceapache2restart
分类:
系统相关 时间:
2018-12-11 00:43:17
阅读次数:
537
项目中用到的。需要将webp格式的图片转换为普通格式的图片。方便在所有的浏览器中正常显示。项目中使用到了imagemagic这个库。安装好以后,看下是否支持webp格式,支持的话转换起来就很简单了。直接使用以下代码即可:publicstaticfunctionconvertWebpToJpeg(string$localFile):?string{$imageMagic=new\Imagick();
分类:
Web程序 时间:
2018-12-10 11:46:09
阅读次数:
328
1. apt -y install software-properties-common apt-transport-https lsb-release ca-certificates 2. add-apt-repository ppa:ondrej/php 3. apt update 4. apt ...
分类:
Web程序 时间:
2018-12-08 13:24:56
阅读次数:
782
报着个错的原因是 最近把一个项目从php5.6升级到了php7 报如下错误: Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;nusoa ...
分类:
Web程序 时间:
2018-12-07 20:49:35
阅读次数:
216
1. 从https://pecl.php.net/package/mongodb官网下载压缩包(不懂事的我下载了1.5.1版本) 2. 解压安装包 3. 进入解压目录 运行phpize命令 4. 编译扩展 5. 编辑etc/php.ini 添加下面一行 6. 查看phpinfo()输出,可以看到已经 ...
分类:
数据库 时间:
2018-12-05 20:36:33
阅读次数:
704
1.安装redis服务器 下载redis服务器: wget http://download.redis.io/releases/redis-5.0.2.tar.gz 解压:tar -zxvf redis-5.0.2.tar.gz 进入目录:cd redis-5.0.2 安装: make && mak ...
分类:
其他好文 时间:
2018-12-03 11:13:49
阅读次数:
236
当前使用的是宝塔工具,PHP版本是7.2,据说只有7.1以下的版本才会默认安装了mcrypt功能。 所以的7.2的安装如下: ...
分类:
Web程序 时间:
2018-12-02 22:43:40
阅读次数:
330
之前一直在用php7.2的版本,最近由于项目需要,就切换成5.6版本,但是开启时报错丢失MSVCR110.dll文件 附图: 就是缺少这样的dll文件,是没有安装Visual C++ Redistributable for Visual Studio 2012 所以我们就要去下载,下载地址: htt ...
分类:
Web程序 时间:
2018-11-30 13:58:40
阅读次数:
410
今天来整理下netcore在linux(ubuntu)上的运行环境搭建 对应版本 ubuntu 16.04 .net core 2.1 nginx version: nginx/1.10.3 (Ubuntu) supervisor 【.NetCore学习】ubuntu16.04 搭建.net cor ...
分类:
Web程序 时间:
2018-11-30 11:22:40
阅读次数:
289