Specific Website Slow but All Others Fine
AnsweredHi everyone,
I have a cPanel account on my VPS that runs 4 websites and two sub-domains. The main site which resides in the public_html folder is intermittently very slow (approx 30 seconds to respond). The other websites and subdomains are fine.
I have tried restarting services, even rebooting the server but the site currently remains very slow. There is plenty of disk space and memory and resource usage are very low (all other sites on the server run nice and fast).
Even stranger is that when I looked at the load times using DevTools, I find that the main php page and style sheet are the items that take time to load. All other assets such as images and JavaScript files load fine (20 - 30ms).
Has anyone any ideas where I can start looking? It's a mystery that's driving me wild, not to mention my customer!! Thanks in advance...
-
Just an update on this one. I narrowed it down to PHP FPM processes. Both the main page and style sheet go through PHP and all other files are served statically. It's only the PHP files that had a slow response time.
It looks like the site was being hit by search engines with some dodgy links. For example:
https://www.mysite.com/pagename.php/list.php?id=1
I search for calls to that page that have a slash after it and return a 404 response now.
So far, things look OK but I'll update more if this turns out not to be the solution.
0 -
I'm glad you found the solution!
0
Please sign in to leave a comment.
Comments
2 comments