• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Fix Failing Server on WordPress Post Publish

By Abhishek Ghosh July 28, 2014 5:58 pm Updated on July 28, 2014

Fix Failing Server on WordPress Post Publish

Advertisement

It is common to get 99% CPU usage on Post Update or Post Publication with WordPress Blog with huge number of posts. Errors are related to Server. If one goes to WordPress official forum, the likely answer will be disable plugins and revert to default theme. If you need to do soft reboot or even a hard reboot due to the hanging event, it is most likely that at there are indicative stuffs in the errors.log file. mpm-prefork, memcache and memcached(daemon) are notorious for creating conflicts. The example setup we are talking about is a cloud server with 2 GB RAM, 2 virtual cores, database server is different, is hosted on Rackspace with Infrastructure level support only, the setup is for only one domain, we are using Ubuntu 14.04 LTS and Latest Apache. Since Ubuntu 13.10 and Apache 2.4.x there are difference with previous versions. Possibly you did an update and/or upgrade, may be you have done apparently nothing. But, this guide will help you in such helpless situation. At least you can go to StackOverflow or Quora and tell some minimum stuffs to the others.

 

Fix Failing Server on WordPress Post Publish

 

It is usually not Plugin, but some Plugin can help WordPress to do the wrong. Indeed, in past; only WordPress Permalink used to simulate the situation :

 

Vim
1
http://digwp.com/2011/06/dont-use-postname/

 

That issue has been fixed but there can be hundreds of unknown bugs. We will discourage to ask in WordPress Official forum, instead ask on StackOverflow or Quoraor somewhere you’ll find server side experts. If you ask in WordPress Official forum, there is more chance to get in the wrong direction. Removing a Plugin might temporarily fix an issue, but you should know what actually happened to make you reboot.

Advertisement

---

I have a friend who has a WordPress installation with a database which probably none can repair. He always login to server before hitting the Publish button. After clicking the Publish button, the server expectedly hangs and he type rebootand hit Enter key on SSH. As he uses one server to host all – database server, web server – it is practically quite time consuming to reach towards the diagnosis. Practically as he do not write blog on regular basis or professionally, this trick works, but obviously this is not the right way.

By default, the Apache related error file will be located at :

 

Vim
1
/var/log/apache2/error.log

If its location is changed, check the php.ini file :

Vim
1
/etc/php5/apache2/php.ini

You can open the file either via SFTP or with nano on Shell. Like :

Vim
1
cd /var/log/apache2/error.log && nano error.log

You might see something like this :

Fix Failing Server on WordPress Post Publish

Obviously, depending on the error, you should fix it either by asking somewhere or just searching a bit on Web Search. For this particular situation, we might want to try to disable :

Vim
1
2
3
4
5
6
# disables a module of Apache2
sudo a2dismod module_name
# enables a module of Apache2
sudo a2enmod module_name
# both requires Apache to restart
service apache2 restart

For centos/ fedora and others, things work differently than in Ubuntu/ Debian.
There can be conflict due to a declaration in Apache ini file itself. Which can throw this type of error on restart :

Vim
1
2
3
4
5
6
* Restarting web server apache2                                                                                                                                                                     [fail]
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 99 of /etc/apache2/apache2.conf:
Invalid command 'ThisExampleRequest', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.

Apache2, unfortunately has lot of peculiar problems, on version update; they can show colors.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Fix Failing Server on WordPress Post Publish

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Join/Merge Multiple Log Files For Big Data Analysis

    Here Are The Ways To Join/Merge Multiple Log Files For Big Data Analysis, Store Them To OpenStack Based Cloud Storage And Delete Old Files.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • bbPress Nginx Subdirectory Rewrite Rules (HP Cloud)

    bbPress Means WordPress. In This Article,bbPress Nginx Subdirectory Rewrite Rules is Assumed For a Fresh Subdirectory WordPress Installation.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy