windows環境上安裝myphpadmin

來源:互聯網
上載者:User
windows環境下安裝myphpadmin
windows環境下安裝myphpadmin

1\php5

得到 php.ini檔案(在D:\php5目錄下有一個這樣的檔案,只需改一下名字就ok)
增加環境變數(在path環境變數中增加) d:\php5;d:\php5\ext
php.ini在實際應用中要做相應修改
2\apache 中的http.conf的修改
a:
在 #LoadModule vhost_alias_module modules/mod_vhost_alias.so 後面加上以下兩行
LoadModule php5_module d:/php5/php5apache2_2.dll
PHPIniDir "d:/php5"

b:修改http.conf相應位置

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

c:
在 AddType application/x-gzip .gz .tgz後面加上以下兩行
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html

d:增加 index.php

DirectoryIndex index.html index.jsp index.php



e:
#Include conf/extra/httpd-vhosts.conf 中的"#"去除
修改httpd-vhosts.conf檔案為如下內容
#
# Use name-based virtual hosting.
#
NameVirtualHost *:8089

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
#


ServerAdmin [email protected]
DocumentRoot d:/www/wabappone/ROOT
ServerName www.wabappone.com
ServerAlias wabappone
ErrorLog "logs/wabappone.localhost-error.log"
CustomLog "logs/wabappone.localhost-access.log" common
JkMount /*.jsp controller
# 把JSPX程式映射到Jk連接器上
JkMount /*.jspx controller
# 把servlet程式映射到Jk連接器上
JkMount /servlet/* controller
JkMount /*.servlet controller


3\
phpmyadmin的安裝配置

開啟phpmyadmin 目錄中的 config.inc.php 找到以下這些:

$cfg[’PmaAbsoluteUri’] = ’http://localhost/phpmyadmin’; //假設是有網域名稱的伺服器,可改成http://網域名稱/phpmyadmin

$cfg[’Servers’][$i][’user’] = ’admin’;

$cfg[’Servers’][$i][’password’] = ’00000000’; //分別填上你mysql的使用者和密碼

$cfg[’Servers’][$i][’auth_type’] = ’http’; // 這裡也可以改為cookie

改好了儲存,在瀏覽器開啟http://localhost/phpmyadmin (/index.php)輸入你的使用者名稱和密碼,便可以管理mysql了.


4\修改
d:\php5\php.ini
把如下四行中的";"去掉
;extension=php_mcrypt.dll
;extension=php_msql.dll
;extension=php_mssql.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.