国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Table of Contents
Win7 64位 php-5.5.13+Apache 2.4.9+mysql-5.6.19 配置,win7php-5.5.13
VC9 and VC11
64位win7下怎配置Apache+MySQL+PHP
win7 64Bit 配置php 64位+apache 64位 有沒人可以搞定??
Home php教程 php手冊 Win7 64位 php-5.5.13+Apache 2.4.9+mysql-5.6.19 配置,win7php-5.5.13

Win7 64位 php-5.5.13+Apache 2.4.9+mysql-5.6.19 配置,win7php-5.5.13

Jun 13, 2016 am 09:27 AM

Win7 64位 php-5.5.13+Apache 2.4.9+mysql-5.6.19 配置,win7php-5.5.13

一?:準備階段

1:php

php-5.5.13下載鏈接:http://windows.php.net/downloads/releases/php-5.5.13-Win32-VC11-x64.zip

推薦 Thread Safe(線程安全)?V11 x64,也就是64bit的。

現(xiàn)在PHP官網(wǎng)上下載PHP安裝包都有VC11或VC9的字樣,這是什么含義,我們應(yīng)該下載哪種安裝包更好呢?

其實PHP官網(wǎng)給出了答案:

VC9 and VC11

More recent versions of PHP are built with VC9 or VC11 (Visual Studio 2008 and 2012 compiler respectively) and include improvements in performance and stability.

The VC9 builds require you to have the?Visual C++ Redistributable for Visual Studio 2008 SP1?x86?or?x64?installed.

The VC11 builds require to have the?Visual C++ Redistributable for Visual Studio 2012?x86 or x64?installed.

VC9意思就是該版本PHP是用VisualStudio2008編譯的,而VC11則是用VisualStudio2012編譯的。這意味著

如果你下載的是VC9版本的,就需要先安裝VisualC++RedistributableforVisualStudio2008SP1,

如果你下載的是VC11版本的,就需要先安裝VisualC++RedistributableforVisualStudio2012.

V11是微軟的一個組件,如果不安裝的話會提示?msvcr110.dll丟失。

下載鏈接:http://www.microsoft.com/zh-CN/download/details.aspx?id=30679

請下載64bit的,安裝完成后,請重啟計算機

?2:apache2.4.9,下載鏈接:http://www.apachelounge.com/download/

同樣是推薦 V11,64位的。

3:mysql 5.6.19,下載鏈接:http://dev.mysql.com/downloads/mysql/

同樣是推薦 mysql-5.6.19-winx64.zip

?

二:方法/步驟

?1:安裝配置Apache2.4.9(httpd-2.4.9-win64-VC11.zip?)

  解壓下載的安裝包:httpd-2.4.9-win64-VC11.zip?將其放到自己的安裝目錄(我的目錄E:\Apache24)

  然后對http.conf(E:\Apache24\conf\http.conf)配置文件進行修改-使用記事本打開就行

   ?(1)修改ServerRoot Apache的根路徑:

????????  (37行)ServerRoot"c:/Apache24"改成=>ServerRoot "E:/Apache24"

????  (2)修改ServerName你的主機名稱:

????????  (217行)ServerNamewww.example.com:80將前面的#去掉,該屬性在從命令行啟動Apache時需要用到。

????  (3)修改DocumentRoot Apache訪問的主文件夾目錄,就是php、html代碼文件的位置。Apache默認的路徑是在htdocs(E:\Apache24\htdocs)下面,里面會有個簡單的入口文件index.html。這個路徑可以自己進行修改,我這里將其配置在我自己新建的文件夾www(E:\php\www)下。

    (247行)?DocumentRoot "c:/Apache24/htdocs"

???????? 

    改為=>

????????DocumentRoot "E:\php\www"

????????

????  (4)修改入口文件配置:DirectoryIndex一般情況下我們都是以index.php、index.html、index.htm作為web項目的入口。Apache默認的入口只有index.html需要添加其他兩個的支持,當然這個入口文件的設(shè)置可以根據(jù)自己的需要增減,如果要求比較嚴格的話可以只寫一個index.php,這樣在項目里面的入口就只能是index.php

  (274行)

? ? ? ??DirectoryIndexindex.html

???????

  改為=>

??????

? ? ? ??DirectoryIndex? index.php index.htm index.html

????????

? ?  (5)設(shè)定serverscript的目錄:

? ? ? ? (358行)ScriptAlias/cgi-bin/ "c:/Apache24/cgi-bin/"改為=> ScriptAlias/cgi-bin/ "e:/Apache24/cgi-bin"

??  (6)(374行)

? ? ? ?

? ? ? ? ? AllowOverride None

? ? ? ? ? Options None

? ? ? ? ? Require all granted

? ? ? ?

改為=>

? ? ? ?

? ? ? ? ? AllowOverride None

? ? ? ? ? Options None

? ? ? ? ? Require all granted

? ? ? ?

