PHP has encountered an Access violation at XXXXXX Solutions _ Application Tips

Source: Internet
Author: User
Tags mysql version system log vps

Debugging method:

It is best to look at the system log file and we can find many problems from the log.

This is because the database table error, fix it, restart the IIS or restart the server to try.

There are customers who reflect this error in the US VPS: PHP has encountered an Access violation at *

Depending on the error message, you can use the following methods to resolve:

1, restart IIS, restart the VPS host can be.

2. Close Eaccelerator Extension
Find PHP.ini
If I help you configure, generally in the C:/windows/php.ini

Remove

Zend_extension_ts= "C:\php\extensions\eaccelerator_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"

3, Session_save_path need to set an actual physical path, and the directory requires everyone's permissions, similar to the U-Host 0777

4, your memory is seriously insufficient

5, Zendoptimizer and PHP collocation is not very good, change the version try

6, this kind of many belong to use Win2003 user, they set the limit in the application pool, for example how long time reclaims, the maximum use memory how many and so on

The Technology department recommends that you restart IIS because the probability of this error is very low.

The following are supplementary one:

Open the page with the following error: PHP has encountered an Access violation at
When the site appears this error, first of all to check your site specific reasons for the error. The same error may be returned but the reason may not be the same. For example, a cold in fact many kinds of ha! Only by finding the cause of the error can we solve the error better and faster.
Login to your server to open the System log. That is, enter EVENTVWR in the command line click System in the pop-up dialog box I found this site has the wrong hint:

The reason to see this error is that the user has changed after anonymous user access.
Treatment methods:
1, rebuild a Web site to the home directory path point to the original file directory.
1. Right-click Web--Properties--Directory security--authentication and access control--Edit the correct username password in the user and password.
Refresh URL all normal. This error is handled according to the actual situation of this machine. You will also be based on your own local specific error reasons to solve the problem.

You can look at the following points.
1, whether Zend the required DLL file directory to give insufficient permissions, must have read and run permissions
2, whether the use of 2003, set up the application pool, such as what is limited in the pool, adjust the try again, whether good, hehe
3,php.ini has two places that are not set, and some programs must use the

A
Upload_tmp_dir the line's annotation character, that is, the preceding semicolon ";", so that the line works in the php.ini document.
Upload_tmp_dir is used to define a temporary path for uploading files, where you can also define an absolute path, such as:
Upload_tmp_dir = D:\upload Of course, your D:upload directory must have read and write permission at this time.
Here I set to
Upload_tmp_dir = C:\Temp (because this folder is set up earlier, I plan to save trouble, hehe)

B
This error statement usually occurs because your php.ini about Session.save_path is not set up, the solution is to
Session.save_path and Session.cookie_path settings are set to
Session_save_path = C:\Temp
Session.cookie_path = C:\Temp
Then create a temp directory under the C:\ directory, which is where our eaccelerarot just used to create a file
Favorites
or because some components are installed. can refer to the following.
Recently, my windows2003 server frequently appeared "PHP has encountered an Access violation atxxxxxx" Such a mistake, try to search the next, there are many people encounter such problems. My reasons can be locked in the eaccelerator, because the PHP run before the efficiency is not satisfactory, so loaded eaccelerator acceleration, the effect is good, but as the database continues to increase, query and update database operations too frequently, there have been "PHP has Encountered an Access violation atxxxxxx "this error. Online solution is nothing more than to remove eaccelerator acceleration, this is certainly not, because I want to use, then according to their configuration, what temporary files Ah, session path Ah, have changed, or not, so think is not the MySQL version of the problem? See, the size of the DLL and the date of modification are really inconsistent, so the MySQL under the DLL to cover the copy from PHP to the system directory DLL, restart IIS, seemingly good, but after restarting the server again appeared, it seems that the problem is not here, is it an IIS application pool problem?

Try to get rid of all of the restrictions on this site, but when you reboot the server, it doesn't work. Look, just reboot IIS to solve the problem temporarily, but it's not a cure. Think carefully, since my environment no problem, is installed in the eaccelerator after the problem, then from the eaccelerator. Carefully check each configuration, found that I have not configured a bit of the problem, regardless of eaccelerator version, PHP version, or MySQL version, there are no problems, permissions are enough, php.ini configuration is also correct, but restart IIS for a while, so the problem is positioned to the application pool. Because my IIS was configured before a little problem. The recent eaccelerator data is shared memory and hard drive, is it the problem that IIS application pools and other site shares cause this? Then re-establish the application pool, allocate this application pool to the problem site only, reduce the resource limit appropriately, restart IIS, so as to restart the server, so as to make a simple stress test.

To solve this problem, leave a diary to commemorate, I solved the problem of the bird a week.

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.