Home >Backend Development >PHP Tutorial >Graphical tutorial on configuring Php+Mysql+zend under IIS_PHP tutorial
为了迎接dvphp公测,特发此教程,希望对一些不会的朋友有所帮助,希望会的朋友多多指教! 下面的教程都是在windows 2000下实现的,其他系统请自己参照修改, 2003的系统请把winnt修改成windows. 然后搜索 ;Windows Extensions 将下面的扩展模块打开 ,只要将前面的;去掉便可以...但有部分模块是不支持的.. 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) 此处路径也可以是你php文件放置的路径比如C:\php\php.exe After completing these preparations, don’t forget to restart the WWW service of IIS; Then NEXT, your PHP.INI file will be automatically backed up and the IIS service will be restarted during the installation process.. 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 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
操作系统目录: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
此主题相关图片如下:
在IIS下建立建一个PHP程序测试目录,如D:\WEB,在"Internet
服务管理器"中,右击"默认Web站点->新建->站点",别名为web,实际路径为D:\web
要有读取、运行脚本和浏览权限;
在IIS的ISAPI刷选器中添加php的筛选器
此主题相关图片如下:
但都是从这里添加
php有两种运行的环境模式...
但都是从这里添加
此主题相关图片如下:
此主题相关图片如下:
此主题相关图片如下:
此主题相关图片如下:
然后请在IIS下----主目录配置修改可执行路径 :C:\WINNT\php.exe
此主题相关图片如下:
此主题相关图片如下:
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:
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...