About the server environment. net and php

Source: Internet
Author: User
Tags php error
About the server environment. net and php I have a server, window2003, IIS, which contains a. net website. now I want to add a php website.
Now, the php website code is uploaded, the site is added in IIS, mysql is installed, and the database is imported.
Run phpinfo () to display relevant information, which should indicate that php can run. The problem is that other pages such as the homepage are blank.
I don't know why, is it because of mysql database problems? Is there anything else to install?
Give 80. please advise!


Reply to discussion (solution)

Enable the php error prompt function to check the error message.

The error prompt function is on ..
Display_errors = On
Error_reporting = E_ALL &~ E_NOTICE

I just read phpinfo () again. Why does it not show mysql information. Is there anything I have installed missing?
But I checked php. ini,
Extension = php_mysql.dll; No. is removed.

Does anyone understand this ????

How to install mysql and access the server to connect to mysql.

.. Yes .. The data is imported.

What information about mysql is not displayed in phpinfo?
Is the php. ini you modified correct?

Configuration File (php. ini) Path is the default php loading location
Loaded Configuration File is the actually Loaded php. ini. if this column is empty, you need to check whether the environment variable settings are correct. Or copy the modified php. ini to the default location.

Note that IIS must be restarted after any changes

Correct. Take the correct environment directly.

Since the access to the home page is blank, it should be irrelevant to the database. check your portal file and debug it step by step.

I checked it step by step .. Use echo to step by step .. The mysql Query statement cannot be used here ..

Paste the following values in the phpinfo result:
Configuration File (php. ini) Path
Loaded Configuration File
Display_errors
Extension_dir

O .. Thank you very much. I copied the modified php. ini to c: \ windows again, set the environment variable PHPRC, copy libmysql. dll and php_mysql.dll to system32, and restart IIS .. OK.

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.