亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Table of Contents
win7 64位系統(tǒng) 配置php最新版開發(fā)環(huán)境(php+Apache+mysql),win7apache
64位win7旗艦版搭建apache+php+mysql開發(fā)環(huán)境
64位win7下怎配置Apache+MySQL+PHP
Home php教程 php手冊 win7 64位系統(tǒng) 配置php最新版開發(fā)環(huán)境(php+Apache+mysql),win7apache

win7 64位系統(tǒng) 配置php最新版開發(fā)環(huán)境(php+Apache+mysql),win7apache

Jun 13, 2016 am 09:27 AM
64 bit php win7 environment

win7 64位系統(tǒng) 配置php最新版開發(fā)環(huán)境(php+Apache+mysql),win7apache

一 :準備階段

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的字樣,這是什么含義,我們應該下載哪種安裝包更好呢?

其實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服務啟動項里面并設(shè)置成開機啟動

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

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

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

  或者(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安裝版,需要自己注冊服務,才能在桌面任務欄里有httpd的圖標。結(jié)果在cmd命令行里輸入安裝服務命令的時候出錯,出錯上述錯誤,錯誤信息提示我沒有用管理員身份登錄!

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

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

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

  當然也可以通過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文件復制一份并改名為php.ini他是php的配置文件

   (3)、為Apache服務添加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服務器。

   (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+php+mysql開發(fā)環(huán)境

php開發(fā)環(huán)境的搭建
1. 在windows下搭建
Windows+php+mysql+phpmyadmin =>wamp
在linux
Linux+apache+mysql+php =>lamp

2. 套件安裝
Appserver 泰國人 apache+mysql+php+phpmyadmin
自定義安裝:可以根據(jù)開發(fā)需求選擇各個軟件的版本;apache+mysql+php+phpmyadmin
安裝在同一文件夾,便于管理(文件夾不要帶中文),安裝一個測試一個
①安裝apache
完后 localhost
②安裝php核心包(apache---->VC6版本 IIS---->VC9版本),解壓即可
③整合apache和php
A. 在apache/conf/httpd.conf中加入以下代碼
#讓apache載入php處理模塊
LoadModule php5_module php安裝目錄/php5apache2_2.dll
#指定php的ini文件,該文件是對php的一些配置
PHPIniDir ''php安裝目錄"
AddType application/x-httpd-php .php .phtml
B. 把php下的php.ini-development文件改成 php.ini 因為php的設(shè)置需要在 php.ini 修改
C. 在php.ini中指定對應的功能模塊
;在這里指定php的擴展庫路徑
Extension_dir="php安裝路徑/ext"
session.save_path = 去掉前面;
并設(shè)路徑"php安裝路徑/session_temp"并在該路徑下新建文件夾session_temp
D. 測試
在apache/htdocs下寫text.php
localhost/text.php
④安裝mysql
A. 寫一段代碼來測試是否成功
$conn=mysql_connect("localhost","root","root");
If($conn){
Echo"連接數(shù)據(jù)庫成功!";
}else{
Echo"連接數(shù)據(jù)庫失??!";
}
?>
在php.ini中啟用mysql功能
Extension=php_mysql.dll
Extension=php_mysqli.dll

B. 安裝一個phpmyadmin來看看是否可以使用
解壓phpmyadmin到apache/htdocs下
訪問 localhost/phpmyadmin/index.php...余下全文>>
?

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

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

百度 搜一下即可 下載!
?

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
1488
72
PHP calls AI intelligent voice assistant PHP voice interaction system construction PHP calls AI intelligent voice assistant PHP voice interaction system construction Jul 25, 2025 pm 08:45 PM

User voice input is captured and sent to the PHP backend through the MediaRecorder API of the front-end JavaScript; 2. PHP saves the audio as a temporary file and calls STTAPI (such as Google or Baidu voice recognition) to convert it into text; 3. PHP sends the text to an AI service (such as OpenAIGPT) to obtain intelligent reply; 4. PHP then calls TTSAPI (such as Baidu or Google voice synthesis) to convert the reply to a voice file; 5. PHP streams the voice file back to the front-end to play, completing interaction. The entire process is dominated by PHP to ensure seamless connection between all links.

How to use PHP to build social sharing functions PHP sharing interface integration practice How to use PHP to build social sharing functions PHP sharing interface integration practice Jul 25, 2025 pm 08:51 PM

The core method of building social sharing functions in PHP is to dynamically generate sharing links that meet the requirements of each platform. 1. First get the current page or specified URL and article information; 2. Use urlencode to encode the parameters; 3. Splice and generate sharing links according to the protocols of each platform; 4. Display links on the front end for users to click and share; 5. Dynamically generate OG tags on the page to optimize sharing content display; 6. Be sure to escape user input to prevent XSS attacks. This method does not require complex authentication, has low maintenance costs, and is suitable for most content sharing needs.

How to use PHP combined with AI to achieve text error correction PHP syntax detection and optimization How to use PHP combined with AI to achieve text error correction PHP syntax detection and optimization Jul 25, 2025 pm 08:57 PM

To realize text error correction and syntax optimization with AI, you need to follow the following steps: 1. Select a suitable AI model or API, such as Baidu, Tencent API or open source NLP library; 2. Call the API through PHP's curl or Guzzle and process the return results; 3. Display error correction information in the application and allow users to choose whether to adopt it; 4. Use php-l and PHP_CodeSniffer for syntax detection and code optimization; 5. Continuously collect feedback and update the model or rules to improve the effect. When choosing AIAPI, focus on evaluating accuracy, response speed, price and support for PHP. Code optimization should follow PSR specifications, use cache reasonably, avoid circular queries, review code regularly, and use X

PHP creates a blog comment system to monetize PHP comment review and anti-brush strategy PHP creates a blog comment system to monetize PHP comment review and anti-brush strategy Jul 25, 2025 pm 08:27 PM

1. Maximizing the commercial value of the comment system requires combining native advertising precise delivery, user paid value-added services (such as uploading pictures, top-up comments), influence incentive mechanism based on comment quality, and compliance anonymous data insight monetization; 2. The audit strategy should adopt a combination of pre-audit dynamic keyword filtering and user reporting mechanisms, supplemented by comment quality rating to achieve content hierarchical exposure; 3. Anti-brushing requires the construction of multi-layer defense: reCAPTCHAv3 sensorless verification, Honeypot honeypot field recognition robot, IP and timestamp frequency limit prevents watering, and content pattern recognition marks suspicious comments, and continuously iterate to deal with attacks.

How to use PHP to combine AI to generate image. PHP automatically generates art works How to use PHP to combine AI to generate image. PHP automatically generates art works Jul 25, 2025 pm 07:21 PM

PHP does not directly perform AI image processing, but integrates through APIs, because it is good at web development rather than computing-intensive tasks. API integration can achieve professional division of labor, reduce costs, and improve efficiency; 2. Integrating key technologies include using Guzzle or cURL to send HTTP requests, JSON data encoding and decoding, API key security authentication, asynchronous queue processing time-consuming tasks, robust error handling and retry mechanism, image storage and display; 3. Common challenges include API cost out of control, uncontrollable generation results, poor user experience, security risks and difficult data management. The response strategies are setting user quotas and caches, providing propt guidance and multi-picture selection, asynchronous notifications and progress prompts, key environment variable storage and content audit, and cloud storage.

PHP realizes commodity inventory management and monetization PHP inventory synchronization and alarm mechanism PHP realizes commodity inventory management and monetization PHP inventory synchronization and alarm mechanism Jul 25, 2025 pm 08:30 PM

PHP ensures inventory deduction atomicity through database transactions and FORUPDATE row locks to prevent high concurrent overselling; 2. Multi-platform inventory consistency depends on centralized management and event-driven synchronization, combining API/Webhook notifications and message queues to ensure reliable data transmission; 3. The alarm mechanism should set low inventory, zero/negative inventory, unsalable sales, replenishment cycles and abnormal fluctuations strategies in different scenarios, and select DingTalk, SMS or Email Responsible Persons according to the urgency, and the alarm information must be complete and clear to achieve business adaptation and rapid response.

Beyond the LAMP Stack: PHP's Role in Modern Enterprise Architecture Beyond the LAMP Stack: PHP's Role in Modern Enterprise Architecture Jul 27, 2025 am 04:31 AM

PHPisstillrelevantinmodernenterpriseenvironments.1.ModernPHP(7.xand8.x)offersperformancegains,stricttyping,JITcompilation,andmodernsyntax,makingitsuitableforlarge-scaleapplications.2.PHPintegrateseffectivelyinhybridarchitectures,servingasanAPIgateway

PHP integrated AI speech recognition and translator PHP meeting record automatic generation solution PHP integrated AI speech recognition and translator PHP meeting record automatic generation solution Jul 25, 2025 pm 07:06 PM

Select the appropriate AI voice recognition service and integrate PHPSDK; 2. Use PHP to call ffmpeg to convert recordings into API-required formats (such as wav); 3. Upload files to cloud storage and call API asynchronous recognition; 4. Analyze JSON results and organize text using NLP technology; 5. Generate Word or Markdown documents to complete the automation of meeting records. The entire process needs to ensure data encryption, access control and compliance to ensure privacy and security.

See all articles