Skip to main content

PHP websites slow but fast right after apache restarted

Comments

4 comments

  • cPanelMichael
    Hello :) You may need to consider switching from suPHP to DSO with Mod_Ruid2 or FCGI. I am moving this thread to our "Optimization" forum where you might receive more feedback on this type of topic. Thank you.
    0
  • whnewbie
    On further investigation, I found in Apache status that there are many requests to JPG files of a particular site. Not just once but every time I check. And they come free different IP addresses each time so I cannot actually block them. I suspected it was hotlinking to the images causing the issue. So I added code to prevent hotlinking to images in .htaccess in that particular website. The performance has improved so far. But the requests to JPG files are still there. I wonder if there is anyway to get rid of the requests once and for all??? I actually expected that cloudlinux would have stopped one account affecting the others. But it looks like the bandwidth stealing is the cause of the sites being slow. And cloudlinux doesn't seem to help with that?
    0
  • cPanelMichael
    ]But the requests to JPG files are still there. I wonder if there is anyway to get rid of the requests once and for all???

    You may need to block the IP addresses in a firewall if you determine the requests are not legitimate. Thank you.
    0
  • WCAndrew
    I've been facing the same issue for about a week and have been pulling my hair out, upgrading, accusing my VPS provider etc. The domain users were using to access the site was a parked domain. After I changed my setup so the users were using the Primary Domain for the account, all the images on my site started loading up perfectly.
    0

Please sign in to leave a comment.