Apache+php+mysql+phpadmin搭建

來源:互聯網
上載者:User

標籤:

一,準備工具。

 httpd-2.4.12-win32-VC9.zip

 php-5.4.40-Win32-VC9-x86.zip

phpMyAdmin-4.2.13.2-all-languages

mysql-5.6.23-winx64 配置參照:  http://blog.csdn.net/q98842674/article/details/12094777

 二,環境搭建。

 1,解壓httpd-2.4.12-win32-VC9.zip。將Apache24放到D盤。

 2,配置D:\Apache24\conf\httpd.conf. 主要是修改路徑

      ServerRoot "D:/Apache24"

     DocumentRoot "D:/Apache24/htdocs"

     <Directory "D:/Apache24/htdocs">

     <Directory "D:/Apache24/cgi-bin">

 3,插入服務。

   見包中的說明檔案。包括VC運行時的下載。

 4,解壓php-5.4.40-Win32-VC9-x86.zip將放到D盤php檔案夾中。將php.ini-development複製改名為php.ini。並修改

  去掉前面的分號 

   extension=php_gd2.dll  

   extension=php_mbstring.dll

   extension=php_mysql.dll

   extension=php_mysqli.dll

   寫上ext目錄的路徑

   extension_dir = "D:/php/ext"

 5,添加環境變數:path:D:\php;D:\php\ext;

 6,在D:\Apache24\conf\httpd.conf末尾處增加

   LoadModule php5_module "D:/php/php5apache2_4.dll"
   AddHandler application/x-httpd-php .php
   PHPIniDir "D:/php"

 7,重啟服務OK。

 

 

 8,解壓phpMyAdmin-4.2.13.2-all-languages。

 9,在D:\Apache24\htdocs\phpMyAdmin\libraries\config.default.php找到這個檔案php檔案。

10,複製到D:\Apache24\htdocs\phpMyAdmin\目錄下,重新命名為config.inc.php

11,修改config.inc.php檔案。

$cfg[‘Servers‘][$i][‘user‘] = ‘root‘;

/**
* MySQL password (only needed with ‘config‘ auth_type)
*
* @global string $cfg[‘Servers‘][$i][‘password‘]
*/
$cfg[‘Servers‘][$i][‘password‘] = ‘123456‘;

12,重啟服務OK。

 

13,如果遇到一些問題(包括一些檔案的下載),請參考一下網址:

http://www.douban.com/note/241182725/?type=rec

http://www.apachelounge.com/download/

http://windows.php.net/downloads/releases/

http://www.cnblogs.com/tigertall/archive/2010/01/28/1658869.html

http://secsky.sinaapp.com/91.html

http://www.cnblogs.com/Peter-Zhang/archive/2012/12/10/2810915.html

http://windows.php.net/download

http://httpd.apache.org/docs/2.4/

Apache+php+mysql+phpadmin搭建

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.