PHP has xxx problem

Source: Internet
Author: User
Tags install php php and mysql system log server memory

"PHP has encountered a statck overflow"
Description: PHP encountered a stack Overflow
Workaround:
1. Please check if your MySQL account has the appropriate permissions or if the site has the appropriate anonymous guest permissions (Iis_user).
2. Check that the connection database in the config configuration file under the application is the correct account.
3, check whether the database is full, if the database is full of space after the situation will also occur.


PHP has encountered a Stack overflow
Insufficient space memory or PHP version of the server
Case
Q: After the customer has been using Phpcms for some time, the update column cache is always prompt: PHP has encountered a Stack overflow

S: The customer has deleted some columns or added columns when the column cache is not updated. There is the user in the modification of the column, careless will be the upper column to modify the cost column ID, this will also appear this hint
Causes the V9_category table to have the original rubbish information, the superfluous form.

The redundant tables are found through phpMyAdmin and are returned to normal after deletion.

"PHP has encountered a Access violation at 016E73DD"
It's a good idea to look at the system log files before we can find a lot of problems from the logs.
We just have a database table error, fix it, restart the IIS or reboot the server to try.

Cause: Site memory consumption is high and server memory resources are low, IIS application pool resources cannot be recovered immediately resulting

(for example, the Phpwind Web site was developed primarily in a UNIX environment, but the author ignores the fact that Windows is not actually like the U-Host, which is a memory-sharing mechanism without a U-host-A typical PHP version and System compatibility issue)


workaround:  
1, server settings:  
         1) set IIS application pool recycle time less than 60 minutes (default is 1740 minutes, many servers are not changed)  
         2) The application pool can have a dominant size of not less than 500m 
         3) CPU usage limit is not less than 50% (some servers limit CPU usage in order to provide more virtual machines to webmasters) &NBSP,
         4) can install PHP eaccelerator module, the site can be up to 5-10 times faster, but also reduce the pw9 of file load resource consumption  
2. Web site optimization (IIS virtual machine user):  
        1) Background off debug mode  
        2) the module attribute " The data update period is set to 480 minutes, and the data update interval sets to start at 1:0 end at 10:0  
means that data auto-update time is accessed during idle hours, preventing peak data updates from consuming large amounts of memory and CPU resources. If it also appears, set the cycle directly to 0 and update manually. The module includes the default favorite page and the topic page module as well as the drag and import module  
        3) Set anti-refresh interval in background global 3 seconds  
        4) Reduce the use of two-level domain names and pseudo-static, this is very resource-intensive  


additional words: Before using the virtual host user, please make sure that PHP has installed the Zlib module (for application installation) and the socket module ( Curl module) for Application Center and Windid communication. There is also a compatibility problem with the newer versions of PHP and MySQL.

Additional vps/Cloud Host/Standalone Server Setup reasons detailed reference http://www.jb51.net/article/10072.htm.

(for reference only, for respective website and space situation)

In short, the Space Business production environment (problem) is either the site is more or a large number of sites in the modification of content caused.

Copyright NOTICE: This article is Enweitech original article, without BO Master permission cannot reprint.

PHP has xxx problem

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.