IIS + php

Source: Internet
Author: User
IIS + php systems: windows2003 + IIS6.0. PHP5 is installed using the ISAPI module. after installation, The. php document is configured on the test website. Write a phpinfo (); to view the Configuration information, see the Configuration File (php. ini) Path C: \ WINDOWS does not find the custom configuration file. copy ini to C: \ WINDOWS \. restart IIS to view the Configuration File (php. ini) Path C: \ WINDOWS \ php. ini... it seems to be normal, but the prompt for testing the previous php program is: undefined function mysql_connect () dizzy .... isn't the mysql module loaded? The phpinfo page does not display mysql information, but C: \ WINDOWS \ php. ini, we can see that extension = php_mysql.dll is not ";", and is correctly configured like other modules. I see that other modules have been correctly loaded. Depressed, I suspect that php_mysql.dll is not in the corresponding directory, but the file does exist. I read a lot of information, some of which say that there is a directory depth or there is a space in the directory name, but other modules can be correctly loaded. Shouldn't this be a directory error? Later, I found this prompt on an English website:


Copy the following files

Php5apache2. dll
Php5ts. dll
Php_mysql.dll
Libmysql. dll
Libmysqli. dll

In

C: \ windows \ system32

I found these Files in c: \ windows \ system32. I did not have these Files. I immediately copied these Files from x: \ Program Files \ PHP, start IIS to solve the problem !!..

Open the phpinfo page to view the mysql information, but the Configuration File path will change to the original Configuration File (php. ini) Path C: \ WINDOWS .. however, one of the following items appears:

Loaded Configuration File x: \ Program Files \ PHP \ php. ini

This is the php. ini file in the installation directory...

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.