PHP has xxx problem

Source: Internet
Author: User
Tags 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 is primarily developed in a UNIX environment, but the author ignores that Windows is actually not like the U-Host, which is the kind of memory-sharing mechanism without the U-host?) Typical PHP version and system compatibility issues)


Workaround:
1. Server settings:
1) Set the IIS application pool recycle time less than 60 minutes (default is 1740 minutes, many servers have not changed)
2) application pool disposable size not less than 500M
3) CPU usage limit of not less than 50% (some servers in order to provide more virtual machines to webmaster use, limiting the CPU utilization)
4) can install PHP eaccelerator module, the website can speed up 5-10 times, also can reduce PW9 file load resource consumption
2. Website optimization (IIS virtual machine user):
1) Background off debug mode
2) Set the "Data update Period" in the module attribute to 480 minutes, and set "Data update Interval" to "start at 1:0 end at 10:0"
This means that the 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 topic page module as well as the dragged and imported modules.
3) Set anti-refresh time interval 3 seconds in background global
4) Reduce the level of two domain name and pseudo-static use, this is very resource-intensive


additional words: Before using the virtual host user, please make sure that PHP has not installed the Zlib module (for application installation) and the Socket Module (Curl module) for the 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.

  • 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.