Install php5.2.5 and mysql5.0 in IIS6 and clarify their concepts

Source: Internet
Author: User

Install php5.2.5 and mysql5.0 in IIS6 and clarify their concepts
Assume that the PHP folder is in D:/php_foriis.

1. php. ini must be copied to the Windows folder (important and required ).
This is not required in Windows2003 + apache2.2 + php5.x.

Note:

Extension_dir = "D:/php_foriis/EXT"
......
Extension = php_mbstring.dll
Extension = php_mcrypt.dll
Extension = php_ming.dll
Extension = php_mysql.dll
Extension = php_mysqli.dll
......

If the php. ini file cannot be found in the Windows folder, the result is that the MySQL extension cannot be loaded, resulting in the following error message:

Fatal error: Call to undefined function mysql_connect () in ...... (In a certain line of a PHP file)

The reason is that you do not know the mysql_connect () function connecting to the MySQL database.

2. Add D:/php_foriis/EXT to the Windows Global Path (important and required ). We recommend that you put it in front of windows; and Windows/system32.
Another advantage of configuring the path is that you can directly execute the PHP script on the server through php.exe to complete some specific tasks.
You do not need to copy the php5ts. dll and libmysql. DLL files to the Windows/system32 folder.

Clarify: There are many tutorials, such as cloud and parrot, that many PHP. DLL files, including libmysql. dll and php5ts. dll, must be copied to the System32 folder of windows. This is because Windows/system32 itself is in the path of the Windows path. Copy it here and let windows find them. -This is fine, so you do not need to add the PHP path to the path. The good practice is the aforementioned practice in this article. Do not copy a large one. DLL files are stored in the System32 folder of windows. DLL is mixed together to increase the difficulty of maintenance and upgrade.

3. You can stop saving the D:/php_foriis/PHP. ini file.

Clarification: some tutorials also say, "we recommend that you keep the php. ini file in the PHP folder and" it is best to keep the content in the Windows folder ". This is a vague statement. In fact, you don't have to. Just keep a PHP. ini file in the Windows folder.

4. Like Apache and IIS, it is best not to share the same PHP folder for different configurations.
In actual tests, Apache and IIS can work together when the PHP folder is public.
(After changing the PHP folder, do not forget to modify the. php ing directory of the website .)

5. Others:
1) Pay attention to zendoptimizer ...... Problems caused by Windows-i386.exe.
2) You can use the following command to disable and start IIS once:
Net stop w3svc
Net stop IISADMIN
Net start w3svc

You can also use the iisreset command.

Zhang Qing (mesh)
From mesh horizon: http://blog.why100000.com
Why 100,000 computer learning networks: http://www.why100000.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.