Show error on wordpress data Bases Connection Error - wordpress

my wordpress website unexpectedly down when traffic is increasing. it will automatically correct when there is no user browse the website. here is my site url:
http://himachal-news.com

if your site is popular go for dedicated linux hosting, with enough memory. I think you currently you have shared hosting, that has shared and limited resources.

Related

Building a website without hosting?

I just took over a website for a client. I can access the wordpress backend to build and manage the site, but when I log into GoDaddy is says nothing about being hosted. Can anyone give me insight on this topic?
Sounds like a situation where you might FTP in an upload the files that way. See if it has FTP support.
If so, download Filezilla (freeware) and login to the IP address with your username and password for the site. If you get in, you can upload and overwrite files that way and they should be live instantly.
I also recommend calling or using the online chat function of GoDaddy. They can probably tell you how to manage the site.

Transferring site to an ubuntu 16.04 server

I am attempting to transfer a website from a bluehost server to an AWS ubuntu 16.04 server. I have moved ~12 sites to the new server without any problems. one site in particular won't transfer properly. This site is adental.ca.
how it should look
This link shows how the site should look
This link shows how the site currently looks
Broken image
Methods I've tried to transfer it are as follows
1.Through the WP all in one plugin
2.Importing the site through Filezilla FTP, and uploading the database.
3.Running a backup on all in one plugin, downloading the file, and uploading the file through ftp. Then restoring.
4.downloading the files through the bluehost portal and uploading them onto the new site.
I believe the files may be being corrupted as they are being pulled off the bluehost server, But I had the site working for ~1 day. It worked on several computers so it wasn't just the fact that the site was cached. But it reverted back to being broken after the day. Any suggestions would be helpful
The issue was an activated plugin that had a set path that it drew files from. When the site was transferred, this set path had moved. The issue was resolved by getting rid of the plugin.

Weebly site hosted with GoDaddy-Client wants to keep GoDaddy, but use Wordpress instead

I have minimal experience with Wordpress. I have a client who currently has a site on Weebly, with their domain hosted on GoDaddy.
What they want:
They want to eliminate their Weebly site and use Wordpress instead.
They want to keep their GoDaddy domain hosting, since they already pay for that.
Where I'm lost:
Wordpress requires you to pay a monthly fee to have the "wordpress.com" removed from the Wordpress site domain name. So, will the client need to pay for that as well as the GoDaddy hosting?
Also, since I've never really started this process from scratch, what is the recommended order that I start this process? I'll need to rebuild the site manually, so I don't need a transfer service or anything.
I suggest you to purchase a good hosting with following requirement
PHP version 5.2.4 or greater.
MySQL version 5.0.15 or greater or any version of MariaDB.(Optional) (Required for Multisite)
Apache mod_rewrite module (for clean URIs known as Permalinks)
And point your domian to that hosting server. You can purchase a hosting from GoDaddy also.

Resource limits has been reached on GoDaddy (wordpress site)

I have an issue with my "Multisite WordPress":
the load time is too slow due to resource limitation on the hosting.
I am using, GoDaddy, 512 MB (Memory). Its a linux server.
As far as I know, for a linux server, this is not a problem to handle 1 WordPress website. There is a little trafic on the web site (20 visitors per day). I optimised the database. All pictures are compressed, PHP 5.6 installed (its the latest one available), cache is enable.
Can you please help me resolve this issue?
Here is some screenshots to better explain the situation. screenshot from cPanel
I'm having that same issue. GoDaddy wants me to pay to upgrade my resource limits, but I know it shouldn't use that much of my resources (my other similarly low-used sites are hosted with GoDaddy on Level 1 just fine). I have tracked it down so far to the PHP processes. A temporary solution: in cPanel, scroll down to the Software section, click PHP Processes, then click the "Kill Processes" button. However, I am still looking for a plugin or something that keeps causing this recurring issue.

WP Admin extremely slow

The WP back end of a site I'm working on (It's a multisite) takes about 25 seconds to load.
Everything was working fine until yesterday and the front end still works perfectly well. All other sites on the same server run just as well, so it MUST be a WP back end issue.
I don't remember exactly what change it was that made it so slow. I remember updating WP recently (to version 3.4.2), adding some plugins on one of the sites and changing the max upload file size.
I tried to disable all the plugins, changing the themes back to default, changing the max file size back, and adding define('WP_MEMORY_LIMIT', '1024M'); (and other values) to WP-config but none of it helped.
Also tried to 'Update network', but I got an error - couldn't connect to host.
Any ideas?
I got in touch with our network admin and we resolved the issue.
I will copy his answer here. Hope it helps someone.
Does Wordpress use 'self-referential URLs' ? What I mean by this is...
is wordpress trying to access it's own templates/css using fully
qualified domain names in the URL (e.g. http://example.co.uk/someurl )
Because we use Network Address Translation (NAT) on our firewalls to
hide the real IP address of the server, it has the side effect that if
the server tries to access it's own URLs, it will try to send the
traffic to the external interface on our firewall, which is where the
DNS resolves to.
The fix for this is very simple - we just add the site url into the
/etc/hosts file so that the server knows to use it's own IP address
instead of the address on the firewall.
So he added our address to the hosts file and now it works perfectly.
Awesome.
I've seen this before where the admin pages are trying to poll external Wordpress sites for details of Wordpress upgrades, plugin updates and Wordpress news. If there's no proper access (because of firewall restrictions, bad DNS, etc) then the page has to wait for the HTTP requests (I think WP uses cURL) to timeout.
If you're still unable to identify the cause I'd recommend a catch-all solution of installing xdebug and profiling the page with webgrind, xcachegrind, etc
Had the same problem for a week and now the problem of very slow WP-admin was solved!
Before, I cannot access my sites if I use incognito or I am not logged in as WP user, but all times in the wp-admin, it takes me 40 seconds- minute or even never.
Solution that worked:
I accessed the files in the file manager using the CPanel, and I saw so many unused and unnecessary folders and themes and that's the reason that causes the very slow access to admin.
It was because during the days of being a newbie, I stuffed a lot of files in the Public Http and that made it congested.
I logged in to another CPanel account that I bought personally before, and compared the folders of the "proper" versus the "congested" and compress, backed-up and deleted all the unnecessary.
My host: Hostgator, responded well also.
Hope this would help others.
I also had a very slow Dashboad in wordpress. Reading the James C´s answer, I realized that my site is located in a corporate intranet behind a firewall to access internet.
James C answered:
"I've seen this before where the admin pages are trying to poll external Wordpress sites for details of Wordpress upgrades, plugin updates and Wordpress news. If there's no proper access (because of firewall restrictions, bad DNS, etc) then the page has to wait for the HTTP requests (I think WP uses cURL) to timeout."
My solution was avoid all the internet conections: (1) disable all the wordpress updates using the wordpress plugin "Disable all wordpress updates". (2) activate de wordpress pluging "Disable google fonts"
After these two plugin activations, the Dashboard works to a suitable speed.

Resources