Default php. ini file of the VM

Source: Internet
Author: User
Default php. A default php file can be generated in the cPanel of The INI file bluehost. ini configuration file. if you need to make some special settings, you can download this file and edit it locally and upload it to the corresponding directory. the editing takes effect immediately. Method for Generating php. ini: log on to the default php. ini file of the cPanel-& gt; software virtual host
The cPanel of bluehost can generate a default php. ini configuration file. if you need to make some special settings, you can download this file and edit it locally and upload it to the corresponding directory. the editing takes effect immediately.
Method for Generating php. ini:
Log on to cPanel-> software/services-> PHP Config->
Select: Install Default php. ini to generate a standard configuration file named php. ini. default in the master virtual directory. Because the file suffix has. default, you don't have to worry about overwriting the existing php. ini file.

When using BlueHost for Program Upgrade, some friends will prompt as follows:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2361357 bytes) in/home/xxx/public_html/xxx. php on line 1324

The display memory limit is too small to work out. you can only upload ID card attachments to activate SSH.

In fact, this can be modified. the solution is as follows:

1. on the cpanel panel, select php Config, select PHP5 (Single php. ini), and click save.

2. go to File Manager, go to public_html, find php. ini, and change memory_limit = 32 M to memory_limit = 128 M.

The setting is complete.

Sometimes you may find that there is a CPU timeout limit on the Bluehost virtual host. after checking that the average PV value of a third party is less than 10 thousand, there is no reason for this problem, there is no problem with my other account under the same traffic. check the CPU Exceeded Log and the message "MySQL Query timeout" is displayed.

The possible causes for the CPU timeout limit of the Bluehost virtual host are as follows:
1. there are too many file fragments in the MySQL database. the solution is to sort out the database.
2. too many search engine spider submit a large number of database query requests, poor collection, malicious access, etc., to solve the problem!
3. The website source code and script are low in efficiency or poorly configured. my account has been running well for a long time and does not have this problem. eliminate this possibility.

The CPU timeout limit for the Bluehost VM is not a serious problem. it will automatically return to normal after 5 or 6 minutes, so don't worry.

The first step is to find the cause:
If you can directly find the problem that causes the CPU timeout limit, it is better because the Bluehost virtual host can run on multiple websites at the same time in one account, which has its complexity.
If it cannot be confirmed that it is caused by a problem, several factors can be defined and checked one by one.

The second step is to solve the problem:
As mentioned above, the solution is quite simple. it is nothing more than blocking bad access sources, modifying the source code, and organizing the MySQL database (a single MySQL database below MB generates file fragments, resulting in a very small possibility of timeout, .).

Obviously, the difficulty is not how to solve the problem. finding the cause of CPU timeout is the key.

Open the "/tmp/cpu_exceeded_logs" Directory of the bluehost virtual host. here, the log files for CPU exceeded are saved. Here we can find the information we need,
Including: In the minute when a timeout occurs, which processes have accessed the websites in this account during the specific access time, however, this information does not seem to help us find some special problems, such as the IP addresses used by malicious visitors. Fortunately, bluehost has everything ready for us. we can check the access logs (* we usually use third-party statistics and usually cannot see the access records of spider, but it can be seen in the log of the Bluehost virtual host)

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.