Currently Viewing Posts Tagged limit

php-fpm can not use html as php

I have a site, which use nginx as web server and php-fpm as php interpreter. Most of the files use html extension name.

My nginx conf file has following section.

location ~ \.html|php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
}

But, when I enter the url such as https://example.com/sample.html, whose content is php script. It did not work.

The solution is to change the config of php.

SSH to the VPS.
Edit /etc/php/7.1/fpm/pool.d/www.conf
Find the security.limit_extensions and uncomment it, add html at the end.

security.limit_extensions = .php .php3 .php4 .php5 .php7 .html

After it, reload nginx, all done.

The way to fix the problem when Upgrade phpBB 3.1.1

It is so fast, phpBB 3.1.1 released.

I did meet the problem when I tried to upgrade my phpBB 3.0.12 to 3.1.0 or 3.1.1. Same problem here.

One is mentioned in the previous post.

Request-URI Too Large when updating

I copied the URI when this error came. I found the URI is so long. More than 8190 characters.

So, I tried to change it to 11000. Restart the Apache server.

LimitRequestLine 11000

It works. And this error doesn’t come back.

 

Later, during the process of preparing the merged file, another error shown as below.

Bad Request 
Your browser sent a request that this server could not understand. 
Size of a request header field exceeds serv

I thought it is a simlar error as the first one. So I google it and add the limit .

LimitRequestFieldSize 16380

 

Continue reading “The way to fix the problem when Upgrade phpBB 3.1.1”

vnStat is a good network traffic monitor

I installed vnStat on one of my VPS. After about 20 days tracking, I ask the support of Burst.net.
What is the figures of past 20 days they monitored?
The support email me the report.
Month: 2012 Jul
Day Incoming Outgoing Total
12 47.65 MB 731.46 MB 779.11 MB
13 37.52 MB 593.08 MB 630.6 MB
14 84.81 MB 615.17 MB 699.98 MB
15 45.95 MB 658.43 MB 704.37 MB
16 48.44 MB 743.58 MB 792.02 MB
17 44.29 MB 647.25 MB 691.55 MB
18 40.19 MB 652.6 MB 692.78 MB
19 114.48 MB 642.12 MB 756.6 MB
20 47.86 MB 709.87 MB 757.73 MB
21 46.71 MB 687.91 MB 734.62 MB
22 55.72 MB 756.85 MB 812.57 MB
23 63.55 MB 927.75 MB 991.31 MB
24 96.13 MB 1.19 GB 1.29 GB
25 55.6 MB 676.65 MB 732.25 MB
26 35.63 MB 564.44 MB 600.08 MB
27 57.1 MB 994.59 MB 1.03 GB
28 50.95 MB 754.29 MB 805.24 MB
29 35.43 MB 637.68 MB 673.11 MB
30 36.95 MB 629.61 MB 666.55 MB
31 55.68 MB 610.07 MB 665.75 MB
The figure of my own records are as below:

Continue reading “vnStat is a good network traffic monitor”

When you receive a letter telling you can get higher credit limit

Yes, I got a letter from Canadian Tire Bank, which shown me that I have been pre-approved for a higher credit limit.
I have an Options MasterCard with them. The credit limit is $10,000 for many years.
Most of the monthly balance is around $1,500. Until last month, I spend over $5,000 with this MasterCard.
My practice to keep my credit record in good standing is pay full balance before due date. Never later.
As a good credit cardholder. The sent me the letter for ask me to increase the limit.
They put three reasons:

Continue reading “When you receive a letter telling you can get higher credit limit”

ASP Limits

When I start to use Windows 2008 with IIS 7, I can not find the place to change time of script.
I have a ASP page which will go through whole database about 20MB, and retrieve the result and put into another database. Sometimes it takes about 3 minutes to finish.
I know how to change the IIS settings in IIS 5 and IIS 6. Now it is 7, I am lost.
Later I found the help page from Microsoft IIS site.
It describe the all limits settings of IIS 7.
The bufferingLimit attribute sets the maximum size of the ASP buffer. If response buffering is turned on, this attribute controls the maximum number of bytes that an ASP page can write to the response buffer before a flush occurs.
The maxRequestEntityAllowed attribute specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data greater than the value of maxRequestEntityAllowed, IIS returns an HTTP 403 error response.
The processorThreadMax attribute specifies the maximum number of worker threads per processor that IIS may create.
Note: This setting can dramatically influence the scalability of your Web applications and the performance of your server in general. Because this attribute defines the maximum number of ASP requests that can execute simultaneously, this setting should remain at the default value unless your ASP applications are making extended calls to external components.
The queueConnectionTestTime attribute specifies the number of seconds that a request can be queued before ASP determines whether the client is still connected. If the request is queued longer than the number of seconds specified by the queueConnectionTestTime attribute, ASP checks to determine whether the client is still connected before executing the request. If the client is no longer connected, the request is not processed and is deleted from the queue.

Continue reading “ASP Limits

  • Archives