Home  >  Article  >  Backend Development  >  Graphical tutorial on configuring Php+Mysql+zend under IIS_PHP tutorial

Graphical tutorial on configuring Php+Mysql+zend under IIS_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:58:53744browse

 

为了迎接dvphp公测,特发此教程,希望对一些不会的朋友有所帮助,希望会的朋友多多指教!

 

下面的教程都是在windows 2000下实现的,其他系统请自己参照修改, 2003的系统请把winnt修改成windows.

操作系统目录:c:\winnt
PHP默认安装目录:C:\php
PHP版本:PHP 4.3.10 下载地址:http://www.php.net/downloads.php   (Windows Binaries)
Mysql版本:mysql-4.0.22-win  下载地址:http://dev.mysql.com/downloads/
zend :Zend Optimizer v2.5.5   (可选安装)

首先将php压缩包解压到c:\php目录下,
先 php.ini-dist改名为php.ini
然后 php.ini 和php.exe复制到winnt目录...
php4ts.dll和php4isapi.dll(这个在sapi目录中)复制到winnt/system32 目录..........


为了使你的PHP能支持更多的模块,用记事本打开Php.ini在里面搜索extension_dir 将值./改为 C:\PHP\extensions 

图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

然后搜索 ;Windows Extensions  将下面的扩展模块打开 ,只要将前面的;去掉便可以...但有部分模块是不支持的..

在IIS下建立建一个PHP程序测试目录,如D:\WEB,在"Internet
服务管理器"中,右击"默认Web站点->新建->站点",别名为web,实际路径为D:\web
要有读取、运行脚本和浏览权限;

在IIS的ISAPI刷选器中添加php的筛选器 


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

php有两种运行的环境模式...
但都是从这里添加 
php有两种运行的环境模式...
但都是从这里添加 


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

然后选择添加


 


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

1.如果你想用Isapi模式,在 IIS下--主目录配置修改可执行路径 :C:\WINNT\System32\php4isapi.dll

此处路径也可以是你php文件放置的路径比如C:\php\php4isapi.dll


 


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

此处路径也可以是你php文件放置的路径比如C:\php\php4isapi.dll

如果想用CGI/FastCGI模式,先在php.ini搜索cgi.force_redirect = 将前面的;号去掉,将值改为 0  (默认为1)

然后请在IIS下----主目录配置修改可执行路径 :C:\WINNT\php.exe 

此处路径也可以是你php文件放置的路径比如C:\php\php.exe



 


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

After completing these preparations, don’t forget to restart the WWW service of IIS;


Write a file info.php in the D:web directory to test the PHP environment.
The content is:
Phpinfo();
?>

Then enter http://yourIP/info.php in the browser
You will see a message about how your system is running Related information about PHP environment
ZEND installation:

NEXT all the way, and then when you get to the screen below, please select IIS,


After continuing NEXT, select php.ini The directories are all default...


图片点击可在新窗口打开查看Related pictures of this topic are as follows:
图片点击可在新窗口打开查看

图片点击可在新窗口打开查看Related pictures of this topic are as follows:
图片点击可在新窗口打开查看

图片点击可在新窗口打开查看Relevant pictures for this topic are as follows:
图片点击可在新窗口打开查看

Then NEXT, your PHP.INI file will be automatically backed up and the IIS service will be restarted during the installation process..


图片点击可在新窗口打开查看Related pictures of this topic are as follows:
图片点击可在新窗口打开查看
MYSQL installation:

The installation of MYSQL is relatively simple, go to next, the installation is complete, it will Automatically starts as a service of the system.
I won’t describe them one by one here...

At this point, your IIS supports php+mysql+zend successfully. Of course, you can choose to install zend. If you don’t install it, there will be no delay in using it.

Due to image display issues, please see

for details

http://bbs.cndw.com/dispbbs.asp?boardid=8&id=1240285

Another: If you encounter problems during the configuration process, you can message me on the forum or email me, and try to take the time to help you solve it

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317475.htmlTechArticleIn order to welcome the dvphp public beta, this tutorial is posted. I hope it will be helpful to some friends who don’t know how to do it. I hope they can. Friends, please give me some advice! The following tutorials are all implemented under Windows 2000. Other systems...
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