Access violation PHP have encountered an Access violation

Source: Internet
Author: User
Tags php error
Appears primarily on the server of the Windows host.
In PHP official, http://bugs.php.net/
Can also find the two thousand or three thousand-page report, they are not officially helpless, after 11 small version, still did not completely solve
Http://bugs.php.net/search.php?cmd=display&search_for=PHP+has+encountered+an+Access&x=8&y=9
At present I provide some of my maintenance experience over the years, some of my civil solutions
The first possibility:
Remove the eaccelerator extension from PHP
Doing so will solve your problem, but may add to the burden of the system
Because Eaccelerator is mainly to conserve system resources.
The concrete approach is to find php.ini
If I help you configure, 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 is mainly developed in the UNIX environment, but the author ignores that Windows is actually not like the U-Host, which is the kind of memory sharing mechanism without U-host.
This bug has been submitted to them, I hope 0.9.5 can solve
Of course, if your machine this problem is not serious, it is recommended to retain, EA is a very good PHP cache + acceleration Software
Use with ZO will reduce the system burden of about 50%-80%, improve load capacity, speed and efficiency of about 200%
The second possibility
Session_save_path needs to set an actual physical path, and the directory requires all of the permissions of everyone, similar to the 0777 of the U host
The third possibility
C:/winnt/temp or C:/windows/temp
All permissions are also required for everyone, similar to the 0777 of the U host
The fourth kind of possibility
Your memory is seriously insufficient, check, if there is a problem, please add memory, it is best to add two at a time
For example, add 1G of memory, it is best to add 2 identical 512M. Otherwise there is no dual channel enabled, the effect is very general
The fifth kind of possibility
Zendoptimizer and PHP are not very well matched.
Try a different version.
At present, the more stable collocation is
Php4.3.11+zo 2.5.10a
or Php4.4.1+zo 3.0 Beta2
The sixth kind of possibility
This belongs to users with Win2003
They set limits in the application pool.
such as how long to recycle, maximum use of memory, etc.
These settings are bound to cause this classic PHP error
After hundreds of tests, the wood is guaranteed to be a problem to be seen here.

The above describes the access violation PHP have encountered an access violation, including the content of access violation, want to be interested in PHP tutorial friends helpful.

  • 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.