Summary of solutions to PHPhasencounteredanAccessViolation problems

Source: Internet
Author: User
This problem is not very well handled. I am confused that many webmasters usually appear on windows servers for a very long time. In php (as the current mainstream development language) official, http://bugs.php (as the current mainstream development language ). net/can also find the 2000 or 3000-page report, they are also helpless, after 11 small versions of SyntaxHighli

This problem is not very well handled, and many webmasters are confused for a long time.
It mainly appears on the server of the windows host.
Official in php (as the current mainstream development language), http://bugs.php (as the current mainstream development language). net/
The 2000 or 3000-page reports can also be found, and they are helpless officially. after 11 minor versions, they have not been completely resolved.
Http://bugs.php (as the mainstream development language). net/search. php (as the mainstream development language )? Cmd = display & search_for = php (as the mainstream development language) + has + encountered + an + access (favorite for small websites) & x = 8 & y = 9

At present, I provide my maintenance experience over the past few years and some of my private solutions.

The first possibility:

Remove the extension of eaccelerator in php (as the mainstream development language)
This can solve your problem, but it may increase the burden on the system.
Because eaccelerator is mainly used to save system resources

The specific method is to find php (as the mainstream development language). ini
If it is configured for you, it is generally in c:/php (as the current mainstream development language ). ini or c:/winnt/php (as the mainstream development language ). ini or c:/windows/php (as the mainstream development language ). ini

Remove

Zend_extension_ts = "C: php (as the mainstream development language) extensionseaccelerator_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 is mainly developed in unix environment, but the author ignores that windows is not actually the same as u host, and there is no memory sharing mechanism of u host.
This bug has been submitted to them, and we hope 0.9.5 can solve it.

Of course, if the problem is not serious on your machine, we recommend that you retain it. ea is a very good php (as the mainstream development language) cache + acceleration software.
Combined with zo, the system load will be reduced by about 50%-80%, and the load capacity, speed and efficiency will be improved by about 200%.


Second possibility

Session_save_path needs to set an actual physical path, and this directory requires all the permissions of everyone, similar to the 0777


Third possibility
C:/winnt/temp or c:/windows/temp
You also need all the permissions of everyone, similar to 0777 of the U host.


Fourth possibility
Your memory is seriously insufficient. check whether there is any problem. please add the memory. it is best to add two at a time.
For example, to add 1 GB memory, it is best to add 2 identical 512 MB. Otherwise, the dual-channel is not enabled, and the effect is normal.


Fifth possibility
The combination of ZendOptimizer and php (as the mainstream development language) is not very good.
Try another version
Currently, the stable combination is:
Php (as the mainstream development language) 4.3.11 + zo 2.5.10a
Or php (as the mainstream development language) 4.4.1 + zo 3.0 beta2


Sixth possibility

Most of these are win2003 users.
They set limits in the application pool.
For example, how long is it to be recycled and how much memory is used?
These settings will inevitably result in this classic php (as the mainstream development language) error
After hundreds of tests on wood, the problem can be guaranteed.

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.