Waiting ttfb first byte loading slowly searched the whole network and couldn't find the reason. Ask the kind-hearted person to take a look (wdcp panel)

as mentioned in the question, the first byte loads slowly. The speed of the test site is usually 1-10 seconds or more.
searched all over the network but couldn"t find the reason. Collapse causes

mine is wdcp panel
I am nginx (1.8.1) + apache dual system, the website uses php7.14, so nginx is main, I switch to nginx single system, pseudo-static can not turn the page. Looks like apache still works? There are also plug-ins that use zend.
my server is Aliyun"s 1-core 2G memory, 5m bandwidth, Aliyun CDN + OSS image CDN. But the first byte is still very slow! ~
(less than 1000 people a day if there is not much traffic on the site)

the following is my DZ system information



Discuz!     Discuz! X3.4 Release 20170801
UCenter     UCenter 1.6.0 Release 20170101
 PHP    Linux / PHP v7.1.4
    nginx
 MySQL     5.5.54
    5M
    120.31 MB

mysql


PHP

here are the nginx settings

-sharp nginx conf conf/nginx.conf
-sharp Created by http://www.wdlinux.cn
-sharp Last Updated 2010.06.01
user  www www;
worker_processes  3;
error_log  logs/error.log  notice;
pid        logs/nginx.pid;
worker_rlimit_nofile 5120;
events {
    use epoll;
    worker_connections  5120;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    

    server_names_hash_bucket_size 128;
    client_header_buffer_size 256k;
    large_client_header_buffers 8 64k;
    client_max_body_size 50m;
    client_body_buffer_size 1024k;
    limit_conn_zone $binary_remote_addr zone=one:32k;
    sendfile        on;
    tcp_nopush     on;

    keepalive_timeout  60;
    tcp_nodelay on;

    gzip  on;
    gzip_min_length  1k;
    gzip_buffers     4 16k;
    gzip_http_version 1.0;
    gzip_comp_level 2;
    gzip_types       text/plain application/x-javascript text/css application/xml;
    gzip_vary on;

    log_format  wwwlogs  "$remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for";
    access_log off;
    -sharpinclude default.conf;
    include vhost/*.conf;
}    

vhost runs two websites (one www computer station and one m mobile station, sharing a database, which is generated by wdcp by default)

server {
        listen       80;
        root /www/web/_com/public_html;
        server_name .com www..com *..com;
        index  index.html index.php index.htm;
        error_page  400 /errpage/400.html;
        error_page  403 /errpage/403.html;
        error_page  404 /errpage/404.html;
        error_page  503 /errpage/503.html;
        location ~ \.php(.*)$ {
                fastcgi_pass  unix:/tmp/php-71-cgi.sock;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $DOCUMENT_ROOT$fastcgi_script_name;
                fastcgi_param PATH_INFO $2;
                include fcgi.conf;
        }
        location ~ /\.ht {
                deny  all;
        }
        include /www/wdlinux/wdcp/rewrite/dzx35_nginx.conf;
}

server {
        listen       443;
        root /www/web/_com/public_html;
        ssl                  on;
        ssl_certificate      cert/.com.pem;
        ssl_certificate_key  cert/.com.key;
        ssl_prefer_server_ciphers on;
        ssl_session_timeout 10m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
        ssl_stapling on;
        server_name .com www..com *..com;
        index  index.html index.php index.htm;
        error_page  400 /errpage/400.html;
        error_page  403 /errpage/403.html;
        error_page  404 /errpage/404.html;
        error_page  503 /errpage/503.html;
        location ~ \.php(.*)$ {
                fastcgi_pass  unix:/tmp/php-71-cgi.sock;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $DOCUMENT_ROOT$fastcgi_script_name;
                fastcgi_param PATH_INFO $2;
                include fcgi.conf;
        }
        location ~ /\.ht {
                deny  all;
        }
        include /www/wdlinux/wdcp/rewrite/dzx35_nginx.conf;
}
Dec.16,2021

that's not a problem. It's just that your website is slow. It's as simple as that. It has nothing to do with configuration. If you don't believe me, write a simple php code to see if it is millisecond waitting

.
Menu