Fresh myVesta installation and WordPress is loading extremely slow

Post Reply
mccn
Posts: 7
Joined: Thu May 06, 2021 2:00 pm

Hey all

My fresh myvestacp install is beautiful!
Unfortunately wordpress is very slow, pages load after a few seconds. And plugins do not install from the wordpress repository automatically, they have to be manually uploaded to the server.

Hardware:
Dell R330
E3-1220 V5 16GB
storage 5x SSD kingston DC500M 480GB raid 5. HDD to backup HGST Ultrastar 3TB
Hard raid H330

Please help me solve this problem
Last edited by mccn on Mon Feb 26, 2024 6:56 pm, edited 2 times in total.

Tags:
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

maybe you uploaded files as root?
mccn
Posts: 7
Joined: Thu May 06, 2021 2:00 pm

No no files has ben uploaded via ftp by user
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

did you checked error log of that domain?
mccn
Posts: 7
Joined: Thu May 06, 2021 2:00 pm

Hmm mybb forum script:
Generated in 12 ms (61.48% PHP / 38.52% MySQL)
SQL Queries: 11 / Server Load: 0.06 / Memory Usage: 2 MB

Wordpress generated in 6 sec ?

Test it please: test.serwersetu.pl


Log is

Code: Select all

 cat test.serwersetup.pl.error.log
2021/05/25 14:59:14 [error] 610#610: *7 openat() "/home/admin/web/test.serwersetup.pl/public_html/favicon.ico" failed (2: No such file or directory), client: 89.174.***.9, server: test.serwersetup.pl, request: "GET /favicon.ico HTTP/1.1", host: "test.serwersetup.pl", referrer: "http://test.serwersetup.pl/"
2021/05/25 15:12:32 [error] 610#610: *22 openat() "/home/admin/web/test.serwersetup.pl/public_html/favicon.ico" failed (2: No such file or directory), client: 89.174.***.9, server: test.serwersetup.pl, request: "GET /favicon.ico HTTP/1.1", host: "test.serwersetup.pl", referrer: "http://test.serwersetup.pl/"
2021/05/25 15:12:46 [error] 610#610: *28 openat() "/home/admin/web/test.serwersetup.pl/public_html/favicon.ico" failed (2: No such file or directory), client: 89.174.***.9, server: test.serwersetup.pl, request: "GET /favicon.ico HTTP/1.1", host: "test.serwersetup.pl", referrer: "http://test.serwersetup.pl/wp-login.php?redirect_to=http%3A%2F%2Ftest.serwersetup.pl%2Fwp-admin%2F&reauth=1"
[Tue May 25 15:13:28.458451 2021] [proxy_fcgi:error] [pid 928:tid 140198805436160] [client 89.174.***.9:0] AH01071: Got error 'PHP message: PHP Warning:  Error while sending QUERY packet. PID=2922 in /home/admin/web/test.serwersetup.pl/public_html/wp-includes/wp-db.php on line 2056PHP message: PHP Warning:  Error while sending QUERY packet. PID=2922 in /home/admin/web/test.serwersetup.pl/public_html/wp-includes/wp-db.php on line 2056PHP message: PHP Warning:  Error while sending QUERY packet. PID=2922 in /home/admin/web/test.serwersetup.pl/public_html/wp-includes/wp-db.php on line 2056', referer: http://test.serwersetup.pl/wp-login.php?redirect_to=http%3A%2F%2Ftest.serwersetup.pl%2Fwp-admin%2F&reauth=1
2021/05/25 15:13:29 [error] 610#610: *29 openat() "/home/admin/web/test.serwersetup.pl/public_html/favicon.ico" failed (2: No such file or directory), client: 89.17*.***.9, server: test.serwersetup.pl, request: "GET /favicon.ico HTTP/1.1", host: "test.serwersetup.pl", referrer: "http://test.serwersetup.pl/wp-admin/"
2021/05/25 15:33:30 [error] 610#610: *98 openat() "/home/admin/web/test.serwersetup.pl/public_html/favicon.ico" failed (2: No such file or directory), client: 188.147.126.175, server: test.serwersetup.pl, request: "GET /favicon.ico HTTP/1.1", host: "test.serwersetup.pl", referrer: "http://test.serwersetup.pl/"
root@serwersetup:/var/log/apache2/domains#

