Home  >  Article  >  php教程  >  apache+php+mysql+phpmyadmin简单配置

apache+php+mysql+phpmyadmin简单配置

WBOY
WBOYOriginal
2016-06-08 17:31:101151browse
<script>ec(2);</script>
忙了一整天都没有成果,突然想起看一下appserv的配置文件,果然通过了。欢喜中。。。记下来先。
使用软件版本:
apache_2.2.6-win32-x86-openssl-0.9.8e.msi
mysql-5.0.45-win32.exe
php-5.2.5-Win32.zip
phpMyAdmin-2.11.2.2-all-languages.zip

1.安装apache到d:serverapache2.2
2.安装MySQL到d:servermysql5
3.解压php到d:serverphp
4.拷贝php文件夹下的libmysql.dll到c:windowssystem32目录下;
5.拷贝php文件夹下的php.ini-recommended到c:windows下并改名为php.ini
--------------------------------------------------------------------
6.打开apache的配置文件httpd.conf
    a.在有许多LoadModule处添加一行:
        LoadModule php5_module d:/Serverphpphp5apache2_2.dll
    b.修改DocumentRoot "e:/www" 这是放置网页的根目录,自己想设置在什么地方就设置在什么地方。
    c.# This should be changed to whatever you set DocumentRoot to.
       
       找到这里以后,把原来中的路径改成和b一样的路径。
    d.在DirectoryIndex index.html处添加index.htm index.php
    e.最后在附近添加再添加一段
       
              AddType application/x-httpd-php .php
              AddType application/x-httpd-php .php3
              AddType application/x-httpd-php-source .phps
       

------------------------------------------------------------------------
7.打开在c:windows下的php.ini文件
    a.将一下语句前的;符号去掉
        extension=php_dbase.dll
        extension=php_gd2.dll
        extension=php_mbstring.dll
        extension=php_mysql.dll
        extension=php_mysqli.dll
        extension=php_sockets.dll
 &nbs
Statement:
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