Tag Archives: PHP

How to Fix WordPress PHP Warning “headers already sent”

This morning I noticed our /var/log/apache2 directory had grown to 12GB in size — yea, gigabytes. Dropping into the directory and taking a look I saw that the -error logs themselves were dominating the directory, so I peeked into them and saw millions of the following entries

mod_fcgid: stderr: PHP Warning: Cannot modify header
information – [...]

Read full storyComments { 2 }
thebuzzmedia.com-fast-load-times

Increase WordPress Performance on Apache with Worker MPM, PHP and mod_fcgid

This is a continuation of two previous posts about Apache performance running PHP-apps like WordPress. One was on running PHP via CGI and the other was on running Apache with the thread-based “Worker” MPM instead of the default “Prefork” MPM.
As mentioned in the other posts (incase you don’t want to read them… I don’t blame [...]

Read full storyComments { 0 }
server-apache-process-size-with-php-cgi

Optimizing WordPress Page-Load Pauses with PHP-CGI

For the last 6-months I’ve been trying to deal with mysterious “page load pause” issues with WordPress on my Apache/prefork/mod_php setup. Server load was low, hardware was a 4GB 2-core machine, spent 4 months of that time tweaking MaxClients and other Apache prefork settings until I finally gave up.
The behavior I was seeing is hitting the [...]

Read full storyComments { 1 }

WordPress (PHP, Sendmail, Postfix) Keeps Sending Mail to Local Spool

Description of Problem
You are running WordPress (or some other PHP-application on Linux) and you host your email with Gmail or Google Apps hosted account. Unfortunately, every time you try and generate an email from WordPress and send it with Sendmail or Postfix (on CentOS, Debian, whatever) it always ends up going into your local mail [...]

Read full storyComments { 0 }

Tip for TimThumb (thumb.php) not Generating Thumbnails

This tip is for anyone using TimThumb (aka “thumb.php”) either directly or indirectly via a WordPress theme (WooThemes uses it a lot) and is not having their thumbnails successfully generated.
I have run into this 3x in the last few years and ever time I forget the solution and have to re-find it, so I’m posting [...]

Read full storyComments { 46 }
wordpress-image-upload-crunching

WordPress Image Upload 'Crunching' Not Resizing Images

NOTE: I am posting this information here because I just spent 20 mins Googling for the types of phrases in the title and never got a direct answer and hope anyone else that isn’t a PHP/WordPress guru that needs help with this can find it with this post.
I migrated my WordPress sites to a new server [...]

Read full storyComments { 2 }
Enabling Comments on Every Wordpress Page

Enabling Comments on Every Wordpress Page

Updated August 2010
Ok this might seem trivial to the smarter WordPress folks out there, but I’m dumb… dumb like a sack of rocks and didn’t just figure this out until now.
If you’ve been using WordPress for years and always wondered why the ‘Add a Comments’ section only show up on the front page of the [...]

Read full storyComments { 42 }