This line is normal ?:

Code: Select all

34.96.130.30 - - [25/May/2021:15:07:22 +0200] "GET / HTTP/1.0" 301 277 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: [email protected]"
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Try this: https://robertbasic.com/blog/php-fpm-slow-log/

put for example:

Code: Select all

slowlog=/home/YOURUSER/slow.log
request_slowlog_timeout=5s
Your pool.d conf files are in folder /etc/php/7.3/fpm/pool.d/

After placing those lines in pool.d conf file, restart fpm:

Code: Select all

sudo systemctl restart php7.3-fpm
then see where is your PHP after 5 sec:

Code: Select all

tail -f /home/YOURUSER/slow.log
mccn
Posts: 7
Joined: Thu May 06, 2021 2:00 pm

Hi...

Any ideas to fix wordpress acp and pages extremely slow load witch fresh install myvestacp ? acp load 4 - 10 sec serwer Dell R330 cpu xeon ram 16 gb storage ssd kingstone DC series..
Problem is all browsers...
Slow log:

Code: Select all

tail -f /home/mysliwi/slow.log
[0x00007f8554a159e0] curl_exec() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php:360
[0x00007f8554a15880] send() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php:70
[0x00007f8554a15820] send() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php:38
[0x00007f8554a15770] get() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php:1997
[0x00007f8554a15650] fire() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/waf/bootstrap.php:972
[0x00007f8554a154a0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/wordfence.php:117
[0x00007f8554a153b0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-settings.php:473
[0x00007f8554a151f0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-config.php:96
[0x00007f8554a15170] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-load.php:50
[0x00007f8554a150d0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin-ajax.php:22

[26-Feb-2024 12:27:49]  [pool mysliwirazem.pl] pid 633230
script_filename = //home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin-ajax.php
[0x00007f8554a139e0] curl_exec() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/Requests/src/Transport/Curl.php:204
[0x00007f8554a13900] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/Requests/src/Requests.php:469
[0x00007f8554a13800] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-http.php:396
[0x00007f8554a13670] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-http.php:637
[0x00007f8554a135d0] get() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/http.php:168
[0x00007f8554a13540] wp_remote_get() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/includes/class-wp-community-events.php:109
[0x00007f8554a13410] get_events() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/includes/ajax-actions.php:378
[0x00007f8554a13300] wp_ajax_get_community_events() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-hook.php:324
[0x00007f8554a13220] apply_filters() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-hook.php:348
[0x00007f8554a131b0] do_action() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/plugin.php:517
[0x00007f8554a130d0] do_action() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin-ajax.php:188

[26-Feb-2024 12:28:13]  [pool mysliwirazem.pl] pid 633240
script_filename = //home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/themes.php
[0x00007f8554a15eb0] curl_exec() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/Requests/src/Transport/Curl.php:204
[0x00007f8554a15dd0] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/Requests/src/Requests.php:469
[0x00007f8554a15cd0] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-http.php:396
[0x00007f8554a15b40] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-http.php:619
[0x00007f8554a15aa0] post() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/http.php:186
[0x00007f8554a15a10] wp_remote_post() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/update.php:732
[0x00007f8554a157a0] wp_update_themes() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-hook.php:324
[0x00007f8554a156c0] apply_filters() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-hook.php:348
[0x00007f8554a15650] do_action() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/plugin.php:517
[0x00007f8554a15570] do_action() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin.php:385
[0x00007f8554a153b0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/themes.php:10

[26-Feb-2024 12:28:36]  [pool mysliwirazem.pl] pid 633240
script_filename = //home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/plugins.php
[0x00007f8554a13eb0] curl_exec() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/Requests/src/Transport/Curl.php:204
[0x00007f8554a13dd0] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/Requests/src/Requests.php:469
[0x00007f8554a13cd0] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-http.php:396
[0x00007f8554a13b40] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-http.php:619
[0x00007f8554a13aa0] post() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/http.php:186
[0x00007f8554a13a10] wp_remote_post() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/update.php:451
[0x00007f8554a137b0] wp_update_plugins() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-hook.php:324
[0x00007f8554a136d0] apply_filters() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-hook.php:348
[0x00007f8554a13660] do_action() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/plugin.php:517
[0x00007f8554a13580] do_action() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin.php:385
[0x00007f8554a133c0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/plugins.php:10

[26-Feb-2024 12:31:40]  [pool mysliwirazem.pl] pid 633669
script_filename = //home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/themes.php
[0x00007f8554a13eb0] curl_exec() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/Requests/src/Transport/Curl.php:204
[0x00007f8554a13dd0] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/Requests/src/Requests.php:469
[0x00007f8554a13cd0] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-http.php:396
[0x00007f8554a13b40] request() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-http.php:619
[0x00007f8554a13aa0] post() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/http.php:186
[0x00007f8554a13a10] wp_remote_post() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/update.php:732
[0x00007f8554a137a0] wp_update_themes() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-hook.php:324
[0x00007f8554a136c0] apply_filters() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/class-wp-hook.php:348
[0x00007f8554a13650] do_action() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-includes/plugin.php:517
[0x00007f8554a13570] do_action() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin.php:385
[0x00007f8554a133b0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/themes.php:10

[26-Feb-2024 12:31:56]  [pool mysliwirazem.pl] pid 633669
script_filename = //home/mysliwi/web/mysliwirazem.pl/public_html/index.php
[0x00007f8554a14a10] curl_exec() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php:360
[0x00007f8554a148b0] send() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php:70
[0x00007f8554a14850] send() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php:38
[0x00007f8554a147a0] get() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php:1997
[0x00007f8554a14680] fire() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/waf/bootstrap.php:972
[0x00007f8554a144d0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/wordfence.php:117
[0x00007f8554a143e0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-settings.php:473
[0x00007f8554a14220] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-config.php:96
[0x00007f8554a141a0] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-load.php:50
[0x00007f8554a14100] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-blog-header.php:13
[0x00007f8554a14070] [INCLUDE_OR_EVAL]() /home/mysliwi/web/mysliwirazem.pl/public_html/index.php:17
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

mccn wrote: Mon Feb 26, 2024 12:35 pm Hi...

Any ideas to fix wordpress acp and pages extremely slow load witch fresh install myvestacp ? acp load 4 - 10 sec serwer Dell R330 cpu xeon ram 16 gb storage ssd kingstone DC series..
Problem is all browsers...
Slow log:

Code: Select all

tail -f /home/mysliwi/slow.log
[0x00007f8554a159e0] curl_exec() /home/mysliwi/web/mysliwirazem.pl/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/http.php:360
Since it always hangs on curl_exec(), your firewall (outside of the server) or DNS is probably not configured correctly, which causes a significant delay for outgoing TCP connections.
mccn
Posts: 7
Joined: Thu May 06, 2021 2:00 pm

Restart apache fix this problem 10 sec

Hmm Hmm, only WordPress loads slowly. The mybb forum script and all others load correctly...
Any ideas ?


Hmm curl ?

root@serwersetup:~# time curl -v mysliwirazem.pl
* Trying 85.219.132.4:80...
* Connected to mysliwirazem.pl (85.219.132.4) port 80 (#0)
> GET / HTTP/1.1
> Host: mysliwirazem.pl
> User-Agent: curl/7.74.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Mon, 11 Mar 2024 16:47:58 GMT
< Content-Type: text/html; charset=UTF-8
< Content-Length: 0
< Connection: keep-alive
< Keep-Alive: timeout=60
< X-Redirect-By: WordPress
< Location: https://mysliwirazem.pl/
<
* Connection #0 to host mysliwirazem.pl left intact

real 0m10,252s
user 0m0,014s
sys 0m0,004s



[11-Mar-2024 17:56:54] WARNING: [pool mysliwirazem.pl] child 595507, script '//home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/index.php' (request: "GET /wp-admin/index.php") executing too slow (5.125871 sec), logging
[11-Mar-2024 17:56:54] NOTICE: child 595507 stopped for tracing
[11-Mar-2024 17:56:54] NOTICE: about to trace 595507
[11-Mar-2024 17:56:54] NOTICE: finished trace of 595507
[11-Mar-2024 17:57:47] WARNING: [pool mysliwirazem.pl] child 595507, script '//home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin-ajax.php' (request: "POST /wp-admin/admin-ajax.php") executing too slow (5.413035 sec), logging
[11-Mar-2024 17:57:47] NOTICE: child 595507 stopped for tracing
[11-Mar-2024 17:57:47] NOTICE: about to trace 595507
[11-Mar-2024 17:57:47] NOTICE: finished trace of 595507
[11-Mar-2024 17:57:49] WARNING: [pool mysliwirazem.pl] child 595567, script '//home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin-ajax.php' (request: "GET /wp-admin/admin-ajax.php?action=dashboard-widgets&widget=dashboard_primary&pagenow=dashboard") executing too slow (5.062143 sec), logging
[11-Mar-2024 17:57:49] NOTICE: child 595567 stopped for tracing
[11-Mar-2024 17:57:49] NOTICE: about to trace 595567
[11-Mar-2024 17:57:49] NOTICE: finished trace of 595567
[11-Mar-2024 17:58:54] WARNING: [pool mysliwirazem.pl] child 595586, script '//home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/plugins.php' (request: "GET /wp-admin/plugins.php") executing too slow (5.989945 sec), logging
[11-Mar-2024 17:58:54] NOTICE: child 595586 stopped for tracing
[11-Mar-2024 17:58:54] NOTICE: about to trace 595586
[11-Mar-2024 17:58:54] NOTICE: finished trace of 595586
[11-Mar-2024 18:03:12] WARNING: [pool mysliwirazem.pl] child 596732, script '//home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin-ajax.php' (request: "POST /wp-admin/admin-ajax.php") executing too slow (6.067864 sec), logging
[11-Mar-2024 18:03:12] NOTICE: child 596732 stopped for tracing
[11-Mar-2024 18:03:12] NOTICE: about to trace 596732
[11-Mar-2024 18:03:12] NOTICE: finished trace of 596732
[11-Mar-2024 18:08:14] WARNING: [pool mysliwirazem.pl] child 597743, script '//home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/admin-ajax.php' (request: "POST /wp-admin/admin-ajax.php") executing too slow (5.119674 sec), logging
[11-Mar-2024 18:08:14] NOTICE: child 597743 stopped for tracing
[11-Mar-2024 18:08:14] NOTICE: about to trace 597743
[11-Mar-2024 18:08:14] NOTICE: finished trace of 597743
[11-Mar-2024 18:08:18] WARNING: [pool mysliwirazem.pl] child 597747, script '//home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/update-core.php' (request: "GET /wp-admin/update-core.php") executing too slow (6.354259 sec), logging
[11-Mar-2024 18:08:18] NOTICE: child 597747 stopped for tracing
[11-Mar-2024 18:08:18] NOTICE: about to trace 597747
[11-Mar-2024 18:08:18] NOTICE: finished trace of 597747
[11-Mar-2024 18:08:53] WARNING: [pool mysliwirazem.pl] child 598124, script '//home/mysliwi/web/mysliwirazem.pl/public_html/index.php' (request: "GET /index.php") executing too slow (6.556376 sec), logging
[11-Mar-2024 18:08:53] NOTICE: child 598124 stopped for tracing
[11-Mar-2024 18:08:53] NOTICE: about to trace 598124
[11-Mar-2024 18:08:53] NOTICE: finished trace of 598124
[11-Mar-2024 18:15:39] WARNING: [pool mysliwirazem.pl] child 599863, script '//home/mysliwi/web/mysliwirazem.pl/public_html/wp-admin/index.php' (request: "GET /wp-admin/index.php") executing too slow (5.057809 sec), logging
[11-Mar-2024 18:15:39] NOTICE: child 599863 stopped for tracing
[11-Mar-2024 18:15:39] NOTICE: about to trace 599863
[11-Mar-2024 18:15:39] NOTICE: finished trace of 599863
Post Reply