Yet another apache prefork -> mpm worker question

So I decided to move over from prefork to worker but with no luck.

Keep in mind, Im still quite new at this so this is a guide ive used:

http://www.failover.co/blog/quick-setup … pm-and-apc">http://www.failover.co/blog/quick-setup-apache-worker-fastcgi-php-fpm-and-apc

I followed each to the dot but everytime i try to load a php file, it gives a not found error. Everything else works fine though (static html, images, etc)

Running ubuntu 10.04 LTS 32 bit..

Error logs in apache:

File does not exist: /srv/www/neomallers.com/public_html/counter/cgi-bin/php5

From the looks of it, it seems as if it's trying to load php5 off the public docs folder? Im not sure..

As an aside, I've tried a bunch of other guides as well but one or all of the following happens

(1) php file becomes downloable (not good!)

(2) not found error

Any help would be greatly appreciated! Thanks!!

3 Replies

So I finally got it working.. but it seems i ran into more trouble.. only 279 MB of 1 GB used in RAM, and it's swapping slightly (123 of 256M)

I guess it's either APC or memcached going haywire…

CPU is wayyyy down though..

~~![](<URL url=)http://neomallers.com/linode/generate_graph-1.pl.png" />

The spikes are mysql db backup crons that run

~~![](<URL url=)http://neomallers.com/linode/generate_graph.pl.png" />

crazy red swap spike was under prefork and doing a load test~~~~

That swap could have been from before. Turn it off and back on. Then wait a bit to see if it comes back.

Yep I did that. It was swapping a bit initially but it seems to have stabilized

total used free shared buffers cached

Mem: 1000 960 40 0 33 387

-/+ buffers/cache: 539 461

Swap: 255 28 227

28 mb swap used and average swap IO is minimal (~0.50) Im using more memory (539) as usual but Im guessing it has something to do with APC/memcache

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct