Home Account

apc crashes when no file is uploaded

2012-04-09 19:55 dennis iversen

Tags: php apc ubuntu

I was implementing a upload progress bar for my home made CMS system / no framework framework coscms using the APC cache and the rfc1867 bug using this simple progress bar example

It worked perfectly until I discovered that APC crashes when there is no file being uploaded. Firefox said: "The connection to the server was reset while the page was loading". My system is PHP 5.3.5-1ubuntu7.7 loaded as a module on apache2.

After checking the bug reports without any solution I just decided to upgrade to the latest version of the APC cache. This is quite easy. Use:

sudo pecl install apc

For this command to work you will the need the php5-dev package. I you don't have it use:

sudo aptitude install php5-dev

I got build error due to an missing pcre package. Use:

sudo aptitude install libpcre3-dev

And build again. Remember to have correct settings in your apc.ini file:

extension=apc.so
apc.rfc1867 = on

Anything worked out nicely!

This page has been requested 2901 times