Home  >  Article  >  Backend Development  >  access violation PHP has encountered an Access Violation

access violation PHP has encountered an Access Violation

WBOY
WBOYOriginal
2016-07-29 08:36:11897browse

Mainly appears on Windows host servers.
On the PHP official website, http://bugs.php.net/
You can also find two to three thousand pages of reports. Their official website is also at a loss. After 11 small versions, it still has not been completely solved.
http://bugs .php.net/search.php?cmd=display&search_for=PHP+has+encountered+an+Access&x=8&y=9
At present, I will provide some of my maintenance experience in the past few years and some of my folk solutions
The first possibility:
Remove the extension of eaccelerator in php
This can solve your problem, but it may increase the burden on the system
Because eaccelerator is mainly to save system resources
The specific method is to find php.ini
If I help you configure it, Usually in c:/php/php.ini or c:/winnt/php.ini or c:/windows/php.ini
Remove
zend_extensi
eaccelerator.shm_size="16"
eaccelerator.cache_dir="c:temp"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator. shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_
eaccelerator.compress="1"
eaccelerator.compress_level="9"
ea was mainly developed in a unix environment, but the author ignored the actual situation of windows Unlike u host, there is no memory sharing mechanism like u host. This bug has been submitted to them. I hope 0.9.5 can solve it. Of course, if the problem of your machine is not serious, it is recommended to keep it, ea It is a very excellent Php caching + acceleration software
Used with zo, it will reduce the system burden by about 50%-80% and increase the load capacity, speed and efficiency by about 200%
The second possibility
session_save_path needs to set an actual Physical path, and this directory requires all permissions of everyone, similar to 0777 of U host
The third possibility
c:/winnt/temp or c:/windows/temp
Also requires all permissions of everyone, similar to 0777 of U host
The fourth possibility
Your memory is seriously insufficient. Check it. If there is a problem, please add more memory. It is best to add two memory at a time
For example, add 1G memory. It is best to add two identical 512M memory. Otherwise, the dual channel is not enabled and the effect is mediocre. The fifth possibility is that the combination of ZendOptimizer and php is not very good. Try another version. The current stable combination is php4.3.11+zo 2.5.10a or php4.4.1 +zo 3.0 beta2
The sixth possibility
This mostly belongs to users who use win2003
They have set restrictions in the application pool
For example, how long to recycle, how much maximum memory is used, etc.
These settings will inevitably cause this classic PHP Wrong
Wood has been tested hundreds of times, and we can guarantee that problems will appear here.
The above introduces access violation PHP has encountered an Access Violation, including the content of access violation. I hope it will be helpful to friends who are interested in PHP tutorials.


Statement:
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