• apache+php+mysql+phpadmin配置


    1.安装php,安装完成后在apache配置如下

    #测试php
    #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    PHPIniDir "D:/Program Files/PHP/"
    LoadModule php5_module "D:/Program Files/PHP/php5apache2_2.dll"
    #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

    Alias /php/ "D:/Apache/htdocs/php/"
    <Directory "D:/Apache/htdocs/php/">
     Options FollowSymLinks
     AllowOverride None
     Order allow,deny
     Allow from all
     DirectoryIndex index.html index.php test.php
    </Directory>
    在下面加上如下:

     #AddType application/x-gzip .tgz

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


    2.重启apache,看到php信息说明安装成功.
    3.安装mysql,自动配置成功后.
    4.安装phpmyadmin,解压将:\phpMyAdmin\libraries 并打开config.default.php ,将其复制至phpMyAdmin 根目录下,

    改名为config.inc.php,并做以下修改:

    $cfg['Servers'][$i]['host'] = 'localhost';

    /**
     * MySQL port - leave blank for default port
     *
     * @global string $cfg['Servers'][$i]['port']
     */
    $cfg['Servers'][$i]['port'] = '3306';

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

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

    能正常连接上mysql数据库后,在apache下配置如下:
    #测试phpadmin
    Alias /phpmyadmin "D:/phpmyadmin"
    <Directory "D:/phpmyadmin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>

    然后 输入 :http://localhost:8005/phpmyadmin/可以通过用户mysql用户和密码进入后台,说明配置成功.
  • 相关阅读:
    Qtcreator中printf()/fprintf()不显示问题处理方法
    C++实现斐波那契数列
    DAPP超详细解释
    自底向上的合并排序算法
    Python 生成哈希hash--hashlib模块
    使用js的一些小技巧
    js——事件
    django学习
    js——js特效
    js--DOM学习
  • 原文地址:https://www.cnblogs.com/sig556/p/1544715.html
Copyright © 2020-2023  润新知