1

To give a little background, I have a website that permits users to upload images. WordPress is used as a content management system and the posts are immediately published with the image inserted as the featured image of the post. From that point the images are displayed in a gallery style format. For nearly a year I had the website on a GoDaddy shared server and had no issue with the images uploaded. As the site has grown I have transferred the website to an Amazon instance. On the instance is the corresponding MySQL Database, which while I know is frowned upon for it should be set up as a separate instance, reduces costs for the moment. The web / database server is on a c3.xlarge instance. Unfortunately, about 50% of the time now, when users upload images they receive an error [Internal Server Error] and a blank post is created, which is subsequently included within the galleries. Obviously, this is problematic as the gallery is filled with blank images, which detracts from the user experience. The blank post image is devoid of a featured image, when I look into the backend of WordPress, and the post is categorized as Uncategorized. At this point I believe that problem stems from a server setting and communication with the MySQL database, but I am grasping at straws. I have scoured the error logs at around the time of the blank posts and the only thing I have found is as follows…

 [Sat Jun 14 19:23:51 2014] [error] [client xxx] (104)Connection reset by peer: FastCGI: comm with server "/usr/lib/cgi-bin/php5-fcgi" aborted: read failed, referer: http://example.com/upload/
 [Sat Jun 14 19:23:51 2014] [error] [client xxx] FastCGI: incomplete headers (0 bytes) received from server "/usr/lib/cgi-bin/php5-fcgi", referer: http://example.com/upload/
 [Sat Jun 14 19:27:51 2014] [error] [client xxx] (104)Connection reset by peer: FastCGI: comm with server "/usr/lib/cgi-bin/php5-fcgi" aborted: read failed, referer: http://example.com/upload/
 [Sat Jun 14 19:27:51 2014] [error] [client xxx] FastCGI: incomplete headers (0 bytes) received from server "/usr/lib/cgi-bin/php5-fcgi", referer: http://example.com/upload/

In researching the issue I have found that many people have suggested increasing the php memory limit to combat this problem. Recently I increase memory_limit from 128M to 256M and even 512M, but this unfortunately did not have any noticeable impact. Any ideas?

4
  • Check all of your logs. Jun 15, 2014 at 22:52
  • @MichaelHampton I have checked all the error logs I am aware of.
    – panoramic
    Jun 16, 2014 at 0:47
  • We are not mind readers! You need to tell us exactly what you did, every detail. Jun 16, 2014 at 0:48
  • @MichaelHampton True, sorry. For this issue I have looked into error.log, error_log, lastlog, messages, secure, and wtmp. Which are all the files that were revised within several minutes after the issue occuring.
    – panoramic
    Jun 16, 2014 at 0:51

0

You must log in to answer this question.

Browse other questions tagged .