search
HomeBackend DevelopmentPHP TutorialGraphical tutorial on configuring Php+Mysql+zend under IIS_PHP tutorial

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

Jul 21, 2016 pm 03:58 PM
iisDownforOpen betaGraphics and textrightTutorialofConfiguration

 

为了迎接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
PHP's Current Status: A Look at Web Development TrendsPHP's Current Status: A Look at Web Development TrendsApr 13, 2025 am 12:20 AM

PHP remains important in modern web development, especially in content management and e-commerce platforms. 1) PHP has a rich ecosystem and strong framework support, such as Laravel and Symfony. 2) Performance optimization can be achieved through OPcache and Nginx. 3) PHP8.0 introduces JIT compiler to improve performance. 4) Cloud-native applications are deployed through Docker and Kubernetes to improve flexibility and scalability.

PHP vs. Other Languages: A ComparisonPHP vs. Other Languages: A ComparisonApr 13, 2025 am 12:19 AM

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP vs. Python: Core Features and FunctionalityPHP vs. Python: Core Features and FunctionalityApr 13, 2025 am 12:16 AM

PHP and Python each have their own advantages and are suitable for different scenarios. 1.PHP is suitable for web development and provides built-in web servers and rich function libraries. 2. Python is suitable for data science and machine learning, with concise syntax and a powerful standard library. When choosing, it should be decided based on project requirements.

PHP: A Key Language for Web DevelopmentPHP: A Key Language for Web DevelopmentApr 13, 2025 am 12:08 AM

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

PHP: The Foundation of Many WebsitesPHP: The Foundation of Many WebsitesApr 13, 2025 am 12:07 AM

The reasons why PHP is the preferred technology stack for many websites include its ease of use, strong community support, and widespread use. 1) Easy to learn and use, suitable for beginners. 2) Have a huge developer community and rich resources. 3) Widely used in WordPress, Drupal and other platforms. 4) Integrate tightly with web servers to simplify development deployment.

Beyond the Hype: Assessing PHP's Role TodayBeyond the Hype: Assessing PHP's Role TodayApr 12, 2025 am 12:17 AM

PHP remains a powerful and widely used tool in modern programming, especially in the field of web development. 1) PHP is easy to use and seamlessly integrated with databases, and is the first choice for many developers. 2) It supports dynamic content generation and object-oriented programming, suitable for quickly creating and maintaining websites. 3) PHP's performance can be improved by caching and optimizing database queries, and its extensive community and rich ecosystem make it still important in today's technology stack.

What are Weak References in PHP and when are they useful?What are Weak References in PHP and when are they useful?Apr 12, 2025 am 12:13 AM

In PHP, weak references are implemented through the WeakReference class and will not prevent the garbage collector from reclaiming objects. Weak references are suitable for scenarios such as caching systems and event listeners. It should be noted that it cannot guarantee the survival of objects and that garbage collection may be delayed.

Explain the __invoke magic method in PHP.Explain the __invoke magic method in PHP.Apr 12, 2025 am 12:07 AM

The \_\_invoke method allows objects to be called like functions. 1. Define the \_\_invoke method so that the object can be called. 2. When using the $obj(...) syntax, PHP will execute the \_\_invoke method. 3. Suitable for scenarios such as logging and calculator, improving code flexibility and readability.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft