HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   Optmizing Apache and php-cgi for CPU Usage (

alleks 2nd April 2013 06:21

Optmizing Apache and php-cgi for CPU Usage
I'm having a huge problem with a server where I run 2 wp blogs.

The problem is that sometimes my cpu goes sky rocking high, and just don't know what else todo. I've configured APC, huge difference, reduced Timeouts on Apache and MySQL tuning, but now I have to find a method to optimize the CPU usage.

And some times this is the output I get in the error log files for the sites:

mod_fcgid: can't apply process slot for /var/www/php-fcg

and this in my apache2/error.log file


[error] mod_fcgid: process /var/www/php-fcgi-scripts/web2/.php-fcgi-starter(31462) exit(communication error), get unexpected signal 7
So, what do you recommend me to try and lower my cpu usage and keep serving content to users. I have a VPS from 1and1 (I kinda repent know for the decision) with 1cpu and 2gb ram, and planning to get another cpu... but I don't like the way they changed the prices.

falko 5th April 2013 01:02

Use PHP-FPM in ondemand mode instead of FastCGI.

alleks 5th April 2013 14:42

I'm using Ubuntu distribution Falko. And don't have php-fpm configured.

Any alternatives?

I asked a question related to this at

falko 8th April 2013 19:56

alleks 8th April 2013 20:11


Originally Posted by falko (Post 295522)

Already saw it, but I was trying to figure it out, before actually going to configure php-fpm

But thank you very much for the reminder

All times are GMT +2. The time now is 17:20.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.