Home > Backend Development > PHP Tutorial > PHP has encountered an Access Violation_PHP教程

PHP has encountered an Access Violation_PHP教程

WBOY
Release: 2016-07-21 15:57:25
Original
948 people have browsed it

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 officials are also at a loss. After 11 small versions, there is still no complete solution
http://bugs.php.net/search.php?cmd=display&search_for=PHP+has+encountered+an+Access&x=8&y=9

At present, I will provide you with my maintenance experience in the past few years. Some folk solutions

The first possibility:

Remove the eaccelerator extension in php
This can solve your problem, but it may increase the burden on the system
because of eaccelerator Mainly to save system resources

The specific method is to find php.ini
If I help you configure it, it is usually in c:/php/php.ini or c:/winnt/php. ini or c:/windows/php.ini

Remove

zend_extension_ts="C:phpextensionseaccelerator_win_xxx.dll"
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_only="0"
eaccelerator.compress= "1"
eaccelerator.compress_level="9"

ea was mainly developed in a Unix environment, but the author ignored that Windows is actually not like the U host, and does not have the memory of the U host The
bug of the sharing mechanism has been submitted to them, and I hope 0.9.5 can solve it

Of course, if the problem on your machine is not serious, it is recommended to keep it. ea is a very excellent Php cache + Acceleration software
used with zo 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 be set Define an actual physical path, and the directory requires everyone's permissions, similar to the U host's 0777

The third possibility
c:/winnt/temp or c:/windows/temp
It also requires all the permissions of everyone, similar to 0777 of the 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, to add 1G of memory, it is best to add 2 identical 512M. Otherwise, the dual channel is not enabled and the effect is mediocre

The fifth possibility
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 using win2003
They are in the application pool Limitations are set in
For example, how long it takes to recycle, the maximum memory usage, etc.
These settings are bound to cause this classic PHP error
After hundreds of tests, I can guarantee that the problem will appear in here.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317819.htmlTechArticle 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 officials are also at a loss. After 11 small versions,...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template