windows环境上安装myphpadmin

WBOY
Release: 2016-06-13 13:07:59
Original
1531 people have browsed it

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 seal_bird21th@sohu.com
   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

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template