Fresh Myvestacp Wordpress extreme slow load

Post Reply
mccn
Posts: 3
Joined: Thu May 06, 2021 2:00 pm
Fresh Myvestacp Wordpress extreme slow load

Post by mccn »

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

Tags:

User avatar
dpeca
Site Admin
Posts: 499
Joined: Fri Jun 19, 2020 9:59 am
Re: Fresh Myvestacp Wordpress extreme slow load

Post by dpeca »

maybe you uploaded files as root?

mccn
Posts: 3
Joined: Thu May 06, 2021 2:00 pm
Re: Fresh Myvestacp Wordpress extreme slow load

Post by mccn »

No no files has ben uploaded via ftp by user

User avatar
dpeca
Site Admin
Posts: 499
Joined: Fri Jun 19, 2020 9:59 am
Re: Fresh Myvestacp Wordpress extreme slow load

Post by dpeca »

did you checked error log of that domain?

mccn
Posts: 3
Joined: Thu May 06, 2021 2:00 pm
Re: Fresh Myvestacp Wordpress extreme slow load

Post by mccn »

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/"
[email protected]:/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
dpeca
Site Admin
Posts: 499
Joined: Fri Jun 19, 2020 9:59 am
Re: Fresh Myvestacp Wordpress extreme slow load

Post by dpeca »

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


Post Reply