Ok I am running a CloudLinux/cPanel VM running only 2 accounts. Everything was fine until yesterday when I was getting errors like this on the accounts/ websites:
Fatal error: Out of memory (allocated 838860) (tried to allocate 12288 bytes) in ......../public_html/wp-includes/post.php on line 3062
So I worked for a couple hours on seeing if I could increase resources, etc and all seemed to not do anything. I then ran "yum update" and then rebooted but I was then getting errors like this:
Then I had my VM provider (VPS.net) go in and check the reason and solution and heres what he said when he fixed it:
I have done many things.
Some tables were crashed. I have repaired them.
You have wrong permissions for both sites in public_html folders. I have fixed it.
I have changed passwords for MySQL users.
And I have changed wordpress file /wp-config.php:
/** MySQL hostname */^M
define(DB_HOST, localhost);
TO:
/** MySQL hostname */^M
define(DB_HOST, 127.0.0.1);
I think, it was the root of issue.
Because, after this change, site has started working.
So my questions are:
1) Why did the update cause permissions to fail/change?
2)Why did the update cause DB_HOST to be renamed?
Is there anything else I should do to troubleshoot?
Fatal error: Out of memory (allocated 838860) (tried to allocate 12288 bytes) in ......../public_html/wp-includes/post.php on line 3062
So I worked for a couple hours on seeing if I could increase resources, etc and all seemed to not do anything. I then ran "yum update" and then rebooted but I was then getting errors like this:
Code:
Could not connect: Cant connect to local MySQL server through socket /var/lib/mysql/mysql.sock (2)
I have done many things.
Some tables were crashed. I have repaired them.
You have wrong permissions for both sites in public_html folders. I have fixed it.
I have changed passwords for MySQL users.
And I have changed wordpress file /wp-config.php:
/** MySQL hostname */^M
define(DB_HOST, localhost);
TO:
/** MySQL hostname */^M
define(DB_HOST, 127.0.0.1);
I think, it was the root of issue.
Because, after this change, site has started working.
So my questions are:
1) Why did the update cause permissions to fail/change?
2)Why did the update cause DB_HOST to be renamed?
Is there anything else I should do to troubleshoot?
Comment