很多朋友对PHP环境很为难,经过多次尝试都无法正确配置
其实配置PHP环境并不难,掌握要领就会很轻松
对于初级用户和想简单配置PHP环境的朋友,本人提供一种方法和PHP环境文件
就会让您轻松拥有高性能PHP环境,而且还可以使用虚拟主机管理系统哦!
安装:首先必须确认系统中已经安装了IIS
系统推荐:win2003服务器版,win2000专业版和xp系统不支持多用户IIS
虚拟主机管理系统无法进行管理,xp系统IIS存在问题调试程序会经常出现不正常。
对于作网站和经常调试教本的朋友还是推荐使用win2003服务器版
把系统做好配置好玩游戏的话这两个系统都很不错的,有朋友说win2003系统
很多功能都关闭了而且界面也没有XP好看,不适合个人用,其实这个东西只
需要您稍微改一下,把默认关闭的东西打开,就是一个很不错的个人电脑用的系统
(win2003系统的优化设置方法见:http://www.ie2004.net/jok/index1.htm)
安装说明:
注意:php和mysql均安装到D盘,自己拥有服务器的朋友也建议这样安装
大致路径如下:
D:盘-----serv-u(只对服务器用户,本机调试免)
mail(只对服务器用户,本机调试免)
php
mysql
EfangVHost4.1(易方虚拟主机管理系统4.1)
E:盘-----www(IIS用户目录,存贮IIS用户数据或者本机调试数据)
1、PHP_setup.exe 安装到D盘PHP目录
完全自动安装自动配置,无需手工配置,解决初级用户不会设置PHP.INI的问题
此文件安装完IIS也会自动配置完成,无须手工更改。
2、将mysql-4.0.24-win文件夹拷贝到D盘,文件夹重命名为mysql
使用mysqladmin,更改默认密码。
当然也可以不更改,密码为空
进入命令提示符:进入D盘的mysql\bin文件夹
mysql的初始管理帐号是root,没有密码
如果想把默认帐号root密码更改为:123456
则执行:mysqladmin -u root -p password 123456
其中password不用动,后面的123456是更改后的密码
回车以后会再次提示输入密码,不用改直接回车,密码就会变为123456
执行:mysql中\BIN中的winmysqladmin.exe文件即可启动MYSQL
第一次需要添加一次默认的密码,此密码随意。
3、安装ZEND
安装路径默认,提示需要加速的WEB目录时选择你的WEB目录
比如WEB目录在E盘的WWW中,就选择e:\www此过程需要执行两次
提示是否需要更改系统文件夹中的PHP.INI时,选择是。
4、安装虚拟主机管理系统:
默认安装路径为D盘,安装完执行文件夹中的“安装服务.bat”文件启动易方主机管理系统。
浏览器中执行http://127.0.0.1:9999即可登陆管理系统,默认用户名和密码都是admin
主机管理系统使用说明请到软件官方www.efang.com.cn下载
Explanation of the problem:
1. How to make the system support PHP tutorial: Execute the PHP installation during installation and the system will automatically support it.
2. Connection between MYSQL and the host management system: Start MYSQL. Install the virtual host management system to the D drive
and execute: "Installation Service.bat" file in the EfangVHost4.1 folder on the D drive to start the E-Fang host management system.
Execute http://127.0.0.1:9999 in the browser to log in to the management system. The default username and password are both admin
After entering, select "System Configuration"-"Installation and Settings MySQL"
First For this operation, you need to install "Install ODBC_3.51.11 Driver (MySQL)"
and then fill in the host address: This address does not need to be changed by default (localhost), MYSQL user name: root,
Password: (This password is the installation step 2 above The changed password, if there is no change, the password will be empty).
If the connection to MYSQL is successful, there will be a success prompt.
3. The host management system opens a space that supports MYSQL and PHP:
Select "Host Type", fill in the number: ht01, and set the corresponding parameters, where "site directory" fills in "e:www"
Select: Support MySQL
Then select "Create Site" and select the host type: ht01
The administrator account and password are optional. Then click "Create Site". After success, click: "Manage Now"
Select "Create MYSQL Database" in "Database Settings"
Then the space is fully activated and already supports PHP and MYSQL. If it is local debugging, you need to enter the "IIS Settings" of this
space and fill in the IP of the host header into the local debugging IP, for example: 127.0.0.1
Complete the setting and enter the browser input: 127.0. 0.1 can display the successful site opening screen
4. The win2003 system cannot be debugged locally:
Open IIS, select: "WEB Service Extension", set "Active Server Pages" to "Allow"
Change " Just change the "Predefined Account" of
in the "Identity" of the default pool "DefaultAppPool" to "Network Service".
5. There is a problem with my PHP textbook debugging. What should I do if I want to delete the MYSQL library and re-debug it?
It’s very simple. Enter the data directory of the mysql folder and delete the
file in the folder that was automatically created in the virtual host management system. Of course, you can also delete the database created by MYSQL in the virtual host management system. Delete and re-create.
Related file download: http://www.ie2004.net/down/php/default.htm
Note: The download address is a Netcom line, which will be slow for telecom users. In addition, the host has an anti-leeching system. , please do not connect to download.