Original solution: PhP has encountered an access violation

Source: Internet
Author: User
Tags mysql version

People who use IIS + PhP often have headaches and often encounter PHP has encountered an access violation.

 

It does not always appear, but occasionally. For this situation, I have searched the internet, and none of them can be completely solved. There are two solutions available. Note that both methods should be used together.

 

1. Added PHP extensions in "Web Service extension" and "website"-> "property"-> "ISAPI filter" in IIS

2. the mysql version does not match. Copy libmysql. dll in the MySQL installation directory to the PHP installation directory or C:/Windows/system32.
How can I check that the version does not match? First, log on to phpMyAdmin and you can see that MySQL 5.0.19-nt is executed as root @ localhost on localhost.
It indicates that the current mysql version is 5.0.19, and then phpinfo () is run. You can get the mysql version used by PHP. If the client API version is 5.0.19, it indicates no problem, if not, it must be replaced.

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.