PHP has encountered an Access Violation solution summary_PHP tutorial

WBOY
Release: 2016-07-13 17:35:08
Original
895 people have browsed it

This problem is not easy to handle, and it has confused many webmasters for a long time.
Mainly occurs on Windows hosting servers.
On the PHP official website, http://bugs.php.net/
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
PHP+has+encountered+an+Access&x=8&y=9">http://bugs.php.net/search.php?cmd=display&search_for=PHP+has+encountered+an+Access&x=8&y=9

Currently, I will provide you with my maintenance experience in the past few years and some of my private solutions

First possibility:

Remove the eaccelerator extension 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, 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: emp"
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 actually does not have the memory sharing mechanism of the u host like the u host.
This bug has been submitted to them, hoping for 0.9 .5 can solve

Of course, if the problem with your machine is not serious, it is recommended to keep it. ea is a very excellent Php caching + acceleration software.
Used in conjunction with zo, it will reduce the system burden by about 50%-80% and increase the load. Ability, speed and efficiency around 200%


The second possibility

session_save_path needs to set an actual physical path, and the directory needs 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 of memory. It is best to add 2 Exactly the same 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 have set restrictions in the application pool
For example, how long it takes to recycle, the maximum memory usage, etc.
These settings are bound to cause this classic PHP error
The wood has been tested hundreds of times, and we can guarantee that problems will occur here.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508373.htmlTechArticleThis problem is not easy to deal with and has confused many webmasters for a long time. It mainly occurs on windows host servers. In the PHP official website, http://bugs.php.net/ you can also find two to three thousand pages...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!