Workaround for PHP "Invalid memory location Access" error

Source: Internet
Author: User
Tags iis ini sqlite

  The configuration environment is as follows:

win2003sp2+iis6+php5.26+mysql5.0.51a+zend3.3a+phpmyadmin2.11.7.1 PHP Execution mode: ISAPI. MySQL for manual installation.

About error resolution and steps for "Invalid memory location Access": (Some partially invalid debugging steps are skipped ...) )

One, the IIS error display open, no reason for error found!

Check the IIS extensions, ISAPI, php.ini and MySQL configuration, and the corresponding installation directory ACLs permissions are correct.

Third, recycle the IIS process, errors still appear "Memory location access Invalid" ....

Four, the php.ini in display_startup_errors = on open, the problem finally found ... (Note: If you turn on the php.ini display_startup_errors, you will be prompted if PHP has an error, and there are records in the Event Viewer.) If set to Display_startup_errors = off, there is no hint.

Five, Warning

Cannot load module ' SQLite ' because required module ' PDO ' is no loaded

The above error message was finally found. Probably means because the SQLite desktop database is enabled in the PHP.ini configuration, but the associated PDO mode is not open, PDO module loading failed ...

The solution is also simple, because the Php_pdo.dll file was not loaded when the Php_sqlite.dll was loaded, so when the Phpinfo () function was run, it was prompted that the memory location access was invalid. Locate the php.ini configuration file, and then remove the semicolon before the "; Extension=php_pdo.dll", Extension=php_sqlite.dll

Then recycle the IIS application pool process and solve the problem completely ....

HoHo, I want to help a friend who is having this problem ...

Related Article

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.