首頁 php教程 php手册 wnpmx 配置小记

wnpmx 配置小记

Jun 06, 2016 pm 08:07 PM
配置

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了。

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
2 週前 By 尊渡假赌尊渡假赌尊渡假赌
倉庫:如何復興隊友
4 週前 By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island冒險:如何獲得巨型種子
3 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

在PyCharm中如何設定Git配置 在PyCharm中如何設定Git配置 Feb 20, 2024 am 09:47 AM

在PyCharm中如何設定Git配置

Linux系統中GDM的工作原理及配置方法 Linux系統中GDM的工作原理及配置方法 Mar 01, 2024 pm 06:36 PM

Linux系統中GDM的工作原理及配置方法

PyCharm與PyTorch完美結合:安裝設定步驟詳解 PyCharm與PyTorch完美結合:安裝設定步驟詳解 Feb 21, 2024 pm 12:00 PM

PyCharm與PyTorch完美結合:安裝設定步驟詳解

了解Linux Bashrc:功能、設定與使用方法 了解Linux Bashrc:功能、設定與使用方法 Mar 20, 2024 pm 03:30 PM

了解Linux Bashrc:功能、設定與使用方法

避免Maven環境配置常見錯誤:解決配置問題 避免Maven環境配置常見錯誤:解決配置問題 Feb 19, 2024 pm 04:56 PM

避免Maven環境配置常見錯誤:解決配置問題

簡單易懂的PyCharm設定Git教學 簡單易懂的PyCharm設定Git教學 Feb 20, 2024 am 08:28 AM

簡單易懂的PyCharm設定Git教學

MyBatis Generator配置參數解讀及最佳實踐 MyBatis Generator配置參數解讀及最佳實踐 Feb 23, 2024 am 09:51 AM

MyBatis Generator配置參數解讀及最佳實踐

win11系統如何配置工作小組 win11系統如何配置工作小組 Feb 22, 2024 pm 09:50 PM

win11系統如何配置工作小組

See all articles