Home > Backend Development > PHP Tutorial > Solution to php 'Invalid memory location access' error_PHP Tutorial

Solution to php 'Invalid memory location access' error_PHP Tutorial

WBOY
Release: 2016-07-21 14:51:43
Original
988 people have browsed it

 The configuration environment is as follows:

 Win2003SP2+IIS6+php5.26+mysql5.0.51a+zend3.3a+PhpMyAdmin2.11.7.1 PHP execution mode: isapi. Mysql is installed manually.

About the error solution of "Invalid memory location access"Methods and steps: (Some partially invalid debugging steps are skipped..)

1. Turn on the error display of IIS, but no cause of the error was found!

2. Check the IIS extension, ISAPI, php.ini and Mysql configurations as well as the corresponding installation directory ACLs permissions, all are correct.

3. Recycle the IIS process, the error still appears "Invalid memory location access"....

4. Turn on display_startup_errors = On in php.ini, and the problem is finally discovered... (Note: If you turn on display_startup_errors in php.ini, if there is an error in php, it will prompt, and in the event viewer There are records. If set to display_startup_errors = Off, there will be no prompt)

5. Warning

Cannot load module ‘SQLite’ because required module ‘pdo’ is no loaded

The above error message was finally discovered. The general meaning is that the support for SQLite desktop database is enabled in the php.ini configuration, but the related pdo mode is not enabled, and the pdo module fails to load...

Sixth, the solution is also very simple, because the php_pdo.dll file is not loaded when loading php_sqlite.dll, so when running the phpinfo() function, it prompts that the memory location access is invalid. Find the php.ini configuration file, and then remove the semicolon in front of ";extension=php_pdo.dll", extension=php_sqlite.dll

Then recycle the IIS application pool process and the problem is completely solved...

Hoho, I hope it can be of some help to friends who encounter this problem...

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/371760.htmlTechArticleThe configuration environment is as follows: Win2003SP2+IIS6+php5.26+mysql5.0.51a+zend3.3a+PhpMyAdmin2.11.7 .1 PHP execution method: isapi. Mysql is installed manually. Error resolution regarding invalid memory location access...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template