We need to find the DLL file to load. The troubleshooting method is as follows:
Change display_startup_errors = Off in php. ini to display_startup_errors = On.
This is to access the php page. The php error prompt dialog box will pop up on the server. You can clearly see which dll file fails to be loaded, and sometimes multiple dll files fail to be loaded, you need to annotate php with a semicolon (;) first. ini prompts that the dll will be accessed again and again.
After the problematic dll is commented out with a semicolon (;), php can run normally.
If the dll file that fails to be loaded is an extension library file that you must use, check whether the file version is correct, whether the file is complete, and whether the file is damaged. Different extensions have different situations, which cannot be listed here. Remember: search engines are your best helper. Search for a single dll for a solution.
In addition, the new version of Windows PHP, in the case of an error, will automatically store the detailed error information to the TEMP temporary directory of the Windows system, the file name is: php-errors.log. In Windows2003 system path is generally: C: \ WINDOWS \ Temp \ php-errors.log. Open this file in notepad and you will see the detailed php error records.
The following content is reproduced from the Internet:
The customer cannot access a PHP website every morning and prompts "invalid memory location access". It is not valid to restart IIS. It is normal to restart the server temporarily, after a while, the message "invalid memory location access" appears again.
Search for the solution on Baidu and record it here:
Open the c: \ windows \ php. ini file and search for the following fields.
Extension = php_exif.dll
Add a semicolon (;) to the front and comment it out.
As follows:
; Extension = php_exif.dll
Save and restart iis and access the PHP file again to see if the PHP file can be opened. No memory location access is invalid.
The above operation actually disables the php_exif.dll component. If you must use this component, try the following method:
1. Enable the IIS error. No cause of the error is found.
2. Check for IIS extensions. The ISAPI, php. ini, and Mysql configurations, and the corresponding installation directory ACLs permissions are all correct.
3. Reclaim IIS process. The error still shows "invalid memory location access "....
4. Open display_startup_errors = On in php. ini. The problem is finally found... (Note: If you open display_startup_errors of php. ini, If php has an error, a prompt will be displayed, and there will be a record in the event viewer. If it is set to display_startup_errors = Off, no prompt will be displayed)
5. Warning Cannot load module 'sqlite 'because required module 'pdo' is no loaded
6. According to the preceding error message, the solution is simple. Because php_sqlite.dll is not loaded to the php_pdo.dll file, the system prompts that the access to the memory location is invalid when running the phpinfo () function.
Find the php. ini configuration file and remove the semicolon before "; extension = php_pdo.dll". extension = php_sqlite.dll
Then, reclaim the IIS application pool process and solve the problem ....