• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Problem with page speed running on server.

Maxflor

New Pleskian
Good day.
Please, I have a problem with the page speed. Sometimes it goes beautifully fast and sometimes it is terribly slow. The page also takes more than 15 seconds to load. When clicking through subpages, the loading time is sometimes 2 seconds, but sometimes 15 seconds or more. Can't advise what it could be? or what to look at?
I can't handle it. As if bo problem with cache or what.
I am attaching a link to the web: www.maxflor.sk
Thank you very much.
 
Hi,

From what I can see in the devtools of my browser, your site is loading A LOT of elements just to render the homepage:

Screenshot 2022-04-05 at 12.51.33.png

The best way to tackle these speed issues is to use Google Lighthouse:


It identifies most problems and tells you how to solve them.

Also try to use a cache like w3 total cache, which is a plugin for WordPress.
 
The site is made for prestashop. And sooner than if there was a memory problem, the start page loads quite quickly + the first clicks on the web are fine and then it starts to freeze ...
 
Do you have any errors in the error logs?

- go to <subscription> -> Logs
- choose the error logs:

Screenshot 2022-04-05 at 13.58.26.png
 
I have this error there
AH01071: Got error 'PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/views/templates/front/shoppingCart/cart_data.tpl) is not within the allowed path(s): (/var/www/vhosts/maxflor.sk/:/tmp/) in /var/www/vhosts/maxflor.sk/httpdocs/classes/module/Module.php on line 2509PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/views/templates/front/footer/partials/fbpixel.tpl) is not within the allowed path(s): (/var/www/vhosts/maxflor.sk/:/tmp/) in /var/www/vhosts/maxflor.sk/httpdocs/classes/module/Module.php on line 2509', referer: Spodné prádlo | maxflor.sk
 
I've found this solution for that problem:


btw:
I don't think that this has anything to do with the issues you're having. You should use some kind of caching solution, for example the Nginx cache in Plesk:
Subscription -> Apache & nginx Settings -> Enable nginx caching
 
If you're already using Nginx + Apache:
- choose "FPM application served by Apache" handler in PHP-settings
- enable Enable nginx caching in Apache & Nginx Settings
You don't have to change the default .htaccesss file that comes with Prestoshop in order to enable the Nginx cache.

Before you do this, test the current state of your website:

After you've enabled the Nginx cache, run the test again to check if it gets a higher score and if the site doesn't freeze.
 
Hello, the problem still persists :-( The server is managed by a friend.
I noticed that the server response is terribly long and it makes it slow to load.
well thank you
 

Attachments

  • Snímka obrazovky 2022-04-29 o 13.17.57.png
    Snímka obrazovky 2022-04-29 o 13.17.57.png
    216.4 KB · Views: 6
You should talk to your friend. Either the server has to many subscriptions running or it's low on resources like memory, cpu cores etc.
 
I've already sent it to him, but it's still defended that it's not a problem with the server but with prestashop ... But it will definitely be something with the server - I increased the performance. When I look at the logs on the server, I can see there how long it takes to load. I can't handle it anymore.
 

Attachments

  • time.jpg
    time.jpg
    902.7 KB · Views: 7
Ask your friend to add this in the Apache & nginx Settings -> Additional nginx directives section:

Code:
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    access_log  off;
}

That will prevent all files ending in (js|css|png|jpg|jpeg|gif|ico) from being logged. It could make some differences in the speed of your website.

Also: Prestashop needs at least 256MB of RAM. You can change that in PHP Settings -> memory_limit
 
He won't be back until Thursday from vacation but I'll write thank you for the tip. As for the memory limit, it is set at 512mb
 
Back
Top