基础环境安装详见:NGINX\PHP\MYSQL环境搭建
出现的问题:
cookie被阻止
pluggable.php 法:打开文件 wp-includes/pluggable.php修改 wp_set_auth_cookie 函数。 将setcookie($auth_cookie_name, $auth_cookie, $expire, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, $secure, true); 修改为:setcookie($auth_cookie_name, $auth_cookie, $expire, SITECOOKIEPATH, COOKIE_DOMAIN, $secure, true)
php.ini:
output_buffering=4096
403、404
location / { root D:/web/www; index index.php index.html index.htm; if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } location ~ \.php$ { root D:/web/www; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; i
mysqli警告信息
[Xdebug] zend_extension=php_xdebug-2.4.0-5.6-vc11-x86_64.dll ;xdebug.profiler_enable=on ;xdebug.auto_trace=on xdebug.collect_params=on xdebug.collect_return=on xdebug.show_exception_trace = On xdebug.remote_autostart = On xdebug.remote_enable = On xdebug.remote_host = localhost xdebug.remote_port = 9001 xdebug.collect_vars = On xdebug.remote_mode = req xdebug.remote_handler = dbgp xdebug.idekey = PHPSTORM ;xdebug.profiler_output_dir="d:/web/tmp"