Solution Rollup for Unable to view file mapping problem under IIS Zend _win server

Source: Internet
Author: User
Tags php server zend

The Zend error log contains: Unable to view file mapping, attempting to access an invalid address. Search on the Internet under the solution is

The workaround is as follows:

Compare PHP Two versions of php.ini files.

; Extension=php_yaz.dll
Extension=php_zip.dll Check if the two is in a new version. Also confirm Extension=php_zip.dll
Remove save restart IIS and MySQL another way to say

Eaccelerator V0.9.4-rc1, the PHP accelerator plugin, shields this up for other things:

1. Check to see if the C:\windows\temp\ directory has IIS user groups and Network_service access rights
2.zend The installation directory has IIS user groups and Network_service access rights, write permissions.
3. Delete the junk file under C:\WINDOWS\temp\.
Set upload_tmp_dir= "C:\windows\temp\" in 4.php.ini file (note = spaces on both sides)
5. There is another one is not found Zendoptimizer.memorybase@system file, method with the above, in c:\WINDOWS\temp\ to build an empty file, file name zendoptimizer.memorybase@ System can

==================================================================================
A Zend Optimizer error appears in the Event Viewer, and this error occurs every time the server is started:
Event Type: Error
Event Source: Zend Optimizer
Event Type: None
Event id:487
Date: 2008-2-28
Event: 9:22:15
Users: N/A
Computer: XXX
Describe:
The description of the event ID (487) (in the resource (Zend Optimizer)) cannot be found. The local computer may not have the necessary registration information or a message DLL file to display messages from a remote computer. You may be able to use
/auxsource= identification to retrieve the word description, and view Help and support for more information. The following information is part of the event: Unable to view file mapping, attempting to access an invalid address.
Check the information on the Internet, in fact, only one version, the specific content can look at the following reference materials. Here I combine my own solution to sum up:
First of all, if your PHP is using eaccelerator, you can comment it out, because Zend Optimizer conflict with Eaccelerator. In fact, both are used to speed up the PHP program, as long as the use of one of them can
Up.
If your PHP does not use eaccelerator words are most of the permissions of the problem, this situation is rarely seen in the apache+php, usually in the iis+php this collocation appears more. This time only need to modify%
Systemroot%\temp permissions, set to everyone all allowed, and then manually create a new text file and name it if there is no file in the directory
Can.
If you still have a problem, you can see if the EXT directory in PHP has Php_yaz.dll and php_zip.dll two files, which one in the php.ini will be "extension= ..." before the semicolon removed.

================================================================================

The first two days in the local debugging PHP program, found installed in the Vertrigoserv, zendoptimizer operation is not normal, in the C-packing directory generated a zendoptimizer_errors file, the main problem is the following two:

Copy Code code as follows:
Unable to open base address file: The system could not find the specified path.
Unable to view file mapping: Overlapping I/O operations are in progress.

Below share my question core: problems such as this are generally caused by cache directory designation errors!
Step method: Right-click My Computer-Properties-advanced-environment variable-assigns the path of TEMP and TMP in the user configuration as the path value of TEMP and TMP in the system variable: such as%systemroot%\temp or other path determination path, as D:\Temp this path determines, Reboot the computer.

Run the PHP server program again, C packing directory does not appear zendoptimizer_errors.txt report, the report will not appear above the two errors, set up a good path directory automatically generated such as the two files. Problem solved!

May 23, 2009 Additional solutions:

1, modify the access rights of the C:\WINDOWS\Temp\ directory, so that Zend can modify the directory, general add IIS_WPG and Network Service write permission is enough.
2, it is possible in the C:\WINDOWS\temp\ directory can not find the specified file, find the folder under the file name and SERVICE, if not, the new two files, empty file can be. The
3, php.ini file is set upload_tmp_dir = "C:\windows\temp\" (note = spaces on either side).
4, it is also possible that there is no permission to read the Zend directory, adding IIS_WPG and network to the C:\Program files\zendoptimizer-2.6.2\lib\ directory Read permission for the service (note that the path is also different from the Zend version and the installation directory)
Note: the aforementioned "C:\WINDOWS\Temp\" is not absolute, the key to see php.ini file "Upload_tmp_dir" Equal to what path. March 25, 2009 added:
In the NTFS file system of a Windows Server 2003 system, access issues are also involved, such as the default installation directory for Zendoptimizer C:\Program files\zend, We need to add an IIS startup account to Zend This directory IIS_WPG read run, listing directories, read permissions. This resolves the unable to view file mapping error caused by the permission.

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.