Prompt for memory location access not valid solution and idea when accessing PHP analysis _win server

Source: Internet
Author: User
Tags php error
We need to find out which DLL file is loading the problem. The Troubleshooting method is:

Change display_startup_errors = off in php.ini to Display_startup_errors = on.
This is to visit the PHP page, the server will be pop-up PHP error prompts dialog box, you can clearly see which DLL file failed to load, sometimes there will be multiple DLL files failed to load, you need to first semicolon (;) Comment out the php.ini in the prompt after the DLL to continue the visit so repeatedly troubleshooting.
After you have separated the DLL (;) from the problem, PHP will work.

If the DLL that failed to load is the extension library file that you must use, then you need to troubleshoot the reason for the failure of the load from the version, whether the file is complete, the file is corrupted, and so on. Different extensions have different situations and you can't list them here, remember: Search engines are your best helper, search for solutions for individual DLLs.

In addition: A new version of the version of Windows PHP, when an error occurs, will automatically store the detailed error information to the Windows system Temp temporary directory, the file name is: Php-errors.log. In the Windows2003 system the path is generally: C:\WINDOWS\Temp\php-errors.log. Open this file in Notepad and you'll see a detailed PHP error record.

Down here is the content reproduced from the Internet:

Customers a PHP site every morning can not access, prompted "Invalid memory location access", restart IIS is not valid, to restart the server to temporarily normal, after a while this "memory location access is not valid" hint.
Baidu search for a bit, find a solution, in this record:
Open the C:\windows\php.ini file and search for the following fields
Extension=php_exif.dll
Add one to the front after it is found;
As follows:
; Extension=php_exif.dll
Save restart IIS and then visit the PHP file to see if it can be opened, no memory location access is invalid.

The above operation is actually disabling the Php_exif.dll component. If you must use this component, try this method:
I turned on the error display for IIS without finding the cause of the error
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.
V. Warning cannot load module ' SQLite ' because required module ' PDO ' is no loaded
Six, based on the above error prompts, the solution is very simple, because loading php_sqlite.dll is not loaded into the Php_pdo.dll file, so running the phpinfo () function prompts the memory location access is 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 ....

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.