amuck-landowner

PHP & Apache

ie8

New Member
I have a VPS with 2GB RAM and SSD. I have many traffic serving 4 images, which it is in: /var/www/img. In /var/www I have a single WordPress blog

When my 4 images not have traffic my WordPress work but when img have heavy traffic, WordPress not load, it return 500 error.

It is very strange because if I will execute a top, I get:
pastebin.com/KtAKa6Cz

But in reality I am serving img, why i have php5-fpm?

My sites-enabled/000-default
pastebin.com/TVt6X8Hy

My apache2.conf:
pastebin.com/Jth01tet

In error.log I am getting
[Tue Oct 07 19:41:51 2014] [error] [client ] FastCGI: incomplete headers (0 bytes) received from server "/usr/lib/cgi-bin/php5-fcgi", referer: X

In php5/fpm/pool/www.conf:
pastebin.com/4fSLJB3w

In /etc/apache2/conf.d/php.conf
 

Code:
    <IfModule mod_fastcgi.c>
    AddHandler php5-fcgi .php
    Action php5-fcgi /php5-fcgi
    Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
    FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
    </IfModule>
 

Munzy

Active Member
Try installing quickcache on wordpress and running your site through cloudflare. 
 
Top
amuck-landowner