Php – Apache 2.4 and PHP 5.4 getting connection reset errors in the browser

apache-2.4httpd.conflampPHPphp.ini

In the weekend I upgraded my development web server to Apache 2.4 and PHP 5.4. In my web application which was previously working great on Apache 2.2 and PHP 5.3 it now starts getting these messages saying the "connection was reset" in Firefox. See screenshot. I am connecting to the linux machine via local LAN.

I'm assuming it might be something to do with the new version of Apache or PHP, or the new LAMP stack which I downloaded from BitNami? It would seem to happen every 5-10 requests and throw this error, perhaps more likely to trigger it is if I send a POST request from a page. Is it timing out the script or something? These are just basic dynamic pages I'm loading and they worked perfectly in Apache 2.2 and PHP5.3.

Here are my httpd.conf and PHP.ini if that has any clues.

Any ideas? Any help much appreciated.

Best Answer

After the discussion, this sounds like you may have the wrong version of LAMPStack (maybe the 64 bit version instead of the 32 bit version) or possibly a different version of some library that LAMPStack was built against or maybe you have just discovered a bug in LAMPStack. It will be difficult to tell exactly what it is via a Q&A site such as this.

Judging by the name on the download page "LAMPStack 5.4.0-0 dev" it looks like this is the development version of LAMPStack. This generally means that it may have bugs in it and should not be used in production. It is probably also not good for a development machine as you usually want that to be quite similar to your production setup. Their blog post announcing the new version mentions this. They also suggest using their forum to ask any questions you have about it and that is where I would suggest you take these SegFaults now if you plan to continue using the new version.

If you just want to get back to developing your app, I would suggest downgrading back to LAMPStack 5.3.10-1.

Related Topic