Whats the official support position these days for Apache2 and PHP

There was lots of talk in FY2004 about apache2 not fully supporting PHP 4.x but I can't find any real updates to this position. Since then PHP has new releases of 4.x and PHP5.x is now becoming far more common and available on web hosting environments.

There is also now Apache 2.2

Does anyone have the scoop on what versions are now supported with Apache2, 2.1 and 2.2 ?

Would it be recommended to be using Apache2.2 over 1.3.x these days

Bl248Asked:
Who is Participating?
 
Richard QuadlingConnect With a Mentor Senior Software DeveloperCommented:
So, the PHP core supports Apache 2.2 (otherwise there wouldn't be the option to use it).

If you intend to use PHP as in CGI mode, then it will make little difference on thread safety (from my understanding of how the CGI mechanism functions).

If you are compiling PHP into your Apache web server, along with the various required extension, then until there is more testing done, this is always going to be a suck it and see issue.

0
 
TeRReFCommented:
I use apache 2 merely because I need a specific feature. I use Subversion and the web interface is only supported in version 2. If you're just serving webpages, 1.3 is a good choice, especially if you want to use PHP 4.x
0
 
Richard QuadlingSenior Software DeveloperCommented:
Have you tried PHP5 with Apache 2.2?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Bl248Author Commented:
Rquadling: no I have not and really wanted to get some links to official positioning of support or notes of lessons learned from those that have.

I mostly have just found generic information or older posts, links to articles talking of apache2 and php4.x issues.
0
 
Richard QuadlingSenior Software DeveloperCommented:
Yeah. Me too. I'm finding nothing about Apache 2.2 and PHP5
0
 
neesterCommented:
I have two servers.

Both running apache 2 but one running PHP4 the other PHP5.
Both run fine.
Never noticed anything not working...
0
 
Richard QuadlingSenior Software DeveloperCommented:
neester, what version of apache? 2.what?
0
 
TeRReFCommented:
I'm using:

Apache/2.1.9
PHP Version 5.1.2

This setup works like a charm...
0
 
Richard QuadlingSenior Software DeveloperCommented:
Ah. We are trying to find out about Apache 2.2. Apache 2.1 is fine and supported.
0
 
TeRReFCommented:
Right... :)
0
 
Bl248Author Commented:
Ok - so Apache 2.1(2.1.9) supports PHP 4.3 and PHP 5.1.

Is there a matrix somewhere that shows the apache supported extensions?
0
 
Richard QuadlingSenior Software DeveloperCommented:
Not as far as I'm aware. What would be a good idea is for someone who is uptodate with Apache to try PHP5 with Apache 2.2 (I'm on windows and use Sambar Server, so I'm no help at all really).
0
 
Bl248Author Commented:
I appreciate the comments that I've received and it started off as a good discussion but the responses were more anecdotale evidence.  I was looking for a link to either a PHP or apache site where it stated the supported position.
0
 
Richard QuadlingSenior Software DeveloperCommented:
Cheeky!

"There was lots of talk in FY2004 about apache2 not fully supporting PHP 4.x ..." and "... but the responses were more anecdotale evidence".

What non anecdotal evidence do you have that php is NOT supporting Apache 2.2?

I use PHP5 on Windows, and there is a php5apache2_2.dll (as well as the php5apache2.dll).

So, are we looking for a problem that doesn't exist?
0
 
Bl248Author Commented:
Actually, I received the following information from a fellow php developer colleague

"Current PHP versions are thread safe and work just fine, but there may still be non-"thread safe third-party extensions out there and those are causing problems with Apache 2."

And From: "andig" is Andi Gutmans, one of the PHP developers >
The problem isn't the core of PHP, but the dozens of PHP extensions and third-party libraries they use. Even if a library claims thread-  afety, it is not always so. Therefore, we (as in the PHP development team) recommend to use PHP with the pre-fork MPM of Apache 2 or with Apache 1.3.

This is really what I was after - something more concrete as the source of the original PHP concerns with Apache II andy why.
Well is was really looking for a more definite statement from the PHP or Apache project - there may have been a link I was not able to find but in the absense of that - a better explanation as to the source of the original concerns will do.

It's still odd that a more definite position on supportability or a matrix of tested/certified extensions is not available - but being both community driven projects, I can understand that would require a formal certification process and group to maintain it.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.