?

  接下來就可以啟動Apache了

  開始---運行,輸入cmd,打開命令提示符。接著進入e:\Apache24\bin目錄下回車httpd回車,?

  沒有報錯的話就可以測試了(保持該命令窗口為打開的狀態(tài))。

  把Apache24\htdocs目錄下的index.html放到e:\php\www目錄下,用瀏覽器訪問會出現(xiàn)“It works”那么就說明apache已經(jīng)正確安裝并啟動了。也可以自己寫一個簡單的index.html文件也可以打開。

  說明:Apache 默認使用80端口,如果80端口被占用,Apache將無法啟動,此時可以更改Apache端口,解決此問題。

  更改端口:找到Apache安裝目錄下conf目錄下的httpd.conf文件(即e:\Apache24\conf\httpd.conf)。打開它。找到“Listen80”,緊接著Listen的數(shù)字就是端口號,我們改為“Listen 8080”。? 修改為其它未使用的端口號也行。. 重新啟動Apache,使新的配置生效??梢允褂糜蚁陆菭顟B(tài)欄的“Apache Serive Monitor”啟動apache。 也可以點擊“開始”>"運行>輸入cmd>回車>定位到apache安裝目錄下到bin目錄,然后輸入“httpd–k start”。

?  

  將Apache加入到window服務(wù)啟動項里面并設(shè)置成開機啟動

  先關(guān)閉httpd的服務(wù)(將命令窗口關(guān)閉即可)

  重新打開一個新的命令窗口進入到E:\Apache24\bin目錄下:

  添加HTTP服務(wù)的命令是:httpd.exe -kinstall -n "servicename"? servicename是服務(wù)的名稱,我添加的是:httpd.exe -k install -n "Apache24"命令成功后會有成功的提示,此時你可以在window服務(wù)啟動項中看到Apache24這個服務(wù)

  或者(e:\apache24\bin\httpd.exe -k install)

  此時如果你出現(xiàn):Installing the Apache2.4 service(OS 5)拒絕訪問。? : AH00369: Failed to open the WinNT service manager, perhaps you forgot to log in as Adminstrator? 這個錯誤時,是因為在安裝Apache的時候,下載的是zip格式,不是msi安裝版,需要自己注冊服務(wù),才能在桌面任務(wù)欄里有httpd的圖標。結(jié)果在cmd命令行里輸入安裝服務(wù)命令的時候出錯,出錯上述錯誤,錯誤信息提示我沒有用管理員身份登錄!

?  解決方案:將cmd以管理員身份運行,然后再重新輸入命令即可,執(zhí)行成功后,可在系統(tǒng)服務(wù)中找到Apache24這個服務(wù)?! ?/p>

  然后點擊啟動就可以了,如果不想設(shè)置成開機啟動的話也可以將啟動類型修改為手動。

  如果要卸載這個服務(wù)的話,先要停止這個服務(wù),然后輸入httpd.exe -k uninstall -n?"Apache24"卸載這個服務(wù)。

  當然也可以通過E:\Apache24\bin下面的ApacheMonitor.exe來啟動Apache這里就不多說了

  如此Apache的配置就基本完成了。

2:安裝配置php5.5.13(php-5.5.13-Win32-VC11-x64.zip)

  

  ?(1)、將下載的php-5.5.10-Win32-VC11-x64.zip ?解壓到安裝目錄下我的是(D:\phpEnv\php)

  ?(2)、將目錄下的php.ini-development文件復(fù)制一份并改名為php.ini他是php的配置文件

  ?(3)、為Apache服務(wù)添加php支持

      打開Apache的配置文件http.conf在最后加上

      # php5 support

      LoadModule php5_module e:/php/php5apache2_4.dll

      AddType application/x-httpd-php .php .html .htm

      # configure thepath to php.ini

      PHPIniDir "e:/php"?  

      這里我添加在LoadModule下面

      添加的時候要保證你的php5apache2_4.dll文件確實存在php5.5的早期版本里面是沒有這個文件的,不過高點版本里面已經(jīng)有了,可以打開php安裝目錄找下這個文件

      PHPIniDir"e:/php"這個就是你的php根目錄  

  ?(4).重啟Apache服務(wù)器。

  ?(5).測試。刪除www中其他文件,新建一個index.php,內(nèi)容為保存,訪問出現(xiàn)php的信息就說明php已經(jīng)成功安裝。

?

  備注:

  Php的一些常用配置修改:(e:\php\php.ini)

  時區(qū)的設(shè)置:date.timezone =?Asia/Shanghai

  錯誤報告等級:error_reporting = E_ALL這個在開發(fā)模式下可以全部打開。

64位win7下怎配置Apache+MySQL+PHP

單獨配置這三個東西很麻煩的, 推薦樓主用 wampServer. 這是一個集成的開發(fā)環(huán)境。安裝完后會帶有Apache+MySQL+PHP, 而且不需要你進行任何配置, 裝完后 立即可以使用。 簡單+ 實用! 強烈推薦!

百度 搜一下即可 下載!
?

win7 64Bit 配置php 64位+apache 64位 有沒人可以搞定??

本人電腦 win7旗艦版 64Bit,直接安裝PHP官網(wǎng)下載的環(huán)境安裝包wampserver2.2d-x64;運行一個多月了,穩(wěn)定;它已包括apache + PHP +mysql+PHPMYADMIN 四款軟件;學(xué)習(xí)調(diào)試php程序,方便快捷、穩(wěn)定;最近到官網(wǎng)下載wampserver2.2e-php5.4.3-httpd-2.4.2_PATCH001-x64.exe,安裝后感覺有些問題,又換回以上環(huán)境包;

—— 另外iis7.5端口與apache 80 沖突問題,開始時我也糾結(jié)幾天;看網(wǎng)上各種卸載不成,最后重新安裝系統(tǒng),直接安裝環(huán)境包,問題徹底解決。
?

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1503
276