wnpmx? windows+ngix+php+mysql+xdebug 做网站要用到 php 自己动手做了一下配置,算是个流水账; 0:首先把php,nginx,mysql,xdebug下载回来,把 xdebug.dll 放到 ext 目录里。 1:修改nginx config 文件 http {fastcgi_connect_timeout 300;fastcgi_send_time
wnpmx? windows+ngix+php+mysql+xdebug
做网站要用到 php 自己动手做了一下配置,算是个流水账;
0:首先把php,nginx,mysql,xdebug下载回来,把 xdebug.dll 放到 ext 目录里。
1:修改nginx config 文件
http { fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; client_header_buffer_size 16k; large_client_header_buffers 4 64k; proxy_buffer_size 16k; proxy_buffers 4 16k; fastcgi_buffer_size 32k; fastcgi_buffers 8 32k; server { log_format hms1 '$remote_addr - $remote_user [$time_local] "$request" localDirectory $request_filename' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $http_x_forwarded_for'; log_format hms '"$fastcgi_script_name"'; autoindex_localtime on; autoindex on; index index.php index.html index.htm; listen 8088; location / { root D:/qq;#可以指定你的web目录 index index.php index.html index.htm; autoindex on; #是否显示目录 } location ~ \.php$ { log_format www.zjs.com.php $fastcgi_script_name; access_log logs/zjs.log www.zjs.com.php; fastcgi_pass 127.0.0.1:9001; #fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME D:/qq/$fastcgi_script_name; include fastcgi_params; } #server_name hmsbeta1.qunar.com hmsbeta1.qunarman.com; server_name me.qunarman.com #error_page 404 = 200 /empty.gif; error_page 404 = @notfound; } }
2:修改php.ini 使其支持 xdebug
zend_extension = "D:\qzz\trunk\windows\php\ext\php_xdebug-2.2.1-5.4-vc9.dll" xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=127.0.0.1 xdebug.remote_port=9002
3: 启动nginx:start nginx.ext
4: 启动fastcgi:php-cgi.exe -b 127.0.0.1:9001
5:mysql 就不用唠叨了安装就行了
注意点:折腾 xdebug 搞了好一会儿,最后才明白没有下载好正确的版本;网上本一下,有一个方法,把自己 phpinfo 吐到网页上的源码全 copy,然后到 http://xdebug.org/wizard.php;把源码放进这个文本域里提交,自动出现一个下载地址;下载就ok了。
原文地址:wnpmx 配置小记, 感谢原作者分享。

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

Atom编辑器mac版下载
最流行的的开源编辑器

SecLists
SecLists是最终安全测试人员的伙伴。它是一个包含各种类型列表的集合,这些列表在安全评估过程中经常使用,都在一个地方。SecLists通过方便地提供安全测试人员可能需要的所有列表,帮助提高安全测试的效率和生产力。列表类型包括用户名、密码、URL、模糊测试有效载荷、敏感数据模式、Web shell等等。测试人员只需将此存储库拉到新的测试机上,他就可以访问到所需的每种类型的列表。

DVWA
Damn Vulnerable Web App (DVWA) 是一个PHP/MySQL的Web应用程序,非常容易受到攻击。它的主要目标是成为安全专业人员在合法环境中测试自己的技能和工具的辅助工具,帮助Web开发人员更好地理解保护Web应用程序的过程,并帮助教师/学生在课堂环境中教授/学习Web应用程序安全。DVWA的目标是通过简单直接的界面练习一些最常见的Web漏洞,难度各不相同。请注意,该软件中

SublimeText3 Linux新版
SublimeText3 Linux最新版

EditPlus 中文破解版
体积小,语法高亮,不支持代码提示功能