Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
Every 4-5 days my site gets hyper slow. About 2-3 minutes to load a page. And I can't find what it is.
I empty my source cache.
I empty my Cloudflare cache.
I check if an attack is going on (There are attaches all the time).
I shutdown the Cloudflare firewall.
I disable plugins.
I check the traffic.
I shutdown Wordpress heartbeat.
I shutdown Wordpress cron.
I ...
And then, out of the blue the site is fast again. But I don't know what triggered that. It is shared hosting and loging is poor. So I can't check all errors. Could it be processor memory? Or a SSL mismatch between source hosting, GTranslate and Cloudflare handshakes? (Translated pages doesn't seem to be affected that much).
I plan to migrate to VPS with PHP 7.4 but I have to do some re-coding for that.
I am affraid that migrating a malfunctioning website results in a migrated malfuntioning website. So I like the fix the problem before I migrate.
Any suggestions?
As #amarinediary has already noted, it can be the hosting provider. But I'd like to add few suggestions on his point.
Shared hosting, as it derives from their name, are literally sharing the resources of a server to every website that it hosts. They also have limitations per website, but it's not always controllable.
If another website on the same hosting is being attacked by DDOS, it requires additional resources from the server, henceforth there's nothing left for your website. And if this is exactly what's happening, just feel free to migrate to VPS.
But there's another important reason why this might be happening. And the funny thing is that few years ago that was exactly what happening to my website, and I broke all my brains to understand what that was. And it's very simple: Search Engines Robots. I see that you're quite proficient on that topic, so I won't explain you basic things about how they work, and why do they do that. But you see, when Google or any other SE is indexing your website, it requests every single page on it, and the effect may be exactly as if it would be DDOS. And it happens every 4 - 5 days, exactly as you described.
What'd be solution to this? Give the website more resources and migrate to VPS. Or, if you want to make sure this scenario is correct, tell Google and other SE robots to make crawl less frequent. Add this to your robots.txt:
Crawl-delay: 5
This means that robots will request every page only once per 5 seconds.
I plan to migrate to VPS with PHP 7.4 but I have to do some re-coding for that. I am affraid that migrating a malfunctioning website results in a migrated malfuntioning website. So I like the fix the problem before I migrate.
The worst thing happens is that you receive the same website as it was before. In any scenario, VPS is a win-win solution. Feel free to (you won't regret it).
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How can I reduce the wait time? sometimes it's over 5-6 seconds, please see here: https://tools.pingdom.com/#59ebd2b2c6000000
I am using AppServ v2.7
please help, i am already using gzip compression, and plugins to improve my page speed but its taking longer than 9s to load
thank you
This might be a complex of activities, I ended up in those for my wordpress blogs:
-moving from hosting to dedicated
-switching from apache to nginx
-using CDN
-using minifiers
-using a nginx frontend config to connect to varnish which connects to nginx backend config
-switching from php5.6 to php7.2
-fine tuning php and nginx and varnish configs
-enabling gzip
-using browser cache
can you describe more what your is in between your app and the served request? i.e are you using an app based page cache like WP total cache?
are you using a reverse proxy cache like fastly or varnish? Are your assets being served from a CDN like S3? do you have an opcode cache on the server?
tending to all of these issues can be time consuming.
One faster 'trick' can be to move your nameservers to cloudflare DNS, and use their free caching layer to see if what kind of easy performance gains you get.
Another good diagnose method can be combo of google page speed insights along with chrome dev tools, network tab, where you can see timing request graph and potential bottlenecks.
maybe there is something obvious like trying to serve uncompressed 4MB images.
note that none of these will necessarily address your root issue. WP is actually not that slow in vanilla format until we start adding various plugins to it.
the final solution would be doing a deep dive into your code using callgraphs and tools like webgrind to analyze, WP dev and theme are very prone to inefficient DB queries, and multiple redudnant 'loop' instantiations.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I've attempted to search first for related wordpress problems with urls breaking but couldn't find much regarding a wp site wpadmin being stuck on the old host too.
I have my company's WP site hosted at webnames.ca, migration was done some months ago and not by me. It has functioned fine so far, but the wp dashboard is still linked with bluehost.
The original dev site with a different domain is up and hosted on bluehost, still.
I attempted to make a change when trying to do a backup on bluehost before updating to WP 4.9, and inadvertently changed site addresses on bluehost.. [I should have backed up via webnames]
This affected the official current webnames.ca address site, showing a Coming Soon 'Bluehost' splash page, which should not be. I reset the url changes but it did not bring the site back.
If I suspend the webpage via the webnames.ca cpanel, the address shows 503 error[no mention of bluehost]. Im not sure what broke exactly with the URl or DNS.
Am I wrong to suspect the migration to new server wasn't fully complete? because for instance I can still install wordpress app to the webnames server. Currently it has no apps or plugins installed. Could they have been duped forwarding to the old site?
I know as much that the wp-config.php file can be edited manually for the current site name, but would changes I made inadvertently on bluehost have affected the files on the new host?
I dont' currently have much php experience, so I am kind of lost. I have tried to be clear in my description, let me know if I can clarify anything about the issue or improve my question.
Thanks so much.
Alex
Your DNS is, fine in my opinion, but you are missing an MX Record.
For me, http://www.patersoncomposites.ca/ loads perfectly, but I noticed webnames.ca is a Canadian server. I had to use a VPN to go to that site, due to it blocking me. That being said, the host may be the issue if you cannot see it load.
Also, your website is not WordPress. If you backed it as WP, something definitely went wrong. It seems the real website link is http://thepatersonco.com/ and then it connects to WP feature.
In final, the website works for me. This is some information I found that may be the issue, but way too much info for a quick fix answer.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I am currently working on a site that is hosted on GoDaddy's Wordpress-Managed hosting. I have had issues come up that I've never seen before. For example, I was working right on the FTP, saving my changes and uploading immediately, but none of the changes I made would show up on the server. I read about GoDaddy's restrictive cache so I worked locally until the theme was done. Even then, after I uploaded, the changes wouldn't show. I double-checked the style file on the server, it was updated, but I could not physically see my changes.
After a few hours, the changes showed. Now, however, I'm still struggling. The styles and JS updates will not show in Incognito or on certain computers. I'm at the end of my rope here on where to go and what to do. Is it something to do w/ my Wordpress functions file and the versioning of my CSS and JS? Does it have to do w/ GoDaddy's server? Would switching from GoDaddy's Managed Wordpress to a basic hosting and installing Wordpress myself be more efficient?
Thanks for anyone's help!
My guess is caching server side (for example some caching modules will cache all PHP files for a given period of time).
The quick and dirty solution is to add a query string to the file(s) you are trying to view to see changes immediately.
Example:
http://mywebsite.com/somefile.php?hucd8239812
You will need to change the query string every time you change the file, but it's a quick and dirty way to break cache.
Thanks everyone for helping me out! It actually all had to do with GoDaddy and their server side caching. For some reason, the files were taking roughly twenty minutes to show changes. I just started working locally and uploading only when I needed to. Don't know if that's the best solution, but it's working for this simple site.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Yesterday i got a bug in my wordpress site, where hacker injected a script which can be seen by googlebot only.
That script is not read or identified on normal browsers.
This is not causing issues site availability or performance but on google search it gives advertisements instead of my site content. which is not good.
while searching on google i got this
https://aw-snap.info/articles/spam-hack-wordpress.php
I tried almost all the options given there.
Can anybody help me to identify the spam?
Thanks
Kiran Peshkar
Google offers a "view as Google" option in webmaster tools. This will help you to see what they see.
I tend to do two things if recovering one of my sites is not obvious what has caused the problem.
Upload a fresh copy of WordPress to my server. This will overwrite all the core files so if any have been hacked the malicious code will be overwritten.
It is likely that a malicious script is hidden somewhere so if it is a simple site I will delete everything and reinstall and re upload plugins. Of course anything in wp-content will need to be saved and restored. But note, a malicious script could be hidden in here.
It might just be easier to do a full restore at this point. Find a recent backup, upload the files and check with Google's tool to see if the malicious code is still active. It is always worth contacting your webhost for help, depending on how good they are they might even sort this out for you.
Remember, any attempt to restore or overwrite files could potentially impact your site or result in data loss so make sure you backup everything you need. Although it is unlikely the malicious code is in the WordPress database you should definitely back this up too.
Unfortunately there is no easy way to remove these types of hack, you never quite know what malicious code has been used. You should consider changing all passwords and reviewing your security so that the hacker doesn't do the same thing again as soon as you get the site up! Make sure all apps on the server are up to date.
Even the most secure WordPress sites get hit from time to time, this is why security is important and why daily backups are essential.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have leased VPS with 2GB mem.
Problem i have is that i have few joomla installations and server get in to very slow response if there is more than 30-50 users attached at same time.
Do you have any tips, books/tutorials/suggestions how to increase response time in this situation?
Pls. give me only very concrete and useful URLs, i would be very grateful.
In attachment i attached just part of htop view on that VPS
The easiest and cheapest thing you can do is to install a bytecode cache, e.g. APC. Thus, php does not need to process every file again and again.
If you're on Debian or Ubuntu this is as easy as apt-get install apc.
I'm going to guess that most of our issues will come from joomla - I'd start by looking through this list: https://stackoverflow.com/search?q=joomla+performance
Other than that, you might want to investigate a php accelerator: http://en.wikipedia.org/wiki/List_of_PHP_accelerators
If you have any custom sql, you might want to check your sql queries are making good use
of indexes
A quick look at your config suggests your using apache pre fork - you might want to try
using threaded worker mode, though always benchmark each config change you make (apache
comes with a benchmarking tool) to ensure any changes have a positive effect.
Some other links..
http://www.brandonturner.net/blog/2009/07/fastcgi_with_php_opcode_cache/
Though this is for wordpress, the principals should still apply.
http://blog.mydream.com.hk/howto/linux/performance-tuning-on-apache-php-mysql-wordpress
A couple of things to pay close attention to.
You never want your server to run out of memory. Ensure any apache config limits the
number of children to within your available memory.
Doing SHOW PROCESSLIST on mysql and looking for long running queries can highlight some
easy wins, as nothing kills performance like a slow sql query.