下载 phpStudy 2018 版本
http://phpstudy.php.cn/wenda/406.html
选择的运行版本为:php-5.6.27-nts + Nginx
vhosts-ini 文件内容:
# CI框架项目
server {
listen 80;
server_name wx_dev.xxx.com;
root "D:\php\PhpStormProjects\jianbao\wx";
index index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
php.ini 配置:
## 上传文件 ##
upload_max_filesize 300M post_max_size 350M memory_limit 400M max_execution_time 600 max_input_time 600
## 时区 ##
date.timezone = Asia/Shanghai
## 获取原始post表单数据 ##
always_populate_raw_post_data = -1
## 设置 错误信息日志 保存路径 ##
error_reporting = E_ALL display_errors = On error_log = D:\php\logs\php_error.log
php里面也可设置:
error_reporting(1);
ini_set('display_errors', 1);
## redis 客户端 ##
安装参考: phpStudy套件:Windows 7 + PHP 5.6 + Redis
extension=php_igbinary.dll extension=php_redis.